torchao.float8#
Created On: Jan 29, 2026 | Last Updated On: Jan 29, 2026
Main float8 training APIs#
Swaps torch.nn.Linear in module with Float8Linear. |
Other float8 training types#
Configuration for converting a torch.nn.Linear module to float8 for training. |
|
Pre-made recipes for common float8 training configurations. |
|
Configuration for casting a single tensor to float8. |
|
Defines the type of scaling to use for casting to float8. |
|
Defines the granularity of scaling strategies for casting to float8. |
|
Calculate scale dynamically for all float8 parameters. |