feat: add per-head fp8 kv attention calibration#2044
Open
zeel2104 wants to merge 3 commits into
Open
Conversation
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Commenter does not have sufficient privileges for PR 2044 in repo intel/auto-round |
zeel2104
force-pushed
the
feat/fp8-per-head-kv-attn
branch
from
July 10, 2026 17:21
04e19a6 to
43cd2cb
Compare
Signed-off-by: Zeel <desaizeel2128@gmail.com>
zeel2104
force-pushed
the
feat/fp8-per-head-kv-attn
branch
from
July 10, 2026 17:21
43cd2cb to
d2d95fb
Compare
Contributor
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds per-head FP8 KV/attention calibration support on top of the existing per-tensor static FP8 paths.
Main changes:
static_kv_granularityandstatic_attention_granularityoptions with"tensor"as the default and"head"as the new per-head mode.k_scale,v_scale, andq_scalefor attention tensors shaped as[batch, heads, seq, head_dim].attn_headstrategy for per-head KV/attention scales.safe_openhandles before reusing the output path.Type of Change
New feature
Related Issues
Relates to #2026
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.Tested locally:
python -m pytest test/test_cpu/test_experimental_fp8_granularity.py -qpython -m pytest test/test_cpu/export/test_llmc_format.py -qpython -m pytest test/test_cpu/export/test_export.py -k "per_head or static_afp8_export or static_fp8_attn" -qpython -m pytest test/test_cpu/quantization/test_mxfp_nvfp.py -k "fp8_kv_attn" -qNote:
test/test_cpu/integrations/test_inc_integration.pywas not run becauseneural_compressoris not installed locally.