Skip to content

Studio: stop listing EAGLE3 draft files as models, and pick MXFP4 when it is the only real option - #11228

Merged
Lyxot merged 3 commits into
unslothai:mainfrom
NilayYadav:gguf-eagle3-drafter-mxfp4
Sep 18, 2026
Merged

Lyxot merged 3 commits into
unslothai:mainfrom
NilayYadav:gguf-eagle3-drafter-mxfp4

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Some GGUF repos ship small eagle3 draft files next to the real model. Studio listed them as if they were model versions. For ggml-org/gpt-oss-120b-GGUF the version picker showed three entries -- BF16 1.6 GB, Q8_0 849 MB and MXFP4 63 GB -- where only MXFP4 is the model; the other two are EAGLE3 draft heads (the repo lists nvidia/gpt-oss-120b-Eagle3-v3 as a source). The file picked by default was the 1.6 GB draft, which cannot run, and loading it failed with an error.

Draft files starting with eagle3- are now hidden from the list, the same way mtp- draft files already are. MXFP4 is added to the list of known formats so it can be chosen by default. Other repos look the same as before. Using an eagle3 draft on purpose through extra llama-server arguments still works.

Tested in Studio and with the unsloth start command on both ggml-org gpt-oss repos. Before, the draft file was picked and failed to load. After, the MXFP4 model downloads, loads and answers.

@NilayYadav

NilayYadav commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator Author

Before/after evidence

Two isolated Studio installs, merge base 062e643086 vs head 350aa4d86, same scene both sides (Hub > ggml-org/gpt-oss-120b-GGUF version picker, headless Chromium, element clip). Hub listings only, no weights.

before and after

before after
rows in picker 3 1
rows MXFP4 59.03 GiB gpt-oss-120b-MXFP4.gguf
BF16 1.48 GiB eagle3-gpt-oss-120b-BF16.gguf
Q8_0 0.79 GiB eagle3-gpt-oss-120b-Q8_0.gguf
MXFP4 59.03 GiB gpt-oss-120b-MXFP4.gguf
default selection BF16 · GGUF · 1.6 GB (a draft head) MXFP4 · GGUF · 63 GB

The repo lists nvidia/gpt-oss-120b-Eagle3-v3 as a source model, confirming the two hidden files are EAGLE3 draft heads rather than versions of the model.

Path coverage

A probe over the verbatim HF listing for both ggml-org gpt-oss repos, run against unmodified main (1d5210d7a) and against this branch:

assertion main this PR
hub.pick_best_gguf (120b / 20b) eagle3-…-Q8_0.gguf gpt-oss-{120b,20b}-MXFP4.gguf
build_gguf_variant_plans [bf16, mxfp4, q8_0] [mxfp4]
model_config._pick_best_gguf eagle3-…-Q8_0.gguf gpt-oss-120b-MXFP4.gguf
unsloth start _is_auxiliary_gguf False True
llama_cpp._is_companion_gguf_path False True
Llama-3.1-8B-Eagle3-Q4_K_M.gguf stays a model not hidden not hidden

8 of 10 assertions fail on main and all 10 pass here. The last row is the no-regression guard: a real model with Eagle3 mid-name is untouched on both sides, since matching is a basename eagle3- prefix, never a substring.

Notes

  • All four _DRAFTER_KINDS mirrors are updated. The only other drafter-prefix list, download-presentation.ts, is fed solely by mtp/dflash planners and cannot receive an eagle3 name.
  • eagle3 is deliberately left out of _DRAFTER_DIR_KINDS: no publisher ships an eagle3/ folder, and a local one could hold real weights, matching the existing dflash rule.
  • MXFP4_MOE is ordered ahead of MXFP4 in both preference lists, which matters because model_config._pick_best_gguf matches by substring.
  • test_mtp_drafter_companion.py goes from 241 to 249 passing. The 4 red checks are pre-existing on main: test_docker_hub_readme, test_accelerator_skip_guards and 5 in test_st_save_merged_signature.py all fail identically at 1d5210d7a with none of this branch's code, and the 3 red smoke checks are uv-cache repair assertions in the Windows installer path.

CI reproduction

The same probe run on GitHub Actions (ubuntu-latest, identical workflow, probe and dependencies on both sides; the only difference is this branch's 6 files):

branch tree result
negative current main 1d5210d7a, unmodified failure — REPRO: DEFECT PRESENT -- 8 assertion(s) failed
positive that same main with this PR merged success — REPRO: FIX VERIFIED -- all assertions passed

The negative fails at the repro assertions themselves, not at setup, and the two no-regression guards (Llama-3.1-8B-Eagle3-Q4_K_M.gguf stays selectable, in both the hub and CLI matchers) pass on both sides.

@Lyxot Lyxot self-assigned this Sep 18, 2026
… drafters

Filtering eagle3- drafters already leaves MXFP4 as the only candidate in the ggml-org gpt-oss repos, so the fallback picks it. Ranking MXFP4 ahead of Q5_K_M and Q8_0 changed the default for unrelated repos that ship MXFP4_MOE without a Q4_K quant.
@Lyxot

Lyxot commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Pushed two small follow-ups on top of this branch:

  • 7a1296fc1b: removed the MXFP4_MOE/MXFP4 entries from both quant preference lists. The bug doesn't need them: once the eagle3- drafts are filtered out, MXFP4 is the only file left in the ggml-org gpt-oss repos, and the existing first-file fallback already picks it. With the ranking in place, the default also changed for unrelated repos that ship MXFP4_MOE without a Q4_K quant (MXFP4_MOE instead of Q8_0). That is worth its own PR if we want it.
  • ed3f1b5537: tests and docstrings only. Dropped the is_reclaimable_drafter_path assertion, which passes whether or not the fix is there. Added Llama-3.1-8B-Eagle3-Q4_K_M.gguf to the CLI listing test as a model that must stay visible. Mentioned the eagle3-*.gguf draft heads in the drafter docstrings.

The eagle3 filtering itself is unchanged. It follows the same eagle3- prefix rule as llama.cpp's gguf_filename_is_model.

@Lyxot

Lyxot commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Codex review of ed3f1b5537 (on a staging copy of this PR): Didn't find any major issues. Lyxot#57 (comment)

@Lyxot Lyxot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Hiding eagle3- draft heads follows the same prefix rule as llama.cpp's gguf_filename_is_model, all four drafter-kind copies agree, and the default for other repos is unchanged. Verified on current main merged with this branch: the related Studio backend and CLI tests pass, and Codex found no major issues.

@Lyxot
Lyxot merged commit 1b4e159 into unslothai:main Sep 18, 2026
57 of 59 checks passed
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
Some GGUF repos ship EAGLE3 draft heads next to the model. ggml-org/gpt-oss-120b-GGUF and ggml-org/gpt-oss-20b-GGUF ship `eagle3-*-BF16.gguf` and `eagle3-*-Q8_0.gguf` beside `*-MXFP4.gguf`. Studio listed the drafts as quant variants and picked one by default, and it failed to load.

`eagle3` is now a drafter kind in hub.utils.gguf and its mirrors in model_config, llama_cpp and the CLI. Like mtp-, dspark- and dflash-, it matches by basename prefix only, which is the rule llama.cpp's `gguf_filename_is_model` uses. A model with Eagle3 in the middle of its name, such as `Llama-3.1-8B-Eagle3-Q4_K_M.gguf`, stays selectable. The quant preference order is unchanged: once the drafts are filtered, MXFP4 is the only candidate left in those repos.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants