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
af31ccef
Unverified
Commit
af31ccef
authored
May 06, 2025
by
Daniel Hiltgen
Committed by
GitHub
May 06, 2025
Browse files
fix data race in WriteGGUF (#10598)
err in the go routine should not be shared with the outer scope
parent
fa393554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/ggml/gguf.go
fs/ggml/gguf.go
+1
-1
No files found.
fs/ggml/gguf.go
View file @
af31ccef
...
@@ -569,7 +569,7 @@ func WriteGGUF(f *os.File, kv KV, ts []*Tensor) error {
...
@@ -569,7 +569,7 @@ func WriteGGUF(f *os.File, kv KV, ts []*Tensor) error {
t
:=
t
t
:=
t
w
:=
io
.
NewOffsetWriter
(
f
,
offset
+
int64
(
t
.
Offset
))
w
:=
io
.
NewOffsetWriter
(
f
,
offset
+
int64
(
t
.
Offset
))
g
.
Go
(
func
()
error
{
g
.
Go
(
func
()
error
{
_
,
err
=
t
.
WriteTo
(
w
)
_
,
err
:
=
t
.
WriteTo
(
w
)
return
err
return
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