From 21cbecb82d9873002ef884874830089fadf1209b Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Sun, 3 Sep 2023 23:35:53 +0100 Subject: [PATCH] Disable test parallelism to prevent fix CI --- LLama.Unittest/AssemblyAttributes.cs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 LLama.Unittest/AssemblyAttributes.cs 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)]