Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix data race in WriteGGUF (#10598)

Daniel Hiltgenaf31ccefc00f
diff --git a/fs/ggml/gguf.go b/fs/ggml/gguf.go
index b3120820d..8e75625e0 100644
--- a/fs/ggml/gguf.go
+++ b/fs/ggml/gguf.go
@@ -569,7 +569,7 @@ func WriteGGUF(f *os.File, kv KV, ts []*Tensor) error {
t := t
w := io.NewOffsetWriter(f, offset+int64(t.Offset))
g.Go(func() error {
- _, err = t.WriteTo(w)
+ _, err := t.WriteTo(w)
return err
})
}