Browse Source

Disable test parallelism to prevent fix CI

tags/v0.5.1
Martin Evans 2 years ago
parent
commit
21cbecb82d
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