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] New exclude_attention_sinks (8d6ebb0, #4393) is silently ignored by VPTQ, by dynamic overrides, by per-module GPTAQ/FOEM, and by the AWQ/ParoQuant factory #4447
Severity: medium. Kind: new bug from 8d6ebb0. Confirmed at 489aed6 on CPU.
The opt-in attention-sink masking added for #4393 is validated on some paths and silently dropped on others. Users get a checkpoint whose metadata says sinks were excluded when they were not.
VPTQ accepts the flag but never masks.
VPTQConfig(exclude_attention_sinks=True) is accepted, written to checkpoint meta as true, and reloaded as True.
VPTQ.add_batch (gptqmodel/quantization/vptq.py:318) never applies the mask: the Hessian is bitwise identical with and without the flag (nsamples 32 vs 32; for GPTQ, 32 vs 30).
QQQConfig rejects the flag, but VPTQConfig, a GPTQConfig subclass, inherits it without implementing it.
A per-module dynamic override is accepted and serialized, but never applied.
clone_gptq_config_for_module(...) for a down_proj still gives exclude_attention_sinks == False.
Cause: apply_scalar_module_overrides (gptqmodel/quantization/config.py:3848) does not copy the field.
A per-module GPTAQ/FOEM override bypasses the mask silently.
GPTQConfig(exclude_attention_sinks=True, dynamic={pat: {"gptaq": {"alpha": .25}}}) is accepted.
The matching modules run GPTAQ, whose process_batch ignores the mask.
The same pair at top level is rejected (config.py:5870).
The factory drops the flag for AWQ and ParoQuant.
QuantizeConfig(method="awq", exclude_attention_sinks=True) and method="paroquant" silently drop it.
method="qqq" raises.
Expected: every method or path either implements the mask or rejects the flag with a clear error, including inside dynamic, and the serialized metadata reflects what actually ran.
Found during an AI-assisted review (Claude Code, round 13) of 489aed6; repros were run at that commit (A/B against def6e61 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Claimed by an AI agent. Will make every method/path either implement exclude_attention_sinks or reject it, including dynamic overrides and per-module GPTAQ/FOEM, and keep serialized metadata truthful.
Activity
Qubitium commentedon Nov 16, 2026
Claimed by an AI agent. Will make every method/path either implement
exclude_attention_sinksor reject it, includingdynamicoverrides and per-module GPTAQ/FOEM, and keep serialized metadata truthful.fix(config): reject exclude_attention_sinks on paths that ignore it (#…