Skip to content

Conversation

@MagellaX
Copy link
Contributor

@MagellaX MagellaX commented Feb 12, 2026

What

  • add FSDP pre/post all-gather hooks to _AffineFakeQuantizedTensor
  • quantize local shards before all-gather and dequantize gathered weights after all-gather
  • preserve quantization metadata on the tensor subclass for deterministic behavior

Tests

  • add two QAT tests covering low-bit all-gather roundtrip and per-tensor block size behavior
  • python -m pytest test/quantization/test_qat.py -k "affine_fake_quantized_tensor_fsdp_all_gather" -q

closes #1224

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 12, 2026

🔗 Helpful Links

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

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

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 Feb 12, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QAT] Low-bit FSDP all-gather for QAT

1 participant