Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f435003e
Unverified
Commit
f435003e
authored
Sep 04, 2023
by
Sanchit Gandhi
Committed by
GitHub
Sep 04, 2023
Browse files
[MMS] Fix pip install in docs (#25949)
parent
604a6c51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
docs/source/en/model_doc/mms.md
docs/source/en/model_doc/mms.md
+5
-4
No files found.
docs/source/en/model_doc/mms.md
View file @
f435003e
...
@@ -174,7 +174,7 @@ documentation under [VITS](https://huggingface.co/docs/transformers/main/en/mode
...
@@ -174,7 +174,7 @@ documentation under [VITS](https://huggingface.co/docs/transformers/main/en/mode
To use the MMS model, first update to the latest version of the Transformers library:
To use the MMS model, first update to the latest version of the Transformers library:
```
```
bash
pip
install
--upgrade
transformers accelerate
pip
install
--upgrade
transformers accelerate
```
```
...
@@ -313,11 +313,12 @@ Different LID models are available based on the number of languages they can rec
...
@@ -313,11 +313,12 @@ Different LID models are available based on the number of languages they can rec
#### Inference
#### Inference
First, we install transformers and some other libraries
First, we install transformers and some other libraries
```
pip install torch accelerate torchaudio datasets
```
bash
pip
install
torch accelerate datasets[audio]
pip
install
--upgrade
transformers
pip
install
--upgrade
transformers
```
`
```
`
pip install torch datasets[audio]
Next, we load a couple of audio samples via `
datasets
`. Make sure that the audio data is sampled to 16000 kHz.
Next, we load a couple of audio samples via `
datasets
`. Make sure that the audio data is sampled to 16000 kHz.
```py
```py
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment