Skip to content

Commit 1d2ac38

Browse files
committed
tests
Signed-off-by: mudler <[email protected]>
1 parent 948fdec commit 1d2ac38

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llama_test.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Do a simple math calculation: How much is 2+2?
9999
testModelPath,
100100
llama.EnableF16Memory,
101101
llama.SetContext(128),
102-
llama.EnableEmbeddings,
103102
llama.SetGPULayers(10),
104103
)
105104
Expect(err).ToNot(HaveOccurred())
@@ -114,8 +113,12 @@ Do a simple math calculation: How much is 2+2?
114113

115114
model, err := getModel()
116115
text, err := model.Predict(`[INST] Answer to the following question:
117-
how much is 2+2?
118-
[/INST]`)
116+
Do a simple math calculation: How much is 2+2?
117+
[/INST]`,
118+
SetTemperature(1.0),
119+
SetTopP(0.8),
120+
SetTopK(40),
121+
)
119122
Expect(err).ToNot(HaveOccurred(), text)
120123
Expect(text).To(ContainSubstring("4"), text)
121124
})

0 commit comments

Comments
 (0)