[PR #11508] fix: quantization on non-macos systems #13560

Open
opened 2026-04-13 00:30:10 -05:00 by GiteaMirror · 0 comments
Owner

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

State: open
Merged: No


This fixes and adds a test for quantization on non-Darwin system. Previously quantizing on Linux and Window would produce corrupt files due to values being mapped incorrectly.

Also update Quantize to return a iter.Seq[[]byte]. This allows portions of the tensor to be quantized at a time (which it was already doing before) which reduces overall memory usage

**Original Pull Request:** https://github.com/ollama/ollama/pull/11508 **State:** open **Merged:** No --- This fixes and adds a test for quantization on non-Darwin system. Previously quantizing on Linux and Window would produce corrupt files due to values being mapped incorrectly. Also update `Quantize` to return a `iter.Seq[[]byte]`. This allows portions of the tensor to be quantized at a time (which it was already doing before) which reduces overall memory usage
GiteaMirror added the pull-request label 2026-04-13 00:30:10 -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#13560