Repository navigation
test: fix two stale #4769 section A items (bits_new NATIVE_MODEL_ID, jamba mamba_ssm gate) - #5059
Merged
Merged
Conversation
Part of #4769. - tests/test_bits_new.py: default NATIVE_MODEL_ID to the local Llama-3.2-1B-Instruct checkpoint and skip when neither the env var nor the default exists, instead of raising KeyError in all four params. - tests/test_jamba_support.py: importorskip("mamba_ssm") in the smoke test only; the CPU contract tests above it do not need the package. Verified: with NATIVE_MODEL_ID=/nonexistent the four bits params skip with the new reason, and the unset-env default resolves to the existing local checkpoint; the jamba smoke test skips with "could not import 'mamba_ssm'" while the file's five CPU contract tests pass.
- tests/test_bits_new.py: `test_quant_and_eora` read
`os.environ["NATIVE_MODEL_ID"]`, so all four params died with
`KeyError: 'NATIVE_MODEL_ID'` on any host that does not export it. Default
to the local Llama-3.2-1B-Instruct checkpoint, honour an explicit value
verbatim (it may be a hub repo id), and skip with a precise reason when an
absolute local path is absent.
- tests/test_jamba_support.py: the smoke test calls `GPTQModel.load()`, which
validates the definition's `mamba-ssm` requirement and raises
`PackageNotFoundError` when the metadata is absent. Gate only that test on
`pytest.importorskip("mamba_ssm")`; the five CPU contract tests above it do
not need the package.
Part of #4769.
This was referenced Nov 18, 2026
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.
Part of #4769 (section A). Both failures reproduce on this host at
origin/maine1b22483; neither is environment-only.1.
tests/test_bits_new.py— 4 ×KeyError: 'NATIVE_MODEL_ID'Test.test_quant_and_eoradidself.NATIVE_MODEL_ID = os.environ["NATIVE_MODEL_ID"]while the class-level assignments are commented out, so all fourbitsparams fail on any host that does not export the variable.Fix: default to the local
/monster/data/model/Llama-3.2-1B-Instructcheckpoint (the convention of the othertests/test_*.pyfiles), honour an explicitNATIVE_MODEL_IDverbatim — it may be a hub repo id, so it is not existence-checked — andpytest.skipwith a precise reason only when an absolute local path is absent.2.
tests/test_jamba_support.py—PackageNotFoundError: mamba-ssmtest_tiny_jamba_gptq_quantization_smokereachesGPTQModel.load(), which validates the definition'smamba-ssmrequirement from distribution metadata and dies withStopIteration/PackageNotFoundErrorwhen the package is not installed. Gate only that test withpytest.importorskip("mamba_ssm"); the five CPU contract tests in the file do not need it and still run.Verification (this host,
origin/maine1b22483)With the env var unset the default resolves to an existing absolute path (
/monster/data/model/Llama-3.2-1B-Instruct,exists=True), so no skip fires and the test runs as before — verified by a bounded run that enteredtest_quant_and_eorawith that model id and noKeyError.