[PR #15836] [CLOSED] Fix qwen35/qwen35moe architecture aliases in llama.cpp parser #77615

Closed
opened 2026-05-05 10:17:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15836
Author: @gotnochill815-web
Created: 4/27/2026
Status: Closed

Base: mainHead: fix-qwen35-alias


📝 Commits (1)

  • f1dce68 Fix qwen35/qwen35moe architecture aliases

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 llama/llama.cpp/src/llama-arch.cpp (+8 -0)

📄 Description

Summary

Fixes GGUF models that declare qwen35 or qwen35moe architectures.

Problem

Some models failed with:

unknown model architecture: 'qwen35moe'

Although these architecture names were referenced in higher-level Ollama code, the llama.cpp string parser did not recognize them.

Fix

Added compatibility aliases in llm_arch_from_string():

  • qwen35LLM_ARCH_QWEN3NEXT
  • qwen35moeLLM_ARCH_QWEN3NEXT

Validation

Before patch:

  • unknown model architecture: qwen35moe

After patch:

  • ollama show hf.co/unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M successfully proceeds and displays metadata.

🔄 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/15836 **Author:** [@gotnochill815-web](https://github.com/gotnochill815-web) **Created:** 4/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-qwen35-alias` --- ### 📝 Commits (1) - [`f1dce68`](https://github.com/ollama/ollama/commit/f1dce686ac2e53312dfeb8f5d547fcf86373d64f) Fix qwen35/qwen35moe architecture aliases ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp/src/llama-arch.cpp` (+8 -0) </details> ### 📄 Description ## Summary Fixes GGUF models that declare `qwen35` or `qwen35moe` architectures. ## Problem Some models failed with: `unknown model architecture: 'qwen35moe'` Although these architecture names were referenced in higher-level Ollama code, the llama.cpp string parser did not recognize them. ## Fix Added compatibility aliases in `llm_arch_from_string()`: * `qwen35` → `LLM_ARCH_QWEN3NEXT` * `qwen35moe` → `LLM_ARCH_QWEN3NEXT` ## Validation Before patch: * `unknown model architecture: qwen35moe` After patch: * `ollama show hf.co/unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M` successfully proceeds and displays metadata. --- <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 10:17:20 -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#77615