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
1a0cfd08
Unverified
Commit
1a0cfd08
authored
May 19, 2025
by
Daniel Hiltgen
Committed by
GitHub
May 19, 2025
Browse files
avoid kv truncation during create (#10761)
parent
94ab428e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/create.go
server/create.go
+1
-1
No files found.
server/create.go
View file @
1a0cfd08
...
@@ -508,7 +508,7 @@ func ggufLayers(digest string, fn func(resp api.ProgressResponse)) ([]*layerGGML
...
@@ -508,7 +508,7 @@ func ggufLayers(digest string, fn func(resp api.ProgressResponse)) ([]*layerGGML
var
offset
int64
var
offset
int64
for
offset
<
stat
.
Size
()
{
for
offset
<
stat
.
Size
()
{
f
,
err
:=
ggml
.
Decode
(
blob
,
1
024
)
f
,
err
:=
ggml
.
Decode
(
blob
,
-
1
)
if
errors
.
Is
(
err
,
io
.
EOF
)
{
if
errors
.
Is
(
err
,
io
.
EOF
)
{
break
break
}
else
if
err
!=
nil
{
}
else
if
err
!=
nil
{
...
...
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