[PR #109] fix memory leak in create #35867

Closed
opened 2026-04-22 20:36:42 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/109

State: closed
Merged: Yes


do not buffer the model into memory. instead use io.Copy to pass the contents directly to the destination writer, whether that is the hasher or file writer

this also significantly improve the hashing performance

**Original Pull Request:** https://github.com/ollama/ollama/pull/109 **State:** closed **Merged:** Yes --- do not buffer the model into memory. instead use `io.Copy` to pass the contents directly to the destination writer, whether that is the hasher or file writer this also significantly improve the hashing performance
GiteaMirror added the pull-request label 2026-04-22 20:36:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#35867