Repository navigation
Fix merged unit and lint regressions - #484
Merged
Merged
Conversation
Update the diffusers fallback expectation for the execution provider contract, apply pinned Ruff fixes, and use real minimal IR models in ORT GenAI package tests now that ModelPackage validates component types. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
3 of 6 tasks
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes CI regressions by updating unit tests to match the current execution_provider="default" contract, applying pinned Ruff formatting/lint fixes, and replacing ORT GenAI test MagicMock components with minimal real onnx_ir.Model fixtures so graph/package introspection behaves like production.
Changes:
- Replace
MagicMockORT GenAI package components with minimal realonnx_ir.Modelinstances inauto_export_test.py. - Update the diffusers fallback builder test to expect
execution_provider="default"in forwarded kwargs. - Adjust a
ModelPackageerror-message regex in tests and apply Ruff-driven formatting in_model_package.py.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/mobius/integrations/ort_genai/auto_export_test.py | Uses minimal real onnx_ir.Model fixtures instead of MagicMock to make package/graph introspection tests match actual behavior. |
| src/mobius/_model_package.py | Ruff-format-only change to the TypeError raise in ModelPackage.__setitem__. |
| src/mobius/_model_package_test.py | Escapes the . in the expected error message regex (ir\.Model) to avoid unintended regex matching. |
| src/mobius/_builder_test.py | Updates diffusers fallback test to assert execution_provider="default" is forwarded to build_diffusers_pipeline. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
justinchuby
enabled auto-merge (squash)
August 14, 2026 03:00
justinchuby
disabled auto-merge
August 14, 2026 03:57
This was referenced Aug 14, 2026
justinchuby
added a commit
that referenced
this pull request
Aug 14, 2026
## Summary - Fail fast for `nemotron_h_moe` GGUFs before remote multi-GB downloads (when Hub metadata is available) and again from the local header before graph construction. - Reject split GGUF shards, including text/mmproj paths, rather than emitting incomplete weights. - Reject `mobius build-gguf --runtime ort-genai` before artifacts because that path cannot yet emit a valid cache/tokenizer contract. - Document the pinned Nemotron 3.5 GGUF/BF16 evidence, exact file-selection commands, Option A direct-ORT recipe, acceptance gates, and waiver; refine the quantization skill with reusable direct-GGUF checks. ## Pinned evidence - GGUF: `unsloth/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-GGUF@f2d3fe3694501008786e81e5f20360cbf715496a` - Official BF16: `nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16@d468880b6ad3c6e0d21377ce7242adaea4cc884d` - Backbone schedule: 23 Mamba + 23 MoE + 6 attention layers; GGUF block 52 is the separate combined attention+MoE MTP block. - `Q8_0` is qtype-compatible, but lacks semantic acceptance. `MXFP4_MOE` contains 12.772B Q5_1 parameters; `UD-Q4_K_M` contains 15.326B Q5_0 + 12.772B Q5_1 parameters, so neither preserves quantization end to end. - GGUF padding ID 999 conflicts with the official `<|im_end|>` padding token (ID 11), and the GGUF records no immutable upstream BF16 commit. ## Validation - Rebased linearly onto repaired main commit `2073725840e007c1fba59ce3cb1f06e4ad9fe75a`; the #484 fixes are inherited, not duplicated. - `86 passed`: GGUF builder/mmproj/CLI plus quantization integration regression suites. - Canonical non-integration suite: `3,933 passed, 58 skipped`. - Live Hub metadata preflight rejected the pinned 35 GB Q8 file before download. - Initialized `lintrunner -a` and `git diff --check` pass; the worktree is clean. - Independent release review found no remaining significant issues. - Refreshed CI passes Lint, all Ubuntu/Windows test jobs, Build, L1 smoke, Architecture Diff, benchmarks, CodeQL, affected-model detection, CLA, and lintrunner. - Self-hosted `Integration (fast)`: `16 passed, 4 skipped, 2 failed`, exclusively the same two DeepSeek parity failures as #484's repaired-main job (`test_deepseek_v2_lite_prefill_logits_match` and `test_deepseek_non_mla_decoder_prefill_logits_match`). This PR changes no DeepSeek code. ## Waivers - No Nemotron GGUF ONNX artifact, ORT load, ORT GenAI load, or generation is claimed: the new guard intentionally prevents unsupported artifacts. Current Nemotron-H synthetic parity is skipped/xfail (expert shape transfer mismatch and Mamba2 recurrence divergence). - Foundry Local and L4/L5 generation are waived until architecture parity, MTP handling, tokenizer provenance, and runtime cache bindings are implemented. - The inherited DeepSeek GPU parity failures are outside this focused PR; fixing them here would mix unrelated model work. Tracks #483. Signed-off-by: Justin Chu <[email protected]> Co-authored-by: Copilot App <[email protected]>
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
execution_provider="default"contractMagicMockpackage components in ORT GenAI tests with minimal realonnx_ir.ModelfixturesNo model behavior or test tolerances change.
Validation
lintrunner -a: cleanRefs #483