Skip to content

[Bug] Specific Quantization of the model is not listed in Model List API #9340

Closed

Description

@barathn

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.

Here is the model list api call output

{"id": "empero-ai/Qwen3.8-9B-Abliterated-Heretic_gguf", "object": "model", "created": 1787197905, "owned_by": "unsloth-studio",…}

Here is the output from LMStudio for comparison.

{
"id": "qwen3.8-9b-abliterated-heretic_gguf@q4_k_m",
"object": "model",
"owned_by": "organization_owner"
},
{
"id": "qwen3.8-9b-abliterated-heretic_gguf@q8_0",
"object": "model",
"owned_by": "organization_owner"
},

Activity

  1. added
    feature request
    on Aug 20, 2026
  2. 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
  3. Lyxot commented on Aug 20, 2026

    @Lyxot
    Collaborator

    You can already pick the quant today — the suffix goes on the model field, with : rather than @:

    curl http://localhost:8888/v1/chat/completions -H 'Content-Type: application/json' -d '{
      "model": "empero-ai/Qwen3.8-9B-Abliterated-Heretic_gguf:Q4_K_M",
      "messages": [{"role": "user", "content": "hi"}]
    }'

    :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:

    1. 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.
    2. 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.
  4. self-assigned this
    on Aug 20, 2026
  5. barathn commented on Aug 20, 2026

    @barathn
    Author

    You can already pick the quant today — the suffix goes on the model field, with : rather than @:

    curl http://localhost:8888/v1/chat/completions -H 'Content-Type: application/json' -d '{
    "model": "empero-ai/Qwen3.8-9B-Abliterated-Heretic_gguf:Q4_K_M",
    "messages": [{"role": "user", "content": "hi"}]
    }'
    :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:

    1. 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.
    2. 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.

  6. danielhanchen commented on Oct 12, 2026

    @danielhanchen
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions