mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
fix test
This commit is contained in:
parent
340448d2d1
commit
54055a6dae
1 changed files with 1 additions and 2 deletions
|
@ -74,7 +74,6 @@ func modelHelper(t testing.TB) model.BytePairEncoding {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
types := make([]uint32, len(vocab))
|
|
||||||
tokens := make([]string, len(vocab))
|
tokens := make([]string, len(vocab))
|
||||||
for token, id := range vocab {
|
for token, id := range vocab {
|
||||||
tokens[id] = token
|
tokens[id] = token
|
||||||
|
@ -86,7 +85,7 @@ func modelHelper(t testing.TB) model.BytePairEncoding {
|
||||||
``,
|
``,
|
||||||
&model.Vocabulary{
|
&model.Vocabulary{
|
||||||
Values: tokens,
|
Values: tokens,
|
||||||
Types: types,
|
Types: make([]int32, len(vocab)),
|
||||||
Merges: merges,
|
Merges: merges,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue