Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
54055a6d
Commit
54055a6d
authored
Apr 25, 2025
by
Michael Yang
Committed by
Michael Yang
Apr 25, 2025
Browse files
fix test
parent
340448d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
sample/samplers_test.go
sample/samplers_test.go
+1
-2
No files found.
sample/samplers_test.go
View file @
54055a6d
...
@@ -74,7 +74,6 @@ func modelHelper(t testing.TB) model.BytePairEncoding {
...
@@ -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 {
...
@@ -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
,
},
},
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment