Last active
July 22, 2021 23:39
Revisions
-
sshleifer revised this gist
Jul 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ launch_optim_experiment () { --checkpoints-dir . \ --constraint volta32gb \ --partition learnfair \ --resume-failed --no-save --mu 7200 "$@" } ``` #### Commands for different optimizers -
sshleifer revised this gist
Jul 22, 2021 . No changes.There are no files selected for viewing
-
sshleifer revised this gist
Jul 22, 2021 . No changes.There are no files selected for viewing
-
sshleifer revised this gist
Jul 22, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ ### Setup - `git clone git@github.com:fairinternal/fairseq-py.git && cd fairseq-py && git checkout stable-emb` - if you don't have the fairseq conda env, follow [these instructions](https://fb.workplace.com/groups/fairseq/permalink/262715387865587/) - `pip install numpy==1.20`. (optional, but some people needed this) - `pip install fairscale` (should be > 0.3.7, as of writing) - on FAIR cluster: `pip install -i https://test.pypi.org/simple/ bitsandbytes-cuda110 -U)` - OR on AWS: `pip install -i https://test.pypi.org/simple/ bitsandbytes-cuda111 -U)` ### Common Logic for all commands Edit this as needed @@ -28,7 +28,7 @@ launch_optim_experiment () { export NCCL_DEBUG="WARN" launch_optim_experiment -p opt_exp --opt adam16 launch_optim_experiment -p opt_exp --opt adam launch_optim_experiment -p opt_exp --opt adam8bit --stable launch_optim_experiment -p opt_exp.no_mo --opt adafactor launch_optim_experiment -p opt_exp.yes_mo --opt adafactor --adafactor-use-momentum ``` -
sshleifer revised this gist
Jul 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ launch_optim_experiment () { --ddp no_c10d \ --dl 12 \ --embed-dim 2048 \ --bs 4 --li 50 \ --epg 0 \ --checkpoints-dir . \ --constraint volta32gb \ -
sshleifer revised this gist
Jul 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ launch_optim_experiment () { --ddp no_c10d \ --dl 12 \ --embed-dim 2048 \ --bs 8 --li 50 \ --epg 0 \ --checkpoints-dir . \ --constraint volta32gb \ -
sshleifer revised this gist
Jul 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ launch_optim_experiment () { --checkpoints-dir . \ --constraint volta32gb \ --partition learnfair \ --resume-failed --no-save "$@" } ``` #### Commands for different optimizers -
sshleifer created this gist
Jul 12, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ ### Setup - `git clone git@github.com:fairinternal/fairseq-py.git && cd fairseq-py && git checkout gshard` - if you don't have the fairseq conda env, follow [these instructions](https://fb.workplace.com/groups/fairseq/permalink/262715387865587/) - `pip install numpy==1.20`. (optional, but some people needed this) - `pip install fairscale` (should be > 0.3.7, as of writing) - install `bitsandbytes` following [this](https://gist.github.com/TimDettmers/c4ffe346f095ee4481aa3d4b4ad2ffe0) ### Common Logic for all commands Edit this as needed ```bash launch_optim_experiment () { ./fb_sweep/benchmark_lm.py \ -g 8 -t 1 -n 1 \ --ddp no_c10d \ --dl 12 \ --embed-dim 2048 \ --bs 8 --li 50 --mu 10 \ --epg 0 \ --checkpoints-dir . \ --constraint volta32gb \ --partition learnfair \ --resume-failed "$@" --no-save } ``` #### Commands for different optimizers ```bash export NCCL_DEBUG="WARN" launch_optim_experiment -p opt_exp --opt adam16 launch_optim_experiment -p opt_exp --opt adam launch_optim_experiment -p opt_exp --opt adam8bit launch_optim_experiment -p opt_exp.no_mo --opt adafactor launch_optim_experiment -p opt_exp.yes_mo --opt adafactor --adafactor-use-momentum ``` - Note, for some hparams, you must manually edit `fb_sweep/benchmark_lm.py`.