Browse Source

Merge pull request #145 from martindevans/disable_test_parallel

Disable test parallelism
tags/v0.5.1
Martin Evans GitHub 2 years ago
parent
commit
74c19b10af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      LLama.Unittest/AssemblyAttributes.cs

+ 5
- 0
LLama.Unittest/AssemblyAttributes.cs View File

@@ -0,0 +1,5 @@

// Disable running tests in parallel. Some tests load language models and try to and
// this can cause a lockup due to memory thrashing and terrible performance.
// e.g. 7GB model loaded by 10 different tests and trying to evaluate prompts
[assembly: CollectionBehavior(DisableTestParallelization = true)]

Loading…
Cancel
Save