forked from nomic-ai/contrastors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOM-796 Clean up Trainer Code (nomic-ai#1)
* feat: forward single gpu working for clip * fix: wandb logging, multigpu single node working * fix: learning rate scheduler bug accelerate used to step for each gpu, now we don't have to account for that! * fix: model + logit saving * chore: multiprocess/datasets broken * fix: datasets version * fix: working run * chore: add dev reqs * feat: deepspeed at least runs * fix: eval loop and saving working, set seed correctly * docs: update readme * docs: add citation * fix: scheduler, saving for deepspeed * docs: update readme with new command * chore: spelling * fix: autocast * feat: glue trainer * fix: remove old files, update config * nit: prints * style: black isort * docs: add arxiv link
- Loading branch information
1 parent
b0e94ca
commit 564ee7a
Showing
30 changed files
with
1,405 additions
and
4,159 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
datasets | ||
datasets>=2.16.0 | ||
nomic>3.0.0 | ||
webdataset | ||
s3fs>=2023.10.0 | ||
|
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
train_args: | ||
num_epochs: 10 | ||
learning_rate: 3.0e-5 | ||
adam_beta1: 0.9 | ||
adam_beta2: 0.98 | ||
weight_decay: 1.0e-6 | ||
eps: 1e-6 | ||
max_grad_norm: 0.0 | ||
schedule_type: "linear" | ||
|
||
warmup_steps: null | ||
warmup_pct: 0.06 | ||
cooldown_steps: null | ||
checkpoint: null | ||
|
||
wandb: true | ||
wandb_project_name: "bert" | ||
wandb_entity: "gpt4all" | ||
wandb_run_name: "glue-trainer-test" | ||
|
||
log_grads_every: 100 | ||
log_lr_every: 10 | ||
save_every: -1 | ||
eval_strategy: "epochs" | ||
|
||
model_args: | ||
model_type: "glue" | ||
seq_len: 128 | ||
tokenizer_name: "bert-base-uncased" | ||
pretrained: "ckpts/mlm-trainer/epoch_0_model" | ||
|
||
mlm_data_args: | ||
task_name: "cola" | ||
workers: -1 | ||
batch_size: 16 | ||
seed: 42 | ||
shuffle: true |
Oops, something went wrong.