Repository navigation
Conversation
Signed-off-by: realAsma <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2406 +/- ##
==========================================
- Coverage 71.15% 71.14% -0.02%
==========================================
Files 543 543
Lines 64346 64428 +82
==========================================
+ Hits 45785 45836 +51
- Misses 18561 18592 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Closing: author is no longer with NVIDIA, so this will not be worked on. Branch deleted; it can be restored from the last commit SHA if needed. |
What does this PR do?
Type of change: new feature
Adds a configurable bounded FP8 scale search for static NVFP4 MSE and local-Hessian calibration.
fp8_scale_sweep=Truekeeps the existing exhaustive search over all 126 finite positive E4M3 values, while a two-integer range such as[-8, 8]searches an inclusive set of E4M3 code offsets around each block's max-derived scale.Falsecontinues to use the multiplier search.The bounded MSE and Hessian searches use the fused Triton paths, preserve the reference fallback, and account for both the standard 448 normalization and the 256 normalization used by four-over-six mode. Registered custom backends retain their existing exhaustive-
Truebehavior.Usage
Testing
pre-commit run --files <11 changed files>— all hooks passed./home/akuriparambi/.codex/tools/pytest_pwd tests/unit/torch/quantization/test_config_validation.py tests/unit/torch/quantization/test_local_hessian.py tests/unit/torch/quantization/test_lsq.py tests/unit/torch/quantization/test_mse_calibrator.py -q -x— 190 passed.CUDA_VISIBLE_DEVICES=5 /home/akuriparambi/.codex/tools/pytest_pwd tests/gpu/torch/quantization/test_nvfp4_fp8_sweep_kernel.py -q -x— 61 passed on NVIDIA RTX PRO 6000 Blackwell Max-Q.GPU coverage includes bounded and exhaustive MSE/Hessian paths, 448/256 normalization, reference–Triton parity, boundary codes, zeros, tie-breaking, dtypes, save/restore, and end-to-end calibration.
Before your PR is "Ready for review"
Make sure you read and follow Contributor guidelines and your commits are signed (
git commit -s -S).Make sure you read and follow the Security Best Practices (e.g. avoiding hardcoded
trust_remote_code=True,torch.load(..., weights_only=False),pickle, etc.).CONTRIBUTING.md: N/AAdditional Information
Design motivation: Search Your Block Floating Point Scales!