[PR #12390] [MERGED] fix: leaf alt name #39680

Closed
opened 2026-04-23 00:39:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12390
Author: @mxyng
Created: 9/24/2025
Status: Merged
Merged: 9/24/2025
Merged by: @mxyng

Base: mainHead: mxyng/fix-alt


📝 Commits (1)

📊 Changes

2 files changed (+12 additions, -7 deletions)

View changed files

📝 model/model.go (+9 -7)
📝 model/model_test.go (+3 -0)

📄 Description

a leaf node with an alternative name gets all its alternatives names added into the same branch rather than creating branches themselves

this fixes the issue with gptoss where the attention sink tensor contains a leaf with an alternative name. this code incorrectly looks for blk.%d.attn_sinks.attn_sinks.weight rather than blk.%d.attn_sinks and blk.%d.attn_sinks.weight


🔄 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/12390 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/24/2025 **Status:** ✅ Merged **Merged:** 9/24/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-alt` --- ### 📝 Commits (1) - [`1dead84`](https://github.com/ollama/ollama/commit/1dead84400d1d34e610be28a28b5dc9874946c4b) fix: leaf alt name ### 📊 Changes **2 files changed** (+12 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `model/model.go` (+9 -7) 📝 `model/model_test.go` (+3 -0) </details> ### 📄 Description a leaf node with an alternative name gets all its alternatives names added into the same branch rather than creating branches themselves this fixes the issue with gptoss where the attention sink tensor contains a leaf with an alternative name. this code incorrectly looks for `blk.%d.attn_sinks.attn_sinks.weight` rather than `blk.%d.attn_sinks` and `blk.%d.attn_sinks.weight` --- <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-23 00:39:51 -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#39680