[PR #14102] [CLOSED] qwen3next: handle mixed recurrent batches #14513

Closed
opened 2026-04-13 00:56:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14102
Author: @jmorganca
Created: 2/5/2026
Status: Closed

Base: mainHead: jmorganca/qwen3-concurrent


📝 Commits (1)

  • c330ea3 qwen3next: handle mixed recurrent batches

📊 Changes

3 files changed (+270 additions, -37 deletions)

View changed files

📝 model/models/qwen3next/attention.go (+7 -4)
📝 model/models/qwen3next/cache.go (+124 -3)
📝 model/models/qwen3next/deltanet.go (+139 -30)

📄 Description

Allow mixed token-count batches by tracking per-seq indices
and falling back to per-seq recurrent processing when layouts
differ.

Add per-slot conv/delta state access with checkpoint capture,
relax attention layout handling, and reuse projections in mixed
batches to reduce overhead.


🔄 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/14102 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 2/5/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `jmorganca/qwen3-concurrent` --- ### 📝 Commits (1) - [`c330ea3`](https://github.com/ollama/ollama/commit/c330ea33edd8bddac4988cdb33eb3cdcda224f4f) qwen3next: handle mixed recurrent batches ### 📊 Changes **3 files changed** (+270 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `model/models/qwen3next/attention.go` (+7 -4) 📝 `model/models/qwen3next/cache.go` (+124 -3) 📝 `model/models/qwen3next/deltanet.go` (+139 -30) </details> ### 📄 Description Allow mixed token-count batches by tracking per-seq indices and falling back to per-seq recurrent processing when layouts differ. Add per-slot conv/delta state access with checkpoint capture, relax attention layout handling, and reuse projections in mixed batches to reduce overhead. --- <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-13 00:56:25 -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#14513