Skip to content

[TEST] Two test regressions on main: Machete state_dict AttributeError _qzeros_format (#4103), ROCm kernel-contract audit missing MLX MACaQ/NF12 kernels (#4097) #4130

Closed

Description

@Qubitium

Two repo tests fail on main, on both CUDA (/root/venv, CPU run) and ROCm (R9700). Each was introduced by a recent merge, and both are still present at a8c7675.

1. tests/test_packing_numeric_boundaries.py::test_machete_rejects_offset_overflow_before_repacking[cpu-MacheteLinear] fails since #4103 (0ff46b6)

AttributeError: 'MacheteLinear' object has no attribute '_qzeros_format'. Did you mean: 'qzero_format'?
  qlinear/__init__.py  _emitted_qzeros_format -> int(self._qzeros_format)

state_dict() now reaches _emitted_qzeros_format on modules built through __new__ without __init__, and it has no fallback. The test passes on a git archive of 0ff46b6~1. Fix: getattr(self, "_qzeros_format", 1), or have the fixture set the attribute.

2. tests/test_rocm_kernel_contracts.py::test_audit_covers_every_registered_kernel fails since #4097

MacaqMlxQuantLinear and NF12MlxQuantLinear are registered but missing from the audit inventory (tests/test_rocm_kernel_contracts.py:46-50). Both kernels are MPS/Darwin-only, so the only impact is the failing test.

Related, confirmed on ROCm: the #4121 item 1 TeleChat2 regression is generic. tests/test_telechat2_coverage.py::test_telechat2_awq_quantizes_attention_projections fails at HEAD on ROCm and on CPU, and passes on a git archive of 06c635c~1.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions