Skip to content

[Bug] Downloaded GGUF never listed: sibling files sharing a quant label are dropped from the variant list (huihui-ai abliterated Swift-1.5) #13327

Closed as not planned

Description

@ruZeph

Environment

Where are you using Unsloth?

  • Unsloth desktop application

Operating system and version: Windows 11 Pro, build 26200

GPU model(s) and accelerator backend: AMD Radeon RX 9060 XT (16 GB) — ROCm (HIP 7.14.60850)

Versions: Unsloth Studio 0.1.905-beta; bundled llama.cpp build 11541 (ce8c04021), "Compiled by the Unsloth team"

What happened?

A GGUF that is fully downloaded in the Hugging Face cache is never offered as a selectable variant, because sibling files in the same repo share one quant label and the listing keeps only one of them.

Repo: huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF. It publishes two model families side by side with identical quant labels, for example:

  • Huihui-Qwen3.8-27B-abliterated-GSQ-RCO-IQ3_S-mtp.gguf
  • Huihui-Qwen3.8-27B-abliterated-Swift-1.5-GSQ-RCO-IQ3_S-mtp.gguf

(IQ3_XXS collides the same way. The Swift-1.5 IQ2_S / IQ2_XS files are unaffected only because that repo has no unqualified twin for those quants.)

GET /api/hub/gguf-variants?repo_id=huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF returns 34 variants and no Swift-1.5-*IQ3_S* entry at all. With prefer_local_cache=true exactly one variant comes back — IQ3_S | Huihui-Qwen3.8-27B-abliterated-GSQ-RCO-IQ3_S-mtp.gguf — even though the Swift-1.5 file is complete on disk (12,120,017,024 bytes, identical to the repo's recorded size). That model can therefore never be selected or loaded from the UI.

Cause: studio/backend/hub/utils/gguf_plan.py::build_gguf_variant_plans()

quant = gguf_variant_key(name).lower()
...
main.setdefault(quant, []).append(sibling)      # several files share the key "iq3_s"
...
kept_main = _one_shard_family(main_expected)    # keeps ONE family per quant key

One plan is built per quant key, and _one_shard_family() keeps the family holding the lexicographically first filename (GSQ-RCO-… sorts before Swift-1.5-…), silently discarding the others. The same function also drives hub/workers/hf_download.py and download_lifecycle.py, so the non-winning family cannot even be downloaded from the picker.

Steps to reproduce:

  1. Download only the abliterated Swift-1.5 file into the HF cache:
    hf download huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF --include "Huihui-Qwen3.8-27B-abliterated-Swift-1.5-GSQ-RCO-IQ3_S-mtp.gguf"
  2. Start Unsloth Studio and look for that model/variant in the model picker.
  3. Or request /api/hub/gguf-variants?repo_id=huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF and read variants[].filename, with and without prefer_local_cache=true.

Expected behavior: both families are listed as selectable variants, disambiguated by their name prefix (e.g. GSQ-RCO-IQ3_S vs Swift-1.5-GSQ-RCO-IQ3_S). At minimum, a file that is fully present in the cache must not be dropped.

Actual behavior: only the GSQ-RCO- file is listed. The downloaded Swift-1.5 file is absent from the variant list and unselectable.

Model and operation involved: huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF — GGUF cache inventory / variant picker / download planning.

Diagnostics and logs

Reproduced by calling Studio's own listing code with its bundled interpreter (PYTHONPATH=studio/backend):

prefer_local_cache=False -> variants=34, no Swift-1.5 IQ3_S / IQ3_XXS entry
prefer_local_cache=True  -> variants=1,  IQ3_S | ...-GSQ-RCO-IQ3_S-mtp.gguf

/api/hub/cached-gguf is not at fault — the repo row is returned correctly (size_bytes covers all cached GGUFs of that repo); the file simply never survives variant plan construction.

Workaround in use: hardlink the file into its own folder and register that folder as a scan folder, so the file gets an independent model identity and cannot collide:

mklink /H "<models>\Huihui-Swift-1.5-IQ3_S-mtp\Huihui-...-Swift-1.5-GSQ-RCO-IQ3_S-mtp.gguf" "<HF_HOME>\hub\models--huihui-ai--Huihui-Qwen3.8-27B-abliterated-GGUF\snapshots\<sha>\Huihui-...-Swift-1.5-GSQ-RCO-IQ3_S-mtp.gguf"

That folder then reports variants=1, IQ3_S, downloaded=True and loads normally, which confirms the file and the loader are both fine — only the quant-keyed dedupe is wrong.

Related: #9340 reports quantizations missing from the /v1/models API (same symptom family, different cause).

Activity

  1. danielhanchen commented on Oct 12, 2026

    @danielhanchen
    Member

    Thanks for the detailed report and the exact pointer into the plan builder, it reproduces as you describe. This repo publishes several different builds under the same quant name (plain, GSQ-RCO, Swift-1.5-GSQ-RCO and UD-DW, each with and without -mtp), and Studio identifies a GGUF variant by its quant, so only one build per quant survives. Giving each build its own identity was attempted in #10556, but the variant key is stored and compared in many places (saved selections, downloads, deletes, auto-load), and it got too large to land safely, so for now we are not supporting repos that publish multiple builds at one quant name.

    Your workaround is the recommended route: put the file in its own folder and add that folder as a scan folder. You can skip the hardlink step by downloading straight there:

    hf download huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF --include "Huihui-Qwen3.8-27B-abliterated-Swift-1.5-GSQ-RCO-IQ3_S-mtp.gguf" --local-dir <models>/Huihui-Swift-1.5-IQ3_S-mtp
    

    Closing this as not planned for now.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions