Skip to content

Commit

Permalink
Add RetNet to dvc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
binkjakub committed Nov 28, 2023
1 parent e6fb42c commit a36bc44
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion dvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,28 @@ stages:
- data/datasets/polemo2/lightning
- data/hps/lightning/${item}/polemo2/best_params.yaml
outs:
- data/models/lightning/${item}/polemo2/
- data/models/lightning/${item}/polemo2/

train_retnet:
wdir: ./RetNet
cmd: >-
torchrun --nproc_per_node=3
train.py
--model_size 300m
--output_dir ../data/models/retnet/checkpoints
--do_train
--do_eval
--prediction_loss_only
--remove_unused_columns False
--learning_rate 6e-4
--weight_decay 0.01
--max_steps 20000
--logging_steps 100
--eval_steps 1000
--save_steps 1000
--per_device_train_batch_size 4
--per_device_eval_batch_size 4
deps:
- train.py
outs:
- ../data/models/retnet/checkpoints

0 comments on commit a36bc44

Please sign in to comment.