Skip to content

docs(Float8DynamicActivationFloat8WeightConfig): mark as inference-only (#4376)#4451

Open
Anai-Guo wants to merge 1 commit into
pytorch:mainfrom
Anai-Guo:docs-float8-dyn-act-inference-only-4376
Open

docs(Float8DynamicActivationFloat8WeightConfig): mark as inference-only (#4376)#4451
Anai-Guo wants to merge 1 commit into
pytorch:mainfrom
Anai-Guo:docs-float8-dyn-act-inference-only-4376

Conversation

@Anai-Guo

Copy link
Copy Markdown
Contributor

Summary

Closes #4376.

Adds an explicit Note: inference-only block to Float8DynamicActivationFloat8WeightConfig's docstring so users picking up this config for LoRA-on-quantized-base (or any other training workflow) discover up-front that the backward pass will raise RuntimeError: derivative for aten::_scaled_mm is not implemented, and don't have to debug it from a crash.

This is option (1) from the issue — the lowest-risk path. The training-aware variant in option (2) is a separate, larger change.

What changes

  • torchao/quantization/quant_api.py — one docstring-only block added to Float8DynamicActivationFloat8WeightConfig. Mirrors the existing Note: block style on Float8WeightOnlyConfig a few lines above.

The note:

No code changes — purely a docstring addition that flows through to the generated API docs.

🤖 Generated with Claude Code

@pytorch-bot

pytorch-bot Bot commented May 29, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 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 May 29, 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.

Float8DynamicActivationFloat8WeightConfig is inference-only — backward fails on torch._scaled_mm; document or add training-aware variant

1 participant