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
dc1e81f0
Commit
dc1e81f0
authored
Apr 23, 2025
by
Michael Yang
Committed by
Michael Yang
Apr 25, 2025
Browse files
convert: use -1 for read all
parent
5d027916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
convert/convert_test.go
convert/convert_test.go
+2
-3
No files found.
convert/convert_test.go
View file @
dc1e81f0
...
...
@@ -11,7 +11,6 @@ import (
"io"
"io/fs"
"log/slog"
"math"
"os"
"path/filepath"
"slices"
...
...
@@ -48,7 +47,7 @@ func convertFull(t *testing.T, fsys fs.FS) (*os.File, ggml.KV, ggml.Tensors) {
}
t
.
Cleanup
(
func
()
{
r
.
Close
()
})
m
,
_
,
err
:=
ggml
.
Decode
(
r
,
math
.
MaxInt
)
m
,
_
,
err
:=
ggml
.
Decode
(
r
,
-
1
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -332,7 +331,7 @@ func TestConvertAdapter(t *testing.T) {
}
defer
r
.
Close
()
m
,
_
,
err
:=
ggml
.
Decode
(
r
,
math
.
MaxInt
)
m
,
_
,
err
:=
ggml
.
Decode
(
r
,
-
1
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
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