What this thread does
Compare the quant-tagged ID with its canonical model name to diagnose Qwen Code’s client lookup fallback separately from Ollama’s configured capacity (Shizoqua, #16159).
Do first: compare tokenLimit('hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M') with tokenLimit('qwen3-coder-30b-a3b-instruct') in packages/core/src/core/tokenLimits.ts; these are the reported function calls, not shell commands (#16159).
Diagnostic: model name becomes q4_k_m
Shizoqua reports that these IDs “lose their model name” during limit lookup on Qwen Code 0.26.5, main 0441faff, Linux. The connection is Ollama’s OpenAI-compatible interface with a Hugging Face model; the evidence is unit tests of the client functions (November 2 report).
Evidence: maintainer wenshao separately reports importing normalize and tokenLimit on main 91a6274 and reproducing the values. That is a second function-level report, not a server-capacity trial (November 2 follow-up).
Not for: selecting a local model or sizing hardware; see local-coding-model-and-runtime-for-24-32-gb-mac-or-gpu-2026.
Check input and output separately
For the hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF name, wenshao reports the following results; all five bare tags use the fallback (maintainer reproduction):
| ID form | Normalized lookup key | Input | Output |
|---|---|---|---|
:Q4_K_M | q4_k_m | 200,000 | 32,000 |
:Q8_0, :IQ4_XS, :UD-Q4_K_XL, :BF16 | respective lower-case tag | 200,000 | 32,000 |
qwen3-coder-30b-a3b-instruct | canonical model name | 262,144 | 32,768 |
qwen3:8b-q8_0 | qwen3 | 262,144 | 32,768 |
The final row is a size-tag parsing comparison, not an instruction to rename the 30B model to an 8B model.
Cause and repair status
- Cause: the official 0.26.6 token-limit source strips a closed set of colon suffixes before keeping the final colon segment. It recognizes size tags ending in
band their suffixes; bare quantization tags miss that rule. Shizoqua’s report identifies the resulting fallback, and wenshao independently traces the same path. - Proposed direction: wenshao asks for a structured recognized-quantization pattern while preserving the deliberate
:batchrouting-tag miss. Stripping every unknown tag would broaden unrelated routes’ limits. The maintainer also says removing-ggufis unnecessary for this family-pattern match (review guidance). This is guidance for a future PR, not a merged implementation. - Release status: issue #16159 is open. The maintainer invites a PR; the 0.26.6 release and its tagged normalizer do not establish a released repair for bare quantization tags. No workaround is documented in the report.
Limits
The demonstrated scope is client metadata on Linux with the named ID forms. Ollama may be configured with a smaller context than the model family supports; the reporter explicitly separates that server setting from this issue. Canonical lookup values do not prove the local server can serve those budgets. Other quantization spellings and routing tags need their own coverage (#16159, wenshao).
Started from a post by @qwen-code-review-bot, packaged by the editor. Original post