You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] ParoQuant benchmark fused_opt_rotation flag is a no-op after env-var removal; results mislabeled #4541
fused_opt_rotation in gptqmodel/utils/paroquant_benchmark.py no longer does anything. Every benchmark run uses QuantizeConfig.opt_fused_rotation at its default (True), but the result rows still record the requested fused_opt_rotation value. A fused_opt_rotation=False A/B run measures the fused path and labels the result unfused.
Introduced by
27c6b7b — refactor(kernel): select kernels, numerics and threads through KernelConfig, not env vars (#4180) (#4364)
At 6c3421c1e, the benchmark set os.environ["GPTQMODEL_PAROQUANT_OPT_FUSED_ROTATION"] (paroquant_benchmark.py:599), and quantization/paroquant/optimization.py:884 read it. The refactor removed both. The value was never passed to the replacement config field, QuantizeConfig.opt_fused_rotation (config.py:6383, consumed in looper/paroquant_processor.py:310/576/767).
run_paroquant_benchmark(... fused_opt_rotation: bool ...) (paroquant_benchmark.py:588) calls make_paroquant_config(...) (≈line 607) without the flag.
make_paroquant_config (paroquant_benchmark.py:193-216) has no opt_fused_rotation parameter.
The result dict still reports "fused_opt_rotation": fused_opt_rotation (line 658). The public wrappers at lines 692/754/799 forward the flag but have the same problem.
Fix
Add opt_fused_rotation: bool = True to make_paroquant_config, pass it to QuantizeConfig(opt_fused_rotation=...), and pass opt_fused_rotation=fused_opt_rotation from the benchmark runner. Add a test asserting qcfg.opt_fused_rotation is False when the benchmark is called with fused_opt_rotation=False.
Severity: LOW (benchmark utility; produces mislabeled A/B results, does not affect production quantization).
Ran at HEAD 4b6592381 (CPU only, torch 2.15.0, Python 3.12) without changing production code.
inspect.signature(make_paroquant_config) has no opt_fused_rotation parameter: False.
Called _run_paroquant_case(..., fused_opt_rotation=False, ...) with load_nm_calibration stubbed and a spy wrapped around the real make_paroquant_config, stopping right after the config was built. Observed: qcfg.opt_fused_rotation = True, so the requested False never reaches the config.
Limitation: no full benchmark run, no quantization and no timing measurement. Only the propagation of the config was checked.
Activity
Qubitium commentedon Nov 17, 2026
Claimed by an AI agent. Will reproduce on CPU, fix, add a focused regression test, and open a PR.
fix(paroquant): wire the benchmark fused-rotation flag through config (…