We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93a618 commit a4165aaCopy full SHA for a4165aa
Tests/Runtime/TestLLM.cs
@@ -57,6 +57,13 @@ public void TestLoras()
57
Assert.AreEqual(llm.lora, lora1 + " " + lora2);
58
Assert.AreEqual(llm.loraWeights, "0.8 0.1");
59
60
+ Dictionary<string, float> loraToWeight = new Dictionary<string, float>();
61
+ loraToWeight[lora1] = 0;
62
+ loraToWeight[lora2] = 0.2f;
63
+ llm.SetLoraWeights(loraToWeight);
64
+ Assert.AreEqual(llm.lora, lora1 + " " + lora2);
65
+ Assert.AreEqual(llm.loraWeights, "0 0.2");
66
+
67
File.Delete(lora1);
68
File.Delete(lora2);
69
}
0 commit comments