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] Protocol -: selectors use search semantics but compile to start-anchored dynamic rules, so excluded modules get quantized #4197
quantization/protocol.py:1256-1259 (_pattern_matches) evaluates selectors with pcre...search.
_compile_negative_match_dynamic (protocol.py:1209-1213) emits -:{pattern} into dynamic, which is evaluated with start-anchored match.
So a protocol rule ["*", "-:down_proj"] excludes down_proj, but the compiled QuantizeConfig quantizes it. The repo tests only use patterns starting with .*, which hides this.
Compile with the same semantics, e.g. emit -:.*(?:{pattern}), and add tests with patterns that don't start with .*.
Found during an AI-assisted review (Claude Code) of 9dad249; repros were run on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix: compile protocol -: selectors with search semantics (#4197) (#4288)
test(protocol): assert the exclusion contract, not the emitted dynami…