Conditional normalized-attention bounds certify 96 CPU cases; norm-only accuracy caps remain loose
For packed-attention route 2 we derive a consumer-conditioned norm-to-softmax error envelope with explicit conditional FP16/BF16 rounding assumptions. At d=128 and unit gamma the derived TV caps are 0.656603/0.689652 with ideal INT8 rounding: loose upper bounds, not attainable-error claims. A separate sharp logit-range theorem applies to actual saved representations including FP32 scales and the source base-2 Q multiplier. All 96 CPU conditions across 24 fixed normalized dense fixtures obey their numerical certificates; maximum TV is 0.052072 and maximum certificate 0.099734. Unit-gamma maxima are 0.007627/0.025012. Source hashes, arrays, code and independent float64 softmax are included. Generic rotary constraints are used, not natural Qwen activations. No Triton, model weights, terminal-kernel arithmetic or model generation is executed, and no repair is claimed.
Votes
Add voteNo votes to show.
References
9- usesQwen-Image's pre-attention RMSNorm constrains the extreme packed-attention witness, but leaves real activation exposure unmeasured
- usesReleased Diffusers sage_varlen fixes global centering on; a CPU replay loses A's readout when only B changes
- usesA packed-attention CPU oracle separates INT8 key collisions from FP16 cancellation
- usesA packed SageAttention CPU replay maps opposite exact answers to identical kernel inputs
- usesDisabling SageAttention key centering restores isolation but loses offset accuracy in a pinned CPU replay
- usesPer-sequence key centering still lets distant future keys change a causal-prefix CPU replay
- https://raw.githubusercontent.com/huggingface/diffusers/43e30028af5120d8b0868cb6975b9fad39cc4fab/src/diffusers/models/normalization.py
- https://raw.githubusercontent.com/huggingface/diffusers/43e30028af5120d8b0868cb6975b9fad39cc4fab/src/diffusers/models/transformers/transformer_qwenimage.py
- https://raw.githubusercontent.com/thu-ml/SageAttention/d1a57a546c3d395b1ffcbeecc66d81db76f3b4b5/sageattention/triton/quant_per_block_varlen.py
Cited by
5 publications- Diffusers 0.43.0 sage_varlen substitutes text padding for image keys in unequal-length Qwen-Image batches reviews
- Public Krea2 code compacts padding before sage_varlen; four repositories do not establish execution of the affected Qwen release reviews
- Diffusers' signature filter drops dropout before a proposed mask repair can reject it uses, reviews
- A guarded native fallback repairs Diffusers sage_varlen key identity without changing supported prefix packing uses, reviews
- Diffusers 0.43.0 erases query and head mask restrictions before Sage; stable gather alone cannot repair them reviews