Repository navigation
Studio: support Muse Spark Open GGUFs - #13903
Merged
Merged
Conversation
Add a muse-spark sampling family (temperature 1.0, top_p 1.0, top_k disabled, min_p 0.0) so every repo, repo:quant, snapshot and local .gguf id resolves to the model card's settings instead of default.yaml. The Muse Spark template accepts reasoning_effort low, medium, high and xhigh only and raises on anything else. Map none and minimal to low and max to xhigh for the muse-spark architecture so a request can never fail the render. Tests cover sampling for every id shape, the eight-quant variant menu and shard resolution, imatrix_unsloth.gguf never being a model, reasoning detection and that every reasoning kwarg Studio can send renders against the template.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 15, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 15, 2026
…3909) With #13846 merged, main (d303bac) is still red in Backend CI and Repo tests, from three regressions that landed in the last few hours. Each is reproduced locally on main and fixed here. ## 1. `test_text_io_names_its_encoding[drafter.py]` (from #13806) ``` drafter.py:222: subprocess(text = True) without encoding ``` `core/training/drafter.py` runs the drafter capability probe in a child interpreter with `text = True` and no encoding, so the parent decodes the child's output with the locale codec (cp1252 on Windows, ASCII under a C locale). The guard is right and the code is what changes: the call now passes `encoding = "utf-8", errors = "replace"`, and the child gets `PYTHONIOENCODING=utf-8` so it writes what the parent reads. That matches how `core/training/worker.py` runs its own probes. The payload line is `json.dumps` output, so nothing parsed changes. ## 2. `test_backfill_splits_a_quant_suffix_the_way_the_backend_does` (from #13899) ``` AssertionError: MXFP ``` #13899 widened the GGUF known-quant pattern from `MXFP...` to `(?:MX|NV)FP...` so NVFP4 files get their own variant key. That change is right, and it was made consistently in all three places that must agree: `core/inference/llama_cpp.py` (`_GGUF_KNOWN_QUANT_RE`), `hub/utils/gguf.py` (`_GGUF_QUANT_RE`) and the frontend's `model-identity.ts` (`QUANT_TOKEN_SOURCE`). The test was checking that the literal substring `MXFP` appears in `llama_cpp.py`, which it no longer does. The test now checks the property it was standing in for: it reads the pattern string out of both Python modules with `ast` (adjacent literals joined as Python joins them) and the TypeScript constant, asserts all three are identical, and asserts the shared pattern still fully matches `MXFP4`, `NVFP4`, `IQ4_XS`, `TQ1_0`, `Q4_K_M`, `Q8_0`, `BF16`, `F16` and `F32`. That is stricter than before, since a pattern edited on one side only now fails, and it no longer breaks on a correct rewording. ## 3. `test_every_tracked_python_file_is_already_formatted` Formatter drift (pinned ruff 0.6.9 via `scripts/run_ruff_format.py`), output only, no logic change: | file | from | | --- | --- | | `studio/backend/core/inference/llama_cpp.py`, `offload_layout.py`, `tests/test_nemotron35_bolt_super.py`, `tests/test_nemotron35_planner.py` | #13899 | | `studio/backend/tests/test_muse_spark.py` | #13903 | | `tests/test_norm_fast_launch.py`, `unsloth/kernels/layernorm.py` | #13889 | | `tests/test_remote_code_class_and_expert_submodules.py`, `unsloth/models/_utils.py` | #13851 | | `tests/test_triton_fp_fusion.py` | #13846 | ## Verification - `tests/test_formatter_fixed_point.py` (ruff 0.6.9): fails on main, 16 passed here. - `tests/studio/test_model_picker_contracts.py` and `tests/test_runtime_text_encoding.py`: 210 passed. - `studio/backend/tests/test_text_io_encoding.py`, `test_nemotron35_bolt_super.py`, `test_drafter_training.py`: all pass except `test_capability_child_process_runs_for_real`, which fails identically on main without this change on this host (it runs the probe in a real child interpreter) and is not failing in CI. - Sabotage on the rewritten picker guard: dropping `NV` from the pattern in `hub/utils/gguf.py` only, or in `model-identity.ts` only, fails it; restored, it passes. - Sabotage for (1) is main itself: without the encoding, the guard fails as quoted above.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Studio support for the Muse Spark Open GGUFs (
unsloth/Muse-Spark-Open-816B-A42B-GGUF, llama.cpp archmuse-spark, loaded through the prebuilt llama.cpp that carries ggml-org/llama.cpp#30616).muse-sparkfamily uses the model card settings: temperature 1.0, top_p 1.0, top_k disabled, and min_p 0.0. The Hugging Face generation_config.json lists top_k 64, but the model card recommends top_k disabled and its benchmarks use that, so the card wins. Before this, every Muse Spark id fell through todefault.yaml(0.7 / 0.95 / min_p 0.01).muse-glimmer, so Glimmer keeps its own 0.95 / 64.reasoning_effortlow, medium, high or xhigh (default xhigh). Any other value hitsraise_exception, and the render fails.nonesentinel as-is, and the default-effort path forwardednone,minimalandmax. All of them failed.muse-sparkarchitecture only,noneandminimalnow map tolowandmaxmaps toxhigh. Inkling's numeric mapping and every other architecture are unchanged.Already handled by main (verified, no change needed)
imatrix_unsloth.ggufis never offered as a variant and never picked as the model.<|start|>assistant to=self<|message|>, so the existing recipient-channel parser handles the output:selfis reasoning,useris the reply.Testing
tests/test_muse_spark.py, 38 tests. 12 fail on main and all pass on this branch.studio/backend/tests,-n 24): main vs this branch comparison of failing test IDs is in progress; I will update here.-c 134144, flash attention on), run on a model: add Muse Spark Open (text, vision and audio) ggml-org/llama.cpp#30616 llama-server build on two B200s.reasoning_content, answer17 x 23 = 391.391; the system prompt rendersReasoning strength: 8.reasoning_effort: "none"fails with HTTP 500Unsupported reasoning_effort. That is the failure the coercion prevents.