You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Specific Quantization of the model is not listed in Model List API #9340
I have Two Quantization of the same model, Q8 and Q4_K_M. I am unable to select which quantization i want using API call, since the model list does not produce Quantizations.
changed the title [-][Bug] Specific Quantization of the model cannot be selected via API[/-][+][Bug] Specific Quantization of the model is not listed in Model List API[/+]on Aug 20, 2026
:Q8_0 for the other one. The label is case-insensitive, and if you name a quant that isn't on disk the 404 tells you which ones are.
One gate: loading a quant other than the resident one needs Settings → Model auto-switch (OpenAI API) → Switch model by request, which is off by default (it lets any API caller evict your loaded model, so it's opt-in). With it off, a :Q4_K_M request while Q8_0 is resident is refused rather than silently served the wrong weights.
That said, the report is valid — there are two real gaps behind it:
GET /v1/models returns one entry per repo with a quant field naming only one of the on-disk quants, so the second one is undiscoverable. You have to already know :Q4_K_M is legal syntax, which is exactly the problem you hit.
GET /v1/models/<id>:<quant> 404s even though POST /v1/chat/completions accepts the same string. A client that validates a model id before using it gets told the model doesn't exist, then finds it works when posted.
One gate: loading a quant other than the resident one needs Settings → Model auto-switch (OpenAI API) → Switch model by request, which is off by default (it lets any API caller evict your loaded model, so it's opt-in). With it off, a :Q4_K_M request while Q8_0 is resident is refused rather than silently served the wrong weights.
That said, the report is valid — there are two real gaps behind it:
GET /v1/models returns one entry per repo with a quant field naming only one of the on-disk quants, so the second one is undiscoverable. You have to already know :Q4_K_M is legal syntax, which is exactly the problem you hit.
GET /v1/models/<id>:<quant> 404s even though POST /v1/chat/completions accepts the same string. A client that validates a model id before using it gets told the model doesn't exist, then finds it works when posted.
Yes i can pick the model. There are two different cases.
Some UI endpoints show dropdown menu, i cannot manually input full model name. So i cannot select the exact quant.
The next one is I need to load the model in unsloth desktop to get the full name of model with quant, then paste the full name with quant in target, which is cumbersome.
Fixed! Sorry on the delay. GET /v1/models now also lists each downloaded quant of a model as its own id (for example empero-ai/Qwen3.8-9B-Abliterated-Heretic_gguf:Q4_K_M and ...:Q8_0, right after the plain id), so dropdown-only clients can pick the quant directly. Fixed in #13422, together with #12727, which made GET /v1/models/<id>:<quant> resolve. Loading a quant other than the one currently loaded still needs Settings > Model auto-switch > Switch model by request turned on.
To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.
Activity
[-][Bug] Specific Quantization of the model cannot be selected via API[/-][+][Bug] Specific Quantization of the model is not listed in Model List API[/+]Lyxot commentedon Aug 20, 2026
You can already pick the quant today — the suffix goes on the
modelfield, with:rather than@::Q8_0for the other one. The label is case-insensitive, and if you name a quant that isn't on disk the 404 tells you which ones are.One gate: loading a quant other than the resident one needs Settings → Model auto-switch (OpenAI API) → Switch model by request, which is off by default (it lets any API caller evict your loaded model, so it's opt-in). With it off, a
:Q4_K_Mrequest whileQ8_0is resident is refused rather than silently served the wrong weights.That said, the report is valid — there are two real gaps behind it:
GET /v1/modelsreturns one entry per repo with aquantfield naming only one of the on-disk quants, so the second one is undiscoverable. You have to already know:Q4_K_Mis legal syntax, which is exactly the problem you hit.GET /v1/models/<id>:<quant>404s even thoughPOST /v1/chat/completionsaccepts the same string. A client that validates a model id before using it gets told the model doesn't exist, then finds it works when posted.barathn commentedon Aug 20, 2026
Yes i can pick the model. There are two different cases.
Some UI endpoints show dropdown menu, i cannot manually input full model name. So i cannot select the exact quant.
The next one is I need to load the model in unsloth desktop to get the full name of model with quant, then paste the full name with quant in target, which is cumbersome.
danielhanchen commentedon Oct 12, 2026
Fixed! Sorry on the delay.
GET /v1/modelsnow also lists each downloaded quant of a model as its own id (for exampleempero-ai/Qwen3.8-9B-Abliterated-Heretic_gguf:Q4_K_Mand...:Q8_0, right after the plain id), so dropdown-only clients can pick the quant directly. Fixed in #13422, together with #12727, which madeGET /v1/models/<id>:<quant>resolve. Loading a quant other than the one currently loaded still needs Settings > Model auto-switch > Switch model by request turned on.To update: Unsloth Desktop will have an update banner. For Studio, use
unsloth studio update. For Docker, usedocker exec <container> unsloth-studio-update. Reopen if it still happens.