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:"
18
-
echo" * RECIPE: rowwise|tensorwise. defaults to tensorwise."
17
+
echo" * FLOAT8_RECIPE: "rowwise" or "tensorwise". if set, use float8 training with the specified recipe. otherwise, use bf16 mixed precision training."
19
18
echo" * BATCH_SIZE: defaults to 1."
20
19
echo" * STEPS: defaults to 100."
21
20
exit 1
22
21
fi
23
22
24
23
# validate recipe name
25
-
if [ "$RECIPE"!="rowwise" ] && [ "$RECIPE"!="tensorwise" ];then
26
-
echo"Error: RECIPE must be 'rowwise' or 'tensorwise'"
27
-
exit 1
24
+
if [ -n"${FLOAT8_RECIPE}" ];then
25
+
if [ "$FLOAT8_RECIPE"!="rowwise" ] && [ "$FLOAT8_RECIPE"!="tensorwise" ];then
26
+
echo"Error: RECIPE must be 'rowwise' or 'tensorwise'"
0 commit comments