generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support fork in benchmark CI * use temporary dir for benchmark CI * debug * revert back * dependency fix * refactor script
- Loading branch information
Showing
9 changed files
with
69 additions
and
36 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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
# hello world experiment | ||
python benchmark/benchmark.py \ | ||
--command "python examples/scripts/sentiment_tuning.py --ppo_config.log_with wandb" \ | ||
--num-seeds 3 \ | ||
--start-seed 1 \ | ||
--workers 10 \ | ||
--slurm-nodes 1 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 12 \ | ||
--slurm-template-path benchmark/trl.slurm_template |
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,11 @@ | ||
# compound | ||
python benchmark/benchmark.py \ | ||
--command "python examples/scripts/sentiment_tuning.py --ppo_config.exp_name sentiment_tuning_gpt2xl_grad_accu --ppo_config.model_name gpt2-xl --ppo_config.mini_batch_size 16 --ppo_config.gradient_accumulation_steps 8 --ppo_config.log_with wandb" \ | ||
--num-seeds 3 \ | ||
--start-seed 1 \ | ||
--workers 10 \ | ||
--slurm-nodes 1 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 12 \ | ||
--slurm-template-path benchmark/trl.slurm_template |
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,21 @@ | ||
# pip install openrlbenchmark==0.2.1a5 | ||
# see https://github.com/openrlbenchmark/openrlbenchmark#get-started for documentation | ||
echo "we deal with $TAGS_STRING" | ||
|
||
python -m openrlbenchmark.rlops_multi_metrics \ | ||
--filters '?we=huggingface&wpn=trl&xaxis=_step&ceik=trl_ppo_trainer_config.value.reward_model&cen=trl_ppo_trainer_config.value.exp_name&metrics=env/reward_mean&metrics=objective/kl' \ | ||
"sentiment_tuning$TAGS_STRING" \ | ||
"sentiment_tuning_gpt2xl_grad_accu$TAGS_STRING" \ | ||
--env-ids sentiment-analysis:lvwerra/distilbert-imdb \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 2 \ | ||
--pc.ncols-legend 1 \ | ||
--output-filename benchmark/trl/$FOLDER_STRING/different_models \ | ||
--scan-history | ||
|
||
python benchmark/upload_benchmark.py \ | ||
--folder_path="benchmark/trl/$FOLDER_STRING" \ | ||
--path_in_repo="images/benchmark/$FOLDER_STRING" \ | ||
--repo_id="trl-internal-testing/example-images" \ | ||
--repo_type="dataset" | ||
|
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