forked from bminixhofer/ukrainian-wechsel-models
-
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.
Adding support for the SophiaG optimizer in the mlm trainer, adding n…
…ew config
- Loading branch information
1 parent
907ad8b
commit 1e17678
Showing
2 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
configs/experimental/roberta/roberta.oscar.nofilter.wechsel.largedict.sophia.json
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,30 @@ | ||
{ | ||
"output_dir": "exps/roberta.oscar.nofilter.wechsel.largedict.sophia", | ||
"model_type": "roberta", | ||
"config_name": "exps/roberta.oscar.nofilter.wechsel.largedict.sophia", | ||
"tokenizer_name": "exps/roberta.oscar.nofilter.wechsel.largedict.sophia", | ||
"train_file": "data/oscar.nofilter", | ||
"max_seq_length": 512, | ||
"do_train": true, | ||
"do_eval": true, | ||
"validation_file": "data/bruk_valid_data.txt", | ||
"weight_decay": 1e-1, | ||
"per_device_train_batch_size": 24, | ||
"per_device_eval_batch_size": 24, | ||
"gradient_accumulation_steps": 4, | ||
"learning_rate": 2e-4, | ||
"evaluation_strategy": "steps", | ||
"warmup_steps": 25000, | ||
"max_steps": 250000, | ||
"eval_steps": 500, | ||
"save_steps": 12500, | ||
"logging_steps": 500, | ||
"overwrite_output_dir": true, | ||
"num_train_epochs": 0, | ||
"adam_beta1": 0.965, | ||
"adam_beta2": 0.99, | ||
"adam_epsilon": 1e-6, | ||
"preprocessing_num_workers": 48, | ||
"fp16": true, | ||
"model_name_or_path": "exps/roberta.oscar.nofilter.wechsel.largedict.sophia" | ||
} |
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