Repository navigation
Conversation
|
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. |
Contributor
|
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: true
|
This was referenced Oct 28, 2026
Contributor
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3077 +/- ##
==========================================
+ Coverage 73.57% 73.59% +0.01%
==========================================
Files 661 661
Lines 75682 75782 +100
==========================================
+ Hits 55685 55773 +88
- Misses 19997 20009 +12
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:
|
Signed-off-by: Kai Xu <[email protected]>
kaix-nv
force-pushed
the
kaix/tensor-quantizer-rounding
branch
from
November 17, 2026 01:08
d7b0a32 to
29c3c17
Compare
This branch has not been deployed
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.
Merge order: 9 draft PRs
#3077 → #2519 → #3078 → #2657 → #2805 → #2788 → #2878 → #2503 → #2507
#2497 is already on main. Each PR is based on the preceding branch; #3077 is based on main.
What does this PR do?
Type of change: New feature.
Add
rounding="nearest" | "stochastic"to TensorQuantizer. Nearest remains the default; integer and FP8 E4M3 fake QDQ and dynamic block16 NVFP4 support elementwise stochastic rounding. NVFP4 block scales retain nearest rounding. Quantizer metadata saves the policy; training checkpoints must also save RNG state.Calibration and weight folding force nearest rounding. Unsupported real/custom backends and inference export reject stochastic policies. The default integer path preserves its prior arithmetic, including tie cases. The fused-expert fast path on current main only handles nearest rounding, so stochastic quantizers use the per-expert implementation. The biased rounding mode is removed and is not part of this release.
This core TensorQuantizer change is directly based on main and requires review from the TensorQuantizer owners.
Usage
Testing
Restacked on main
580ffff1cddb9b20a38b7434e6290654ebf96a8fon 2026-10-27; this PR head isd7b0a3240464b15658ad69fe8834c877c835fe34.9f913d907c298efeb99daf84a7c32246cf38208a: 226 tests passed in 108.95 seconds, covering TensorQuantizer defaults/calibration/folding/restore, state policies, independent recurrence and gradient references, replay cache lifecycle, CUDA graphs, packed two-precision gradients, GDN operand QDQ and guarded inverse behavior. These are stack-tip results; intermediate heads were not all rerun separately.Before your PR is "Ready for review"
Review history
This draft continues #2829. During the restack, GitHub marked that PR merged when its rewritten head became an ancestor of its former base branch, before its base was retargeted. No main-branch merge occurred; main remains at
580ffff1cddb9b20a38b7434e6290654ebf96a8f. The prior PR retains the earlier discussion.