Skip to content

test(jamba): x_proj is a declared quantizable mixer projection - #5538

Merged
Qubitium merged 1 commit into
mainfrom
test/jamba-x-proj-quantizable
Nov 19, 2026
Merged

Qubitium merged 1 commit into
mainfrom
test/jamba-x-proj-quantizable

Conversation

@ZX-ModelCloud

Copy link
Copy Markdown
Collaborator

Summary

#4245 declared every decoder leaf, which makes mamba.x_proj a quantization
target. test_tiny_jamba_gptq_quantization_smoke still asserted the opposite,
so it fails on main:

assert isinstance(modules["model.layers.0.mamba.x_proj"], torch.nn.Linear)

What Changed

  • Assert mamba.x_proj is a TorchLinear (the declared behaviour) and keep
    the dense assertions for dt_proj and conv1d, which are not quantized.
  • No production code changes.

Refs #4245.

Tests

cd tests
python -m pytest test_jamba_support.py -o addopts= -q --timeout=900
# before (ddf11fcc6): 1 failed
# after:              6 passed
  • Unit tests have been executed and passed, or the reason they are not applicable is documented.
  • I added a new simple/fast unit test for this change, or documented why that is not applicable.

Not applicable: this corrects a stale assertion in an existing smoke test.

#4245 declared every decoder leaf, which makes `mamba.x_proj` a quantization
target. The tiny-model smoke test still asserted it stays a dense
`nn.Linear`, so it failed on main.

`conv1d` and `dt_proj` remain dense; only `x_proj` moves.

Red: assert isinstance(modules["model.layers.0.mamba.x_proj"], torch.nn.Linear)
  fails on ddf11fc.
Green: test_jamba_support.py 6 passed.
@Qubitium
Qubitium marked this pull request as ready for review November 19, 2026 10:39
@Qubitium
Qubitium merged commit 4414ea9 into main Nov 19, 2026
6 checks passed
@Qubitium
Qubitium deleted the test/jamba-x-proj-quantizable branch November 19, 2026 10:39
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