[PR #10239] [MERGED] fix write gguf padding #18459

Closed
opened 2026-04-16 06:35:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10239
Author: @mxyng
Created: 4/11/2025
Status: Merged
Merged: 4/16/2025
Merged by: @mxyng

Base: mainHead: mxyng/write-gguf


📝 Commits (1)

📊 Changes

3 files changed (+13 additions, -16 deletions)

View changed files

📝 convert/convert_llama.go (+7 -7)
📝 convert/convert_phi3.go (+1 -2)
📝 fs/ggml/gguf.go (+5 -7)

📄 Description

this change fixes the gguf writer so it correctly accounts for padding when writing tensor info. it also fixes some conversion fields

this also fixes a json error in llama conversion


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10239 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 4/11/2025 **Status:** ✅ Merged **Merged:** 4/16/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/write-gguf` --- ### 📝 Commits (1) - [`55e8fa0`](https://github.com/ollama/ollama/commit/55e8fa08cc39ddd338c5d4cc21a365ee853ce635) fix write gguf padding ### 📊 Changes **3 files changed** (+13 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `convert/convert_llama.go` (+7 -7) 📝 `convert/convert_phi3.go` (+1 -2) 📝 `fs/ggml/gguf.go` (+5 -7) </details> ### 📄 Description this change fixes the gguf writer so it correctly accounts for padding when writing tensor info. it also fixes some conversion fields this also fixes a json error in llama conversion --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 06:35:40 -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#18459