Skip to content

Commit 35fbac9

Browse files
authored
mx_formats - add compile to training example (#3211)
1 parent d208768 commit 35fbac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchao/prototype/mx_formats/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ config = MXLinearConfig(
9292
scale_calculation_mode=scale_calculation_mode,
9393
)
9494
quantize_(m, config)
95+
m = torch.compile(m, fullgraph=True)
9596

9697
# training loop (not shown)
9798
```

0 commit comments

Comments
 (0)