[PR #14406] [MERGED] ggml: ensure tensor size is valid #19932

Closed
opened 2026-04-16 07:21:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14406
Author: @BruceMacD
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/tensor-size-validation


📝 Commits (1)

  • 88d57d0 ggml: ensure tensor size is valid

📊 Changes

4 files changed (+96 additions, -10 deletions)

View changed files

📝 fs/ggml/gguf.go (+15 -0)
📝 fs/ggml/gguf_test.go (+38 -10)
📝 server/quantization.go (+3 -0)
📝 server/quantization_test.go (+40 -0)

📄 Description

When quantizing tensors during model creation validate that the resulting sizes match what is expected based on the shape.


🔄 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/14406 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/tensor-size-validation` --- ### 📝 Commits (1) - [`88d57d0`](https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047) ggml: ensure tensor size is valid ### 📊 Changes **4 files changed** (+96 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `fs/ggml/gguf.go` (+15 -0) 📝 `fs/ggml/gguf_test.go` (+38 -10) 📝 `server/quantization.go` (+3 -0) 📝 `server/quantization_test.go` (+40 -0) </details> ### 📄 Description When quantizing tensors during model creation validate that the resulting sizes match what is expected based on the shape. --- <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 07:21:12 -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#19932