Skip to content

Commit 221a160

Browse files
authored
Merge pull request #3 from ruidazeng/patch-3
Patch 3
2 parents ddae26e + 105f4d4 commit 221a160

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/bettertransformer/tutorials/convert.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Sometimes you can directly load your model on your GPU devices using `accelerate
4545

4646
## Step 2: Set your model on your preferred device
4747

48-
If you did not used `device_map="auto"` to load your model (or if your model does not support `device_map="auto"`), you can manually set your model to a GPU:
48+
If you did not use `device_map="auto"` to load your model (or if your model does not support `device_map="auto"`), you can manually set your model to a GPU:
4949
```python
5050
>>> model = model.to(0) # or model.to("cuda:0")
5151
```
@@ -92,7 +92,7 @@ You can also use `transformers.pipeline` as usual and pass the converted model d
9292
>>> ...
9393
```
9494

95-
Please refer to the [official documentation of `pipeline`](https://huggingface.co/docs/transformers/main_classes/pipelines) for further usage. If you face into any issue, do not hesitate to open an isse on GitHub!
95+
Please refer to the [official documentation of `pipeline`](https://huggingface.co/docs/transformers/main_classes/pipelines) for further usage. If you run into any issue, do not hesitate to open an issue on GitHub!
9696

9797
## Training compatibility
9898

@@ -113,4 +113,4 @@ model = BetterTransformer.transform(model)
113113
model = BetterTransformer.reverse(model)
114114
model.save_pretrained("fine_tuned_model")
115115
model.push_to_hub("fine_tuned_model")
116-
```
116+
```

0 commit comments

Comments
 (0)