[PR #10718] [MERGED] fix pixel values padding #60037

Closed
opened 2026-04-29 14:57:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10718
Author: @mxyng
Created: 5/15/2025
Status: Merged
Merged: 5/15/2025
Merged by: @mxyng

Base: mainHead: mxyng/mllama


📝 Commits (2)

📊 Changes

2 files changed (+10 additions, -3 deletions)

View changed files

📝 ml/backend/ggml/ggml.go (+2 -0)
📝 model/models/mllama/model.go (+8 -3)

📄 Description

cuda pad only supports 3d tensors so this pad operation panics. instead, since it's padding with zeros, just increase the size of the input slice


🔄 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/10718 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/mllama` --- ### 📝 Commits (2) - [`5f16d38`](https://github.com/ollama/ollama/commit/5f16d38cb3f881684266511fda9eeae43ae3ef9b) panic if trying to pad 4d - [`3bca904`](https://github.com/ollama/ollama/commit/3bca904b641da66dc0655f568519c700021fc6be) fix pixel values padding ### 📊 Changes **2 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml.go` (+2 -0) 📝 `model/models/mllama/model.go` (+8 -3) </details> ### 📄 Description cuda pad only supports 3d tensors so this pad operation panics. instead, since it's padding with zeros, just increase the size of the input slice --- <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-29 14:57:21 -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#60037