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
You can look at the [documentation](https://huggingface.co/docs/optimum/habana/usage_guides/deepspeed) for more information about how to use DeepSpeed in Optimum Habana.
[The documentation](https://huggingface.co/docs/optimum/habana/usage_guides/deepspeed) provides more information about how to use DeepSpeed within Optimum Habana.
Copy file name to clipboardexpand all lines: examples/text-classification/README.md
+12-6
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,8 @@ python run_glue.py \
60
60
--use_lazy_mode \
61
61
--use_hpu_graphs_for_inference \
62
62
--throughput_warmup_steps 3 \
63
-
--bf16
63
+
--bf16 \
64
+
--sdp_on_bf16
64
65
```
65
66
66
67
> If your model classification head dimensions do not fit the number of labels in the dataset, you can specify `--ignore_mismatched_sizes` to adapt it.
@@ -88,7 +89,8 @@ python ../gaudi_spawn.py \
88
89
--use_lazy_mode \
89
90
--use_hpu_graphs_for_inference \
90
91
--throughput_warmup_steps 3 \
91
-
--bf16
92
+
--bf16 \
93
+
--sdp_on_bf16
92
94
```
93
95
94
96
> If your model classification head dimensions do not fit the number of labels in the dataset, you can specify `--ignore_mismatched_sizes` to adapt it.
@@ -116,7 +118,8 @@ python ../gaudi_spawn.py \
116
118
--use_lazy_mode \
117
119
--use_hpu_graphs_for_inference \
118
120
--throughput_warmup_steps 3 \
119
-
--deepspeed path_to_my_deepspeed_config
121
+
--deepspeed path_to_my_deepspeed_config \
122
+
--sdp_on_bf16
120
123
```
121
124
122
125
You can look at the [documentation](https://huggingface.co/docs/optimum/habana/usage_guides/deepspeed) for more information about how to use DeepSpeed in Optimum Habana.
You can look at the [documentation](https://huggingface.co/docs/optimum/habana/usage_guides/deepspeed) for more information about how to use DeepSpeed in Optimum Habana.
0 commit comments