Repository navigation
test(models): run the large-model suite on a single GPU and fix what it finds - #6307
Merged
Merged
Conversation
…onkeypatch - test_internvl: patch auto.load_model_config, which replaced the removed auto.AutoConfig re-export, so the model_type selection unit test runs again. - test_llama3_2_swordfish: skip on hosts without a Blackwell device via the shared swordfish_skip_reason() gate instead of failing with "Swordfish runtime unavailable". - test_zamba2/test_jamba: importorskip the mamba_ssm/causal_conv1d packages their definitions declare as required.
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.
Summary
Single-GPU sweep of the
tests/models/files that the CPU budget could not cover, plus the test-side fixes it found.CUDA_VISIBLE_DEVICES=1; it appears ascuda:0in-process. GPUs 2 and 3 were busy with other work and were never used. Nodevice_map="auto"override was passed by the runner./monster/data/model/and were not in the 20 files already green on CPU (test_opt.py,test_lfm2_vl.py,test_deepseek_vl.py,test_model_test_fast_mode.py,test_non_w4a_lifecycle.py, and 15test_w4a_*files).test_inkling_mm_model.pywas dropped because its checkpoint directory is unreadable.test_llama3_2_swordfish.py); the remaining 4 are environmental (GB10 cgroup scope, transformers-5 tokenizer conversion)./tmp/modelsgpu/<file>.log; raw outcomes:/tmp/modelsgpu/results.tsv.Outcome inventory
test_act_group_aware.pytest_admmq_real_model.pytest_bloom.pytest_bloom_bias_torch_fused.pytest_codegen.pytest_ernie4_5.pytest_gemma3.pytest_glm_asr.pytest_glm_ocr.pytest_gpt2.pytest_gptbigcode.pytest_granite.pysentencepiece/tiktokenare installed (checkpoint has onlyvocab.json+merges.txt); environmental, see belowtest_granite_4_0_h_350m.pymmlu_stem(12,612 samples) + arctest_granite_swa.pytest_internlm2_5.pytest_internvl.pyauto.AutoConfigremoved); fixedtest_internvl_chat.pytest_k2_horizon.pytest_lfm2.pytest_llama3_2_fusion.pytest_llama3_2_fusion_devices.pytest_llama3_2_gsq_paper_w3.pytest_llama3_2_gsq_staged.pyGPTQMODEL_RUN_LLAMA3_2_GSQ_STAGED_E2E=1test_llama3_2_lazy_turtle_memory.pytest_llama3_2_macaq.pytest_llama3_2_swordfish.pyswordfish_skip_reason())test_llama3_2_w4a16_reference.pyrun_w4a_gb10_safe.sh; environmentaltest_llama3_2_w4a_nvfp4.pytest_llama3_2_w4afp8.pytest_multi_vs_single_gpu.pytest_ouro.pytest_qwen2_5.pytest_qwen2_vl.pytest_qwen3_vl.pytest_tinyllama.pytest_yi.pytest_zamba2.pymamba_ssm/causal_conv1dimport gate; fixedFixes (red → green)
1.
test_internvl.py: stale monkeypatch targetgptqmodel.models.autono longer re-exportsAutoConfig; config loading moved toload_model_configingptqmodel.utils.hf, whichautoimports into its namespace.pytest models/test_internvl.py::test_internvl_model_type_selects_definition→1 failed(AttributeError: module 'gptqmodel.models.auto' has no attribute 'AutoConfig'). The full file was1 failed, 3 passed.auto.load_model_configinstead ofauto.AutoConfig.from_pretrained.1 passed; the other three nodes already passed and are untouched.2.
test_llama3_2_swordfish.py: missing Blackwell gateThe file only honoured the
GPTQMODEL_SKIP_SWORDFISH_E2Eenv var. On this SM 8.9 host it failed withValueError: Swordfish runtime unavailable.instead of skipping, although the repo already owns the capability gate.1 failed in 43.55s(ValueError: Swordfish runtime unavailable).tests.accelerator_gates.swordfish_skip_reason()at class level, matchingtests/kernels/test_swordfish.py.1 skipped in 3.17s—Swordfish requires Blackwell (sm100+); no visible device is supported (cuda:0=sm89).3.
test_zamba2.py/test_jamba.py: missing optional-dependency gatesZamba2QModel.require_pkgsdeclaresmamba_ssm>=2.3.1andcausal_conv1d>=1.2.0;JambaQModel.require_pkgsdeclaresmamba-ssm. Neither test gated on the import, so the loader raised during model construction.models/test_zamba2.py→1 failed in 3.69s(ValueError: Zamba2QModel requires version mamba_ssm>=2.3.1, but mamba_ssm not installed).pytest.importorskip(...)for the declared packages, matchingtest_axk2.py's pattern.2 skipped in 2.93swith the two explicit reasons.Failure classification
test_internvl.py(fixed above).test_llama3_2_swordfish.py(Blackwell),test_zamba2.py+test_jamba.py(optional packages) — fixed above.test_multi_vs_single_gpu.pyalready skips itself with <2 devices.test_llama3_2_w4a16_reference.py,test_llama3_2_w4a_nvfp4.py,test_llama3_2_w4afp8.py) raise fromw4a_gb10_memory._require_limited_scope()because this host is not the GB10 memory-limited scope; that is the helper's documented contract, not a regression.test_granite.pycannot build its tokenizer under transformers 5.23 from the checkpoint'svocab.json+merges.txt(notokenizer.json); bothsentencepieceandtiktokenare installed, so this is a transformers/checkpoint-format issue outside this change.test_granite_4_0_h_350m.py(mmlu_stem),test_k2_horizon.py(all 13 layers),test_bloom_bias_torch_fused.py(custom dataset),test_ouro.py,test_admmq_real_model.py— all exceed the 240 s/file ceiling in fast mode.The four untouched-file failures were confirmed identical at
2d3261d(git diff 2d3261d HEAD -- <those files>is empty), so they are pre-existing on this host and not caused by this branch.Not run
123 of the 160 candidates remain. The 240 s/file ceiling and the ~35 min wall-clock budget allowed 37 files; the remainder are dominated by:
mmlu_stem/gsm8k_platinum_cot(12k+ fixed samples),DeepSeek-V3.2,GLM-5.x,MiniMax-M2/M3,Qwen3-Next,Solar-Open).The ordered candidate list and the checkpoint each file targets are in
/tmp/modelsgpu_queue.json; per-file logs are in/tmp/modelsgpu/.Validation
ruff check tests/models/test_internvl.py tests/models/test_llama3_2_swordfish.py tests/models/test_zamba2.py tests/models/test_jamba.py→ All checks passed!