Skip to content

[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

Closed

Description

@Qubitium

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.

  1. 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.
  2. A per-module dynamic override is accepted and serialized, but never applied.
    • GPTQConfig(dynamic={r"+:.*down_proj.*": {"exclude_attention_sinks": True}}) builds fine.
    • 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.
  3. 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).
  4. 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.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. Qubitium commented on Nov 16, 2026

    @Qubitium
    CollaboratorAuthor

    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.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions