[PR #7404] [MERGED] fix multiple image inputs #74702

Closed
opened 2026-05-05 06:57:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7404
Author: @mxyng
Created: 10/28/2024
Status: Merged
Merged: 10/29/2024
Merged by: @mxyng

Base: jessegross/mllama_batchHead: mxyng/llama3.2-vision


📝 Commits (1)

  • d5e5c30 fix multiple image inputs

📊 Changes

4 files changed (+41 additions, -53 deletions)

View changed files

📝 llama/llama.cpp (+30 -43)
📝 llama/llama.go (+2 -2)
📝 llama/llama.h (+1 -1)
📝 llama/runner/runner.go (+8 -7)

📄 Description

  • zero out inp_embd when setting cross attention states
  • set cross attention if any inputs contains image tokens, not just the new inputs

🔄 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/7404 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/29/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `jessegross/mllama_batch` ← **Head:** `mxyng/llama3.2-vision` --- ### 📝 Commits (1) - [`d5e5c30`](https://github.com/ollama/ollama/commit/d5e5c309998ee260a61bfa69b5fdd1e4a9308a81) fix multiple image inputs ### 📊 Changes **4 files changed** (+41 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp` (+30 -43) 📝 `llama/llama.go` (+2 -2) 📝 `llama/llama.h` (+1 -1) 📝 `llama/runner/runner.go` (+8 -7) </details> ### 📄 Description * zero out inp_embd when setting cross attention states * set cross attention if _any_ inputs contains image tokens, not just the new inputs --- <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:57:32 -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#74702