Skip to content

fix(xla): clear the Gemma3 VLM clippy failures in nightly - #2340

Merged
inureyes merged 1 commit into
mainfrom
fix/xla-gemma3-vlm-clippy
Oct 15, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/xla-gemma3-vlm-clippy

Conversation

@inureyes

Copy link
Copy Markdown
Member

Nightly verify run 38819880080 on main 93748aa failed make verify-clippy (--workspace --all-targets -- -D warnings) on code added by #917, while its test and video steps passed:

  • Gemma3VlmCompatibilityContract, its new/stable_identity, and bind_gemma3_vlm_compatibility (prepared_gemma3.rs) are only called from iree.rs, so they are dead without the iree feature. They now carry #[cfg_attr(not(feature = "iree"), allow(dead_code))], the attribute lib.rs already uses for prepared.
  • Four 1 * 4 + col / 1 * 8 + col mask indices in the Gemma3 export test tripped identity_op. The test allows that lint so the indices keep their row * width + col form.
  • mod gemma3_vlm_mask_tests in emitter/model.rs sat before the MoE probe emitters (items_after_test_module); it now ends the file, unchanged.

No behavior change. cargo clippy -p mlxcel-xla --all-targets -- -D warnings, cargo clippy --workspace --all-targets --features cuda -- -D warnings and fmt are clean, and the mlxcel-xla lib tests pass (308 passed). The iree feature build needs an IREE install that this host lacks; the attribute is a no-op there.

Refs #917

Nightly verify run 38819880080 on main 93748aa failed `make verify-clippy` (`--workspace --all-targets -- -D warnings`) on code added by #917, while its test and video steps passed:

- `Gemma3VlmCompatibilityContract`, its `new`/`stable_identity`, and `bind_gemma3_vlm_compatibility` (`prepared_gemma3.rs`) are only called from `iree.rs`, so they are dead without the `iree` feature. They now carry `#[cfg_attr(not(feature = "iree"), allow(dead_code))]`, the attribute `lib.rs` already uses for `prepared`.
- Four `1 * 4 + col` / `1 * 8 + col` mask indices in the Gemma3 export test tripped `identity_op`. The test allows that lint so the indices keep their `row * width + col` form.
- `mod gemma3_vlm_mask_tests` in `emitter/model.rs` sat before the MoE probe emitters (`items_after_test_module`); it now ends the file, unchanged.

No behavior change. `cargo clippy -p mlxcel-xla --all-targets -- -D warnings`, `cargo clippy --workspace --all-targets --features cuda -- -D warnings` and fmt are clean, and the mlxcel-xla lib tests pass (308 passed). The `iree` feature build needs an IREE install that this host lacks; the attribute is a no-op there.

Refs #917
@inureyes inureyes added type:bug Bug fixes, error corrections, or issue resolutions priority:low Low priority status:review Under review area:models Model architectures, weights, loading, metadata status:done Completed and removed status:review Under review labels Oct 15, 2026
@inureyes
inureyes merged commit 93e5ef7 into main Oct 15, 2026
29 checks passed
@inureyes
inureyes deleted the fix/xla-gemma3-vlm-clippy branch October 15, 2026 23:42
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:models Model architectures, weights, loading, metadata priority:low Low priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant