Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix test

Michael Yang54055a6dae05
diff --git a/sample/samplers_test.go b/sample/samplers_test.go
index cdcd55d43..b720f027c 100644
--- a/sample/samplers_test.go
+++ b/sample/samplers_test.go
@@ -74,7 +74,6 @@ func modelHelper(t testing.TB) model.BytePairEncoding {
t.Fatal(err)
}
- types := make([]uint32, len(vocab))
tokens := make([]string, len(vocab))
for token, id := range vocab {
tokens[id] = token
@@ -86,7 +85,7 @@ func modelHelper(t testing.TB) model.BytePairEncoding {
``,
&model.Vocabulary{
Values: tokens,
- Types: types,
+ Types: make([]int32, len(vocab)),
Merges: merges,
},
)