Skip to content

Improve arch diff dtype reporting and Gemma4 test coverage - #273

Merged
justinchuby merged 1 commit into
mainfrom
improve-arch-diff-dtype
May 6, 2026
Merged

justinchuby merged 1 commit into
mainfrom
improve-arch-diff-dtype

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Changes

Graph diff improvements (_graph_diff.py)

  • Interface change details: Show dtype and shape specifics instead of generic 'input[N] changed'. Example: input[3]: dtype BOOL → FLOAT; shape [?, 1, ?, ?] → [?, ?]
  • Initializer dtype distribution: Show per-dtype count changes instead of just total count. Example: FLOAT16: 42 → 38, FLOAT: 0 → 4 — makes it easy to spot when a PR changes the compute precision of weights.

Test config improvements (_test_configs.py)

  • Add sliding_window=8 to both gemma4_text and gemma4 multimodal test configs. This exercises the sliding window mask generation path in L1 tests, which was previously untested by the parametrized suite.

Testing

  • 2724 tests pass, 0 failures
  • All 15 Gemma4 tests pass
  • All 27 graph diff tests pass

Graph diff improvements:
- Show dtype and shape details in interface change reports instead of
  generic 'input[N] changed' (e.g. 'input[3]: dtype BOOL → FLOAT')
- Show initializer dtype distribution changes (e.g. 'FLOAT16: 42 → 38,
  FLOAT: 0 → 4') instead of just count changes

Test config improvements:
- Add sliding_window=8 to gemma4_text and gemma4 multimodal test configs
  to exercise sliding window mask generation in L1 tests

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing f027a8e → 085ba0e

Model Sub-model Changes Status

No architecture changes detected. ✅


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

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Performance Comparison

Comparing f027a8e → 085ba0e

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 107 107 +0.0% ⚪
gpt2 model_size_bytes 388 KB 388 KB +0.0% ⚪
gpt2 num_nodes 53 53 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 61 61 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 58 58 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 98 98 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 59 59 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 61 61 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 58 58 +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 275 275 +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 129 129 +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 408 408 +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.

@codecov

codecov Bot commented May 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 3.70370% with 26 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/mobius/_graph_diff.py 3.70% 26 Missing ⚠️

📢 Thoughts on this report? Let us know!

@justinchuby
justinchuby enabled auto-merge (squash) May 6, 2026 16:03
@justinchuby
justinchuby disabled auto-merge May 6, 2026 17:03
@justinchuby
justinchuby merged commit e5eb966 into main May 6, 2026
24 of 27 checks passed
@justinchuby
justinchuby deleted the improve-arch-diff-dtype branch May 6, 2026 17:03
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.

1 participant