We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948fdec commit 1d2ac38Copy full SHA for 1d2ac38
llama_test.go
@@ -99,7 +99,6 @@ Do a simple math calculation: How much is 2+2?
99
testModelPath,
100
llama.EnableF16Memory,
101
llama.SetContext(128),
102
- llama.EnableEmbeddings,
103
llama.SetGPULayers(10),
104
)
105
Expect(err).ToNot(HaveOccurred())
@@ -114,8 +113,12 @@ Do a simple math calculation: How much is 2+2?
114
113
115
model, err := getModel()
116
text, err := model.Predict(`[INST] Answer to the following question:
117
-how much is 2+2?
118
-[/INST]`)
+Do a simple math calculation: How much is 2+2?
+[/INST]`,
+ SetTemperature(1.0),
119
+ SetTopP(0.8),
120
+ SetTopK(40),
121
+ )
122
Expect(err).ToNot(HaveOccurred(), text)
123
Expect(text).To(ContainSubstring("4"), text)
124
})
0 commit comments