Skip to content

test: realign residual suite triage with current kernels and layouts (#4769) - #5063

Merged
Qubitium merged 1 commit into
mainfrom
root/triage-residual-4769
Nov 18, 2026
Merged

Qubitium merged 1 commit into
mainfrom
root/triage-residual-4769

Conversation

@Qubitium

@Qubitium Qubitium commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What

Realign the remaining Round-17 test failures from #4769 that reproduce on this
host (8x PG506, sm_80, CUDA-only; torch 2.15.0.dev+cu130; transformers 5.20.2).
Every change is test-side and none weakens an assertion. The two section-A
items (test_bits_new NATIVE_MODEL_ID and the Jamba mamba_ssm gate) were
already fixed on main by #5059, so they are not part of this diff.

Red -> green (base e3ec24309 -> branch)

node base failure branch
tests/test_ret_idx_group_order.py::test_layer_ret_idx_matches_reference_and_invalidates[TorchAtenLinear] CPU int4pack rejects in_features=4100 with group_size=32 use 4096, valid for both fused kernels; remainder layouts stay covered by the builder test
tests/test_gguf_all_formats.py::test_cpp_unsupported_native_types_always_fall_back[dtype2-*] (6) bf16 diff 0.00390625 > atol 2e-3 one bf16 dtype ULP (torch.finfo(torch.bfloat16).eps) for bf16 only; fp16/fp32 keep 2e-3
tests/test_rco_discovery.py::test_loading_and_materializing_use_all_declared_packed_projections tensor(2) != tensor(1) on qzeros_format after load stage FORMAT.GPTQ_V2 arms, as the real rco_allocate pipeline does, so the v1->v2 normalization no longer rewrites the fixture payload
tests/test_packable.py::TestPackable::test_post_init_3_torch_fused scales unexpectedly unequal CPU int4pack deliberately keeps scales in checkpoint dtype/layout (#4178); expectation corrected to equal
tests/test_rehome_gptaq_foem_dxxt_4312.py::test_quantize_aligns_dxxt_with_rehomed_hessian[gptaq,foem] fake safe_move_to asserted every tensor was the _ForeignDeviceTensor stand-in, but quantize() also moves the final quantized output ignore only that unrelated move; the H/dXXT/module_copy companion moves are still asserted exactly
tests/test_weight_only_looper.py::test_weight_only_looper_respects_dense_and_moe_vram_strategy_devices expert families landed on cuda:0 the fake wrapper now exposes the model definition's ModulePlan; without it experts are indistinguishable from dense projections

Neighbour evidence

Same 6 touched files on both trees, CPU, CUDA_VISIBLE_DEVICES="":

  • base e3ec24309: 13 failed, 315 passed, 432 skipped
  • branch: 1 failed, 327 passed, 432 skipped

The single remaining failure is the pre-existing environment-only
test_packable.py::TestPackable::test_post_init_2_torch, which requires a
visible CUDA device. All 12 target failures are gone.

ruff check is clean on all 6 touched files.

Still red / out of scope here (for #4769)

  • test_bits_new.py::Test::test_quant_and_eora_{0..3} — KeyError fixed by test: fix two stale #4769 section A items (bits_new NATIVE_MODEL_ID, jamba mamba_ssm gate) #5059; on this host it now fails only because the offline allenai/c4 builder cache does not hold the requested data_files slice (and with network, the venv's flash_attn_2_cuda has an undefined symbol). Environment-only.
  • test_jamba_support.py::test_tiny_jamba_gptq_quantization_smoke — mamba_ssm gate added by test: fix two stale #4769 section A items (bits_new NATIVE_MODEL_ID, jamba mamba_ssm gate) #5059; skipped here because the package is absent.
  • test_fallback_hessian_release::test_shared_input_fallback_releases_adopted_source_before_clone — known pre-existing on this host.
  • test_quant_batch::test_diff_batch — fails here at import (flash_attn_2_cuda undefined symbol), not at the greedy-id assertion; environment-only here.
  • test_model::test_hide_unsupported_quantization_config_for_eval_temporarily_clears_gguf_bits — transformers 5.20.2's AutoQuantizationConfig.from_dict now parses GGUF, so the helper correctly does not hide it; version-specific, left alone.
  • test_qwen_moe_converter::test_qwen3_omni_uses_defuser_for_fused_experts and test_locateanything_support::...uses_remote_processor — pass here (transformers 5.20.2), not reproducible.
  • ROCm-only, RTX-4090/5090-only, defuser-version-only, missing-package, GPU-contention OOM and the remaining section-B hardware-specific items are untouched.

…4769)

Fix the remaining Round-17 failures that reproduce on an sm_80 CUDA host and
are test-side stale expectations, without weakening any assertion:

- test_ret_idx_group_order: use a 4096-wide shape that both fused kernels
  accept; 4100 is rejected by CPU int4pack on purpose.
- test_gguf_all_formats: allow one bf16 dtype ULP (2**-7) for the fused
  reference; fp16/fp32 keep the 2e-3 bound.
- test_rco_discovery: stage GPTQ_V2 arms, matching the real rco_allocate
  pipeline, so loading does not normalize v1 words and markers.
- test_packable: CPU fused keeps scales in the checkpoint layout (#4178).
- test_rehome_gptaq_foem_dxxt_4312: ignore the unrelated final quantized
  output move; still assert the H/dXXT/module_copy companion moves.
- test_weight_only_looper: give the fake wrapper the model definition's
  ModulePlan so expert families are distinguishable from dense projections.
@Qubitium
Qubitium force-pushed the root/triage-residual-4769 branch from 1f0ae2c to 94d0a9e Compare November 18, 2026 01:16
@Qubitium
Qubitium merged commit 468c201 into main Nov 18, 2026
8 checks passed
@Qubitium
Qubitium deleted the root/triage-residual-4769 branch November 18, 2026 01: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.

1 participant