Repository navigation
test(models): unbreak the four unowned muse_glimmer/solar_open nodes - #6390
Merged
Merged
Conversation
- test_muse_glimmer/test_solar_open definition-selection tests patched `auto.AutoConfig`, which `gptqmodel.models.auto` no longer re-exports; `check_and_get_model_definition()` now reads the config through `auto.load_model_config` (the same seam test_solar_open2.py uses). - The Solar Open tiny fixture now builds the vendored `gptqmodel.models.ports.native.solar_open` config/model. Since #4620 the definition loads through a LocalModelLoader whose `NativeForCausalLM._model_class()` rejects a `transformers.SolarOpenConfig` by design (`_require_vendored_config`), so `build_shell_model` raised "SolarOpenConfig is not a vendored GPT-QModel config". - TestMuseGlimmer reloads the fast-mode checkpoint with `EVAL_SINGLE_GPU = False` so a multi-accelerator host can spread it, and skips with a precise reason when the host exposes < 56 GiB of visible accelerator memory. Fast mode only quantizes 2 of 52 decoder layers, so the saved checkpoint keeps ~58 GB of bf16 weights (29.78 B params minus 0.97 B quantized); a single 48 GiB RTX 4090 OOMs in `accelerate.load_checkpoint_in_model` and cannot hold it. Slow mode quantizes every layer (~17 GB) and still runs. Measured on one pinned RTX 4090 (SM 8.9, 47.45 GiB), torch 2.15+cu132, transformers 5.23.0: models/test_muse_glimmer.py: 5 passed, 1 skipped models/test_solar_open.py (excluding the 100B TestSolarOpen): 6 passed Fixes #6384
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.
Fixes #6384.
Sweep of
tests/models/onorigin/main=0dd8e8ableft four nodes red that no open PR covered. This PR fixes them without touching product code.Changes
test_muse_glimmer.py::test_muse_glimmer_model_type_selects_definitionandtest_solar_open.py::test_solar_open_model_type_selects_definition— both patchedauto.AutoConfig.from_pretrained, butgptqmodel.models.autono longer re-exportsAutoConfig;check_and_get_model_definition()reads the config through the module-levelload_model_config(). Point the monkeypatch at that seam (same astest_solar_open2.py/test_deepseek_vl.py/test_openvla.py).test_solar_open.py::test_solar_open_lazy_turtle_materializes_defused_expert_weights— the tiny fixture builttransformers.SolarOpenConfig/SolarOpenForCausalLM, then handed that config tobuild_shell_model(SolarOpenQModel.loader, ...). Since #4620 the definition uses aLocalModelLoaderandNativeForCausalLM._model_class()rejects non-vendored configs by design (TypeError: SolarOpenConfig is not a vendored GPT-QModel config). Build the fixture from the vendoredgptqmodel.models.ports.native.solar_openclasses, which is what a real load uses.test_muse_glimmer.py::TestMuseGlimmer::test_muse_glimmer— the node OOMs on a single 48 GiB RTX 4090 while reloading the fast-mode checkpoint:Fast model-compat mode only quantizes 2 of 52 decoder layers, so the saved checkpoint keeps ~58 GB of bf16 weights (29.78 B params − 0.97 B quantized to 4-bit ≈ 54.1 GiB), more than a 48 GiB card. The class now sets
EVAL_SINGLE_GPU = False(let a multi-accelerator host spread the shards) and skips with a precise reason when the host exposes < 56 GiB of visible accelerator memory.GPTQMODEL_MODEL_TEST_MODE=slowstill runs, because full quantization produces a ~17 GB checkpoint that fits.Verification (one pinned RTX 4090, SM 8.9, 47.45 GiB; torch 2.15+cu132, transformers 5.23.0)
test_muse_glimmer_model_type_selects_definitionandtest_solar_open_model_type_selects_definition→AttributeError: module 'gptqmodel.models.auto' has no attribute 'AutoConfig';test_solar_open_lazy_turtle_materializes_defused_expert_weights→TypeError: SolarOpenConfig is not a vendored GPT-QModel config;TestMuseGlimmer→ CUDA OOM.tests/module_tree/test_solar_open2_local_port.py,tests/test_solar_open2_local_port.py,tests/test_native_definition_loading_1.py,tests/test_awq_scaling_groups.py,tests/test_paro.py,tests/models/test_solar_open2.py(minus the 250B class) → 461 passed, 55 skipped.tests/models/test_llama3_2_torch_fused.py(ModelTest-based, TORCH + TORCH_FUSED, CPU) → 2 passed.ruff check tests/models/test_muse_glimmer.py tests/models/test_solar_open.py→ clean.git status --porcelainbefore commit → only the two test files.TestSolarOpen::test_solar_open(100B) is not one of the four reported nodes and this diff does not touch its class. A run on the pinned 4090 was stopped after 28 min while it was still writing the fast-mode checkpoint (the model is ~200 GB of bf16 weights); itsautodevice map resolves to the single visible GPU, so it cannot complete on a 48 GiB card.Draft PR only.