Skip to content

Conversation

@namgyu-youn
Copy link
Contributor

@namgyu-youn namgyu-youn commented Nov 30, 2025

Summary:
Introduce stochastic rounding primitive for low-precision training.

Unlike deterministic rounding, stochastic rounding is unbiased (E[SR(x)] = x), which helps prevent error accumulation in gradient updates and low-bit training.

Test Plan:

pytest -sv test/quantization/test_quant_primitives.py
pytest -sv test/prototype/test_quantized_training.py

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 30, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3404

Note: Links to docs will display an error until the docs builds have been completed.

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 30, 2025
@namgyu-youn
Copy link
Contributor Author

@pytorchbot label "topic: new feature"

@pytorch-bot pytorch-bot bot added the topic: new feature Use this tag if this PR adds a new feature label Nov 30, 2025
@namgyu-youn namgyu-youn changed the title Introduce Stochastic Rounding for low-bit training Introduce Stochastic Rounding Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: new feature Use this tag if this PR adds a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant