Skip to content

test(models): unbreak the four unowned muse_glimmer/solar_open nodes - #6390

Merged
Qubitium merged 1 commit into
mainfrom
fix/models-unowned-red
Nov 29, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/models-unowned-red

Conversation

@Qubitium

@Qubitium Qubitium commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #6384.

Sweep of tests/models/ on origin/main = 0dd8e8ab left 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_definition and test_solar_open.py::test_solar_open_model_type_selects_definition — both patched auto.AutoConfig.from_pretrained, but gptqmodel.models.auto no longer re-exports AutoConfig; check_and_get_model_definition() reads the config through the module-level load_model_config(). Point the monkeypatch at that seam (same as test_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 built transformers.SolarOpenConfig / SolarOpenForCausalLM, then handed that config to build_shell_model(SolarOpenQModel.loader, ...). Since #4620 the definition uses a LocalModelLoader and NativeForCausalLM._model_class() rejects non-vendored configs by design (TypeError: SolarOpenConfig is not a vendored GPT-QModel config). Build the fixture from the vendored gptqmodel.models.ports.native.solar_open classes, 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:

E   torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 52.00 MiB.
    GPU 0 has a total capacity of 47.45 GiB ... this process has 43.59 GiB memory in use
    (accelerate/utils/modeling.py -> safetensors.torch.load_file, device=0)

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=slow still 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)

cd tests
CUDA_VISIBLE_DEVICES=3 PYTHONPATH=<clone>:<clone>/tests \
  /root/venv/bin/python -m pytest models/test_muse_glimmer.py models/test_solar_open.py \
  -q -rs -p no:cacheprovider --deselect models/test_solar_open.py::TestSolarOpen::test_solar_open
# 11 passed, 1 skipped, 1 deselected
# SKIPPED: Muse-Glimmer-30B fast-mode checkpoint keeps ~58 GB of bf16 weights;
#          needs >=56 GiB of visible accelerator memory (a 48 GiB RTX 4090 cannot hold it)
  • Before: test_muse_glimmer_model_type_selects_definition and test_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.
  • Neighbouring suites: 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.
  • Shared-harness smoke on another model: 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 --porcelain before 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); its auto device map resolves to the single visible GPU, so it cannot complete on a 48 GiB card.

Draft PR only.

- 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
@Qubitium
Qubitium marked this pull request as ready for review November 29, 2026 15:20
@Qubitium
Qubitium merged commit 32c09d4 into main Nov 29, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/models-unowned-red branch November 29, 2026 15:21
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.

[TEST] main 0dd8e8ab: four unowned model-suite nodes red (muse_glimmer x2, solar_open x2)

1 participant