Skip to content

Commit

Permalink
add reference algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Nov 21, 2023
1 parent cc0c6ff commit 0338f8f
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 81 deletions.
81 changes: 81 additions & 0 deletions reference_algorithms/threshold_baselines/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Threshold Baselines
TODO: link back to section in rules.

## Externally Tuned Ruleset

### JAX

The threshold submissions for jax are:
- `reference_algorithms/threshold_baselines/external_tuning/jax_nadamw_target_setting.py`
- `feference_algorithms/threshold_baselines/external_tuning/jax_nadamw_full_budget.py`

Example command:

```bash
python3 submission_runner.py \
--framework=jax \
--data_dir=<data_dir> \
--experiment_dir=<experiment_dir> \
--experiment_name=<experiment_name> \
--workload=<workload> \
--submission_path=reference_algorithms/threshold_baselines/external_tuning/jax_nadamw_target_setting.py \
--tuning_search_space=reference_algorithms/threshold_baselines/external_tuning/tuning_search_space.json
```

### PyTorch

The threshold submissions for PyTorch are
- `reference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_target_setting.py`
- `feference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_full_budget.py`


Example command:

```bash
torchrun --redirects 1:0,2:0,3:0,4:0,5:0,6:0,7:0 --standalone --nnodes=1 --nproc_per_node=8 submission_runner.py \
--framework=pytorch \
--data_dir=<data_dir> \
--experiment_dir=<experiment_dir> \
--experiment_name=t<experiment_name> \
--workload=<workload>\
--submission_path=reference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_target_setting.py \
--tuning_search_space=reference_algorithms/threshold_baselines/external_tuning/tuning_search_space.json
```

## Self-tuning Ruleset

### JAX

The threshold submissions for jax are
- `reference_algorithms/threshold_baselines/external_tuning/jax_nadamw_target_setting.py`
- `feference_algorithms/threshold_baselines/external_tuning/jax_nadamw_full_budget.py`

Example command:
```bash
python3 submission_runner.py \
--framework=jax \
--data_dir=<data_dir> \
--experiment_dir=<experiment_dir> \
--experiment_name=<experiment_name> \
--workload=<workload> \
--submission_path=reference_algorithms/threshold_baselines/external_tuning/jax_nadamw_target_setting.py \
--tuning_ruleset=self
```

### PyTorch

The threshold submissions for PyTorch are
- `reference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_target_setting.py`
- `feference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_full_budget.py`

Example command:
```bash
torchrun --redirects 1:0,2:0,3:0,4:0,5:0,6:0,7:0 --standalone --nnodes=1 --nproc_per_node=8 submission_runner.py \
--framework=pytorch \
--data_dir=<data_dir> \
--experiment_dir=<experiment_dir> \
--experiment_name=t<experiment_name> \
--workload=<workload>\
--submission_path=reference_algorithms/threshold_baselines/external_tuning/pytorch_nadamw_target_setting.py \
--tuning_ruleset=self
```
81 changes: 0 additions & 81 deletions reference_algorithms/threshold_submissions/README.md

This file was deleted.

0 comments on commit 0338f8f

Please sign in to comment.