DeepSpeed
82ecffef - test: add regression test for softmax_context_int8 alpha scale

Commit
60 days ago
test: add regression test for softmax_context_int8 alpha scale Add test_softmax_context_int8 comparing the legacy int8 attention binding against an independently scaled reference softmax(q@k^T * norm_factor^2) @ v for head_dim 64/128/256 and seq_len 16/128, and clarify that norm_factor is the caller-provided pre-square scale so the comment stays accurate under non-default configurations (use_mup, inverse-layer scaling). Verified on RTX 4080 with torch 2.12.1+cu130: the test fails on the pre-fix binding and passes after the alpha squaring fix. Signed-off-by: Guokai Ma <guokai.ma@intel.com>
Author
Committer
Parents
Loading