Skip to content

Fix merged unit and lint regressions - #484

Merged
justinchuby merged 1 commit into
mainfrom
justinchuby-repair-skills-ci
Aug 14, 2026
Merged

justinchuby merged 1 commit into
mainfrom
justinchuby-repair-skills-ci

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • update the diffusers fallback test for the current execution_provider="default" contract
  • apply the pinned Ruff formatting and RUF043 fixes reported by CI
  • replace invalid MagicMock package components in ORT GenAI tests with minimal real onnx_ir.Model fixtures

No model behavior or test tolerances change.

Validation

  • targeted repair tests: 137 passed
  • canonical non-integration suite: 3923 passed, 58 skipped
  • lintrunner -a: clean
  • pinned Ruff check/format across all tracked Python files: clean

Refs #483

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]>
@github-actions

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing 9b07f09 → 27b5f59

Model Sub-model Changes Status

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

@github-actions

Copy link
Copy Markdown

Performance Comparison

Comparing 9b07f09 → 27b5f59

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 60 60 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 388 KB 388 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 264 264 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 126 126 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 428 428 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 166 166 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 MagicMock ORT GenAI package components with minimal real onnx_ir.Model instances in auto_export_test.py.
  • Update the diffusers fallback builder test to expect execution_provider="default" in forwarded kwargs.
  • Adjust a ModelPackage error-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
justinchuby enabled auto-merge (squash) August 14, 2026 03:00
@justinchuby
justinchuby disabled auto-merge August 14, 2026 03:57
@justinchuby
justinchuby merged commit 2073725 into main Aug 14, 2026
23 of 24 checks passed
@justinchuby
justinchuby deleted the justinchuby-repair-skills-ci branch August 14, 2026 03:57
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]>
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