[PR #7469] [MERGED] Fix unsafe.Slice error with mllama #74728

Closed
opened 2026-05-05 06:59:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7469
Author: @jessegross
Created: 11/2/2024
Status: Merged
Merged: 11/2/2024
Merged by: @jessegross

Base: mainHead: jessegross/unsafe_slice


📝 Commits (2)

  • 9513082 runner.go: Only allocate 1 element embedding batches for mllama
  • a0f564b llama: Improve error handling

📊 Changes

4 files changed (+149 additions, -58 deletions)

View changed files

📝 llama/llama.go (+70 -25)
📝 llama/runner/image.go (+29 -6)
📝 llama/runner/runner.go (+28 -9)
📝 llama/sampling_ext.cpp (+22 -18)

📄 Description

Fix the error and also improve error handling for the llama.cpp CGo layer.


🔄 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/7469 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 11/2/2024 **Status:** ✅ Merged **Merged:** 11/2/2024 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/unsafe_slice` --- ### 📝 Commits (2) - [`9513082`](https://github.com/ollama/ollama/commit/9513082bcd57a97b735365cd3898ae87a3ea19fd) runner.go: Only allocate 1 element embedding batches for mllama - [`a0f564b`](https://github.com/ollama/ollama/commit/a0f564b3893ab563d2fcf451b6b4c649a771d431) llama: Improve error handling ### 📊 Changes **4 files changed** (+149 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.go` (+70 -25) 📝 `llama/runner/image.go` (+29 -6) 📝 `llama/runner/runner.go` (+28 -9) 📝 `llama/sampling_ext.cpp` (+22 -18) </details> ### 📄 Description Fix the error and also improve error handling for the llama.cpp CGo layer. --- <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-05-05 06:59:46 -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#74728