You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Optional parameters configurable via environment variables:"
22
22
echo" * FLOAT8_RECIPE_WITH_BEST_SETTINGS: "rowwise" or "tensorwise". if set, use float8 training in torchtitan with the specified recipe, including the additional settings which are optimal for that recipe. otherwise, use bf16 mixed precision training."
23
+
echo" * MX_RECIPE: any valid MX recipe name. Note: only one of FLOAT8_RECIPE_WITH_BEST_SETTINGS and MX_RECIPE can be set."
23
24
echo" * LOCAL_BATCH_SIZE: defaults to 1."
24
25
echo" * STEPS: defaults to 100."
25
26
echo" * EXTRA_ARGS: additional arguments to pass to the torchtitan training script."
26
27
exit 1
27
28
fi
28
29
29
30
# validate recipe name
30
-
if [ -n"${FLOAT8_RECIPE_WITH_BEST_SETTINGS}" ];then
31
+
if [ -n"${FLOAT8_RECIPE_WITH_BEST_SETTINGS}" ] && [ -n"${MX_RECIPE}" ];then
32
+
echo"Error: both FLOAT8_RECIPE_WITH_BEST_SETTINGS and MX_RECIPE are set, please only set one of them.">&2
Copy file name to clipboardExpand all lines: torchao/float8/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,10 +53,10 @@ To reproduce these benchmarks, you can follow these steps:
53
53
1. On a machine with compatible GPUs, clone torchtitan and follow local installation [steps](https://github.com/pytorch/torchtitan?tab=readme-ov-file#installation),
54
54
including [downloading a tokenizer](https://github.com/pytorch/torchtitan?tab=readme-ov-file#downloading-a-tokenizer).
55
55
2. Install torchao following these [steps](https://github.com/pytorch/ao/tree/main?tab=readme-ov-file#installation).
56
-
3. From the `torchao/benchmarks/float8/training/` directory, you can run the following commands to reproduce the benchmarks above:
0 commit comments