Skip to content

perf(scale): optimize FP8 scale conversion and support E5M3 - #112

Merged
jinzhen-lin merged 5 commits into
mainfrom
perf/scale-conversion
Oct 5, 2026
Merged

jinzhen-lin merged 5 commits into
mainfrom
perf/scale-conversion

Conversation

@jinzhen-lin

@jinzhen-lin jinzhen-lin commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator
  • Support E8M0 scales with FP16 by rebiasing to E5M0, adding a tensorwise secondary scale only when needed, and preserving the high end when the range cannot fit.
  • Use packed dequantization for E4M3/E5M2 scales before SM89 and cvt instructions on SM89 and newer.
  • Add unsigned E5M3 scales using existing dequantization paths.
  • Read software-dequantized group scales in place and avoid packed permutations before FP32 conversion.

jinzhen-lin and others added 5 commits October 4, 2026 18:19
Co-authored-by: Codex (GPT-6) <codex@openai.com>
Signed-off-by: jinzhen.ljz <jinzhen.ljz@antgroup.com>
…nches

Co-authored-by: Codex (GPT-6) <codex@openai.com>
Signed-off-by: jinzhen.ljz <jinzhen.ljz@antgroup.com>
Disable fast math in Humming kernels and apply packed BF16 exponent compensation before conversion to FP32.

Co-authored-by: Codex (GPT-6) <codex@openai.com>
Signed-off-by: jinzhen.ljz <jinzhen.ljz@antgroup.com>
Integrate PR #107 with scale conversion and restore FP32 scale order through register indices.

Co-authored-by: Codex (GPT-6) <codex@openai.com>
Signed-off-by: jinzhen.ljz <jinzhen.ljz@antgroup.com>
Signed-off-by: Jinzhen Lin <jinzhen.ljz@antgroup.com>
@jinzhen-lin
jinzhen-lin merged commit a2ac79d into main Oct 5, 2026
5 checks passed
@jinzhen-lin
jinzhen-lin deleted the perf/scale-conversion branch October 5, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant