Commit 7037eb2
authored
Add TF32 flags + general improvements in DDP backend (#2682)
* add TF32 flags
* reduce a bit the DDP backend
* remove global variable
* add allow / id in wandb
* add checks
* improve barrier depending on the context
* add check in if_main_process()
* destroy properly ddp group
* 2f instead of 4f
* add ddp_destroy_process_group
* comment
* remove ddp destroy
* add ddp check properly
* remove unused parameter and fix issues with DDP and pretrainer
* add ctxt manager to make sure that global variable is always decreased even with an exception being raised
* fix issue with pretrainer and DDP
* follow up latter issue - now DDP works with pretrained models.
* add logger adapter in SpeechBrain
* add example of having logger adapter for fetch.py
* remove setting logger lvl
* add `standalone`
* JESUS! THE PRE-COMMITs ARE SPAMMING MY MAILS F.
* add example
* :( he deserved it !
* replace everywhere `get_logger` to use SB one + fix circular imports + fix missing logging lib when needed
* rename MainProcessGuard to MainProcessContext
* warning_once
* docstring
* fix logger config
* docstring
* fix whisper normalizer fn
* progressbar on ddp1 parent eb13b9e commit 7037eb2
225 files changed
Lines changed: 757 additions & 596 deletions
File tree
- docs
- recipes
- AISHELL-1
- ASR
- CTC
- seq2seq
- transformer
- AMI
- Diarization
- Aishell1Mix/separation
- AudioMNIST
- diffusion
- BinauralWSJ0Mix/separation
- CVSS
- S2ST
- CommonLanguage
- lang_id
- CommonVoice
- ASR
- CTC
- seq2seq
- transducer
- transformer
- LM
- self-supervised-learning/wav2vec2
- DNS/enhancement
- DVoice
- ASR/CTC
- ESC50
- Fisher-Callhome-Spanish
- ST/transformer
- Google-speech-commands
- IEMOCAP
- emotion_recognition
- IWSLT22_lowresource/AST/transformer
- KsponSpeech
- ASR/transformer
- LM
- LJSpeech
- TTS
- fastspeech2
- tacotron2
- vocoder
- diffwave
- hifigan_discrete
- quantization
- LibriMix/separation
- LibriParty/VAD
- LibriSpeech
- ASR
- CTC
- hparams
- seq2seq
- transducer
- transformer
- hparams
- G2P
- LM
- self-supervised-learning
- BEST-RQ
- hparams
- wav2vec2
- LibriTTS
- TTS/mstacotron2
- vocoder/hifigan_discrete
- MEDIA
- ASR/CTC
- SLU/CTC
- MultiWOZ/response_generation
- gpt
- llama2
- REAL-M/sisnr-estimation
- RescueSpeech
- ASR/noise-robust
- SLURP
- NLU
- direct
- Switchboard
- ASR
- CTC
- seq2seq
- transformer
- LM
- TIMIT
- ASR
- CTC
- seq2seq
- transducer
- Tedlium2
- ASR/transformer
- UrbanSound8k
- Voicebank
- MTL/ASR_enhance
- dereverb
- MetricGAN-U
- spectral_mask
- enhance/MetricGAN-U
- VoxCeleb
- SpeakerRec
- VoxLingua107/lang_id
- VoxPopuli
- ASR/transducer
- WHAMandWHAMR
- enhancement
- separation
- WSJ0Mix/separation
- ZaionEmotionDataset/emotion_diarization
- datasets
- fluent-speech-commands
- direct
- timers-and-such
- LM
- decoupled
- direct
- multistage
- speechbrain
- alignment
- augment
- dataio
- decoders
- inference
- k2_integration
- lm
- lobes/models
- discrete
- huggingface_transformers
- transformer
- nnet
- complex_networks
- loss
- quaternion_networks
- transducer
- processing
- tokenizers
- utils
- templates
- enhancement
- speaker_id
- speech_recognition
- ASR
- LM
- tests
- templates/fetching_ddp_dynbatch_finetuning
- unittests
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments