Repository navigation
Guard unsupported Nemotron 3.5 GGUF conversion - #486
Merged
Merged
Conversation
3 of 6 tasks
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds early, explicit guardrails in the GGUF import pipeline to prevent generating incomplete or non-runnable artifacts for currently unsupported Nemotron 3.5 GGUF layouts and unsupported runtime targets. It aligns CLI/docs/tests so failures happen before large remote downloads or any artifact directory creation, and ensures multimodal (text+mmproj) flows also validate the GGUF headers up front.
Changes:
- Add Hub-metadata and local-header preflight validation to reject
nemotron_h_moeGGUF conversion and reject sharded/split GGUF inputs early. - Reject
mobius build-gguf --runtime ort-genaiwith an actionable error before creating output artifacts. - Add targeted unit tests plus documentation/skill guidance describing GGUF acceptance gates and Nemotron 3.5 waiver rationale.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/gguf_test.py | Adds a CLI regression test ensuring --runtime ort-genai fails before artifact creation. |
| src/mobius/integrations/gguf/_mmproj.py | Validates both text and mmproj GGUFs before config extraction/graph build to fail fast on unsupported/sharded inputs. |
| src/mobius/integrations/gguf/_mmproj_test.py | Adds minimal GGUF fixtures and tests for early multimodal guard behavior. |
| src/mobius/integrations/gguf/_builder.py | Implements Hub preflight + local-header validation for unsupported architectures and sharded GGUFs. |
| src/mobius/integrations/gguf/_builder_test.py | Adds unit tests covering Nemotron guard behavior, shard rejection, and Hub-preflight fallback behavior. |
| src/mobius/main.py | Rejects build-gguf --runtime ort-genai early and updates CLI help text accordingly. |
| docs/cli_reference.md | Documents new/clarified GGUF CLI options and explicitly states shard + nemotron_h_moe rejection behavior. |
| docs/api/build_from_gguf.md | Updates API docs and adds a detailed Nemotron 3.5 GGUF waiver section with pinned evidence and recipes. |
| .agents/skills/onnx-export-quantization/SKILL.md | Adds reusable “Direct GGUF import acceptance” checks to prevent over-claiming preservation/compatibility. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Reject nemotron_h_moe and split GGUF inputs before expensive downloads or graph construction. Document the pinned MTP, qtype, tokenizer, provenance, and runtime evidence; add focused regressions and refine the direct-GGUF skill guidance. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
justinchuby
force-pushed
the
justinchuby-trial-nemotron-gguf-conversion
branch
from
August 14, 2026 04:00
dbe3a5c to
7c896c9
Compare
justinchuby
enabled auto-merge (squash)
August 14, 2026 04:01
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
nemotron_h_moeGGUFs before remote multi-GB downloads (when Hub metadata is available) and again from the local header before graph construction.mobius build-gguf --runtime ort-genaibefore artifacts because that path cannot yet emit a valid cache/tokenizer contract.Pinned evidence
unsloth/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-GGUF@f2d3fe3694501008786e81e5f20360cbf715496anvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16@d468880b6ad3c6e0d21377ce7242adaea4cc884dQ8_0is qtype-compatible, but lacks semantic acceptance.MXFP4_MOEcontains 12.772B Q5_1 parameters;UD-Q4_K_Mcontains 15.326B Q5_0 + 12.772B Q5_1 parameters, so neither preserves quantization end to end.<|im_end|>padding token (ID 11), and the GGUF records no immutable upstream BF16 commit.Validation
2073725840e007c1fba59ce3cb1f06e4ad9fe75a; the Fix merged unit and lint regressions #484 fixes are inherited, not duplicated.86 passed: GGUF builder/mmproj/CLI plus quantization integration regression suites.3,933 passed, 58 skipped.lintrunner -aandgit diff --checkpass; the worktree is clean.Integration (fast):16 passed, 4 skipped, 2 failed, exclusively the same two DeepSeek parity failures as Fix merged unit and lint regressions #484's repaired-main job (test_deepseek_v2_lite_prefill_logits_matchandtest_deepseek_non_mla_decoder_prefill_logits_match). This PR changes no DeepSeek code.Waivers
Tracks #483.