diff --git a/LLama.Unittest/AssemblyAttributes.cs b/LLama.Unittest/AssemblyAttributes.cs new file mode 100644 index 00000000..346e4a08 --- /dev/null +++ b/LLama.Unittest/AssemblyAttributes.cs @@ -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)]