Commit ·
11fef9b
1
Parent(s): 620f480
Formatting
Browse files
README.md
CHANGED
|
@@ -13,50 +13,62 @@ Edit this `README.md` markdown file to author your organization card 🔥
|
|
| 13 |
Clone Whisper small or medium modelproject for run scripts
|
| 14 |
----------------------------------------------------------------
|
| 15 |
|
|
|
|
| 16 |
git clone https://huggingface.co/bjelkenhed/whisper-small-sv
|
| 17 |
git clone https://huggingface.co/bjelkenhed/whisper-medium-sv
|
|
|
|
| 18 |
|
| 19 |
----------------------------------------------------------------
|
| 20 |
Install requirements
|
| 21 |
----------------------------------------------------------------
|
| 22 |
|
|
|
|
| 23 |
sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4
|
| 24 |
sudo apt update
|
| 25 |
sudo apt install -y ffmpeg
|
| 26 |
sudo apt-get install git-lfs
|
|
|
|
| 27 |
|
| 28 |
----------------------------------------------------------------
|
| 29 |
Install python libraries
|
| 30 |
----------------------------------------------------------------
|
| 31 |
|
| 32 |
-
env_name=babelbox
|
| 33 |
-
|
| 34 |
-
python3 -m venv $env_name
|
| 35 |
-
|
| 36 |
-
source ~/$env_name/bin/activate
|
| 37 |
|
|
|
|
| 38 |
git clone https://github.com/huggingface/community-events.git
|
| 39 |
|
| 40 |
pip install -r community-events/whisper-fine-tuning-event/requirements.txt
|
| 41 |
|
| 42 |
python -c "import torch; print(torch.cuda.is_available())"
|
| 43 |
-
|
| 44 |
|
| 45 |
----------------------------------------------------------------
|
| 46 |
Log in to Huggingface
|
| 47 |
----------------------------------------------------------------
|
| 48 |
|
|
|
|
| 49 |
git config --global credential.helper store
|
| 50 |
huggingface-cli login
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
----------------------------------------------------------------
|
| 53 |
Start training
|
| 54 |
----------------------------------------------------------------
|
| 55 |
|
|
|
|
| 56 |
tmux new -s mysession
|
|
|
|
| 57 |
|
|
|
|
| 58 |
bach run.sh
|
|
|
|
|
|
|
| 59 |
|
| 60 |
# To resume session
|
| 61 |
|
|
|
|
| 62 |
tmux a -t mysession
|
|
|
|
|
|
| 13 |
Clone Whisper small or medium modelproject for run scripts
|
| 14 |
----------------------------------------------------------------
|
| 15 |
|
| 16 |
+
```
|
| 17 |
git clone https://huggingface.co/bjelkenhed/whisper-small-sv
|
| 18 |
git clone https://huggingface.co/bjelkenhed/whisper-medium-sv
|
| 19 |
+
```
|
| 20 |
|
| 21 |
----------------------------------------------------------------
|
| 22 |
Install requirements
|
| 23 |
----------------------------------------------------------------
|
| 24 |
|
| 25 |
+
```
|
| 26 |
sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4
|
| 27 |
sudo apt update
|
| 28 |
sudo apt install -y ffmpeg
|
| 29 |
sudo apt-get install git-lfs
|
| 30 |
+
```
|
| 31 |
|
| 32 |
----------------------------------------------------------------
|
| 33 |
Install python libraries
|
| 34 |
----------------------------------------------------------------
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
```
|
| 38 |
git clone https://github.com/huggingface/community-events.git
|
| 39 |
|
| 40 |
pip install -r community-events/whisper-fine-tuning-event/requirements.txt
|
| 41 |
|
| 42 |
python -c "import torch; print(torch.cuda.is_available())"
|
| 43 |
+
```
|
| 44 |
|
| 45 |
----------------------------------------------------------------
|
| 46 |
Log in to Huggingface
|
| 47 |
----------------------------------------------------------------
|
| 48 |
|
| 49 |
+
```
|
| 50 |
git config --global credential.helper store
|
| 51 |
huggingface-cli login
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
#### Provide Huggingface access token for your account
|
| 55 |
+
|
| 56 |
|
| 57 |
----------------------------------------------------------------
|
| 58 |
Start training
|
| 59 |
----------------------------------------------------------------
|
| 60 |
|
| 61 |
+
```
|
| 62 |
tmux new -s mysession
|
| 63 |
+
```
|
| 64 |
|
| 65 |
+
```
|
| 66 |
bach run.sh
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
|
| 70 |
# To resume session
|
| 71 |
|
| 72 |
+
```
|
| 73 |
tmux a -t mysession
|
| 74 |
+
```
|