Skip to content

Commit 362cbda

Browse files
committed
Merge remote-tracking branch 'origin/dev' into lm_workload
2 parents e805fa7 + 7d8f609 commit 362cbda

File tree

1,616 files changed

+21035
-321635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,616 files changed

+21035
-321635
lines changed

.assets/performance_profiles.png

-14.9 KB
Loading

.github/workflows/CI.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
pip install .[pytorch_cpu]
2020
pip install .[full]
2121
pip install -e .
22-
python tests/reference_algorithm_tests.py --workload=fastmri --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_momentum.py --tuning_search_space=reference_algorithms/target_setting_algorithms/fastmri/tuning_search_space.json
23-
python tests/reference_algorithm_tests.py --workload=fastmri --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_momentum.py --tuning_search_space=reference_algorithms/target_setting_algorithms/fastmri/tuning_search_space.json
22+
python tests/reference_algorithm_tests.py --workload=fastmri --framework=pytorch --global_batch_size=8 --submission_path=algorithms/target_setting_algorithms/pytorch_momentum.py --tuning_search_space=algorithms/target_setting_algorithms/fastmri/tuning_search_space.json
23+
python tests/reference_algorithm_tests.py --workload=fastmri --framework=jax --global_batch_size=8 --submission_path=algorithms/target_setting_algorithms/jax_momentum.py --tuning_search_space=algorithms/target_setting_algorithms/fastmri/tuning_search_space.json
2424
wmt_jax:
2525
runs-on: ubuntu-latest
2626
steps:
@@ -37,7 +37,7 @@ jobs:
3737
pip install .[pytorch_cpu]
3838
pip install .[full]
3939
pip install -e .
40-
python tests/reference_algorithm_tests.py --workload=wmt --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_nadamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/wmt/tuning_search_space.json
40+
python tests/reference_algorithm_tests.py --workload=wmt --framework=jax --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/jax_nadamw.py --tuning_search_space=algorithms/target_setting_algorithms/wmt/tuning_search_space.json
4141
wmt_pytorch:
4242
runs-on: ubuntu-latest
4343
steps:
@@ -54,7 +54,7 @@ jobs:
5454
pip install .[pytorch_cpu]
5555
pip install .[full]
5656
pip install -e .
57-
python tests/reference_algorithm_tests.py --workload=wmt --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_nadamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/wmt/tuning_search_space.json
57+
python tests/reference_algorithm_tests.py --workload=wmt --framework=pytorch --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/pytorch_nadamw.py --tuning_search_space=algorithms/target_setting_algorithms/wmt/tuning_search_space.json
5858
imagenet_jax:
5959
runs-on: ubuntu-latest
6060
steps:
@@ -71,8 +71,8 @@ jobs:
7171
pip install .[pytorch_cpu]
7272
pip install .[full]
7373
pip install -e .
74-
python tests/reference_algorithm_tests.py --workload=imagenet_vit --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/imagenet_vit/tuning_search_space.json
75-
python tests/reference_algorithm_tests.py --workload=imagenet_resnet --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_momentum.py --tuning_search_space=reference_algorithms/target_setting_algorithms/imagenet_resnet/tuning_search_space.json
74+
python tests/reference_algorithm_tests.py --workload=imagenet_vit --framework=jax --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/imagenet_vit/tuning_search_space.json
75+
python tests/reference_algorithm_tests.py --workload=imagenet_resnet --framework=jax --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/jax_momentum.py --tuning_search_space=algorithms/target_setting_algorithms/imagenet_resnet/tuning_search_space.json
7676
imagenet_pytorch:
7777
runs-on: ubuntu-latest
7878
steps:
@@ -89,8 +89,8 @@ jobs:
8989
pip install .[pytorch_cpu]
9090
pip install .[full]
9191
pip install -e .
92-
python tests/reference_algorithm_tests.py --workload=imagenet_resnet --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_momentum.py --tuning_search_space=reference_algorithms/target_setting_algorithms/imagenet_resnet/tuning_search_space.json
93-
python tests/reference_algorithm_tests.py --workload=imagenet_vit --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/imagenet_vit/tuning_search_space.json
92+
python tests/reference_algorithm_tests.py --workload=imagenet_resnet --framework=pytorch --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/pytorch_momentum.py --tuning_search_space=algorithms/target_setting_algorithms/imagenet_resnet/tuning_search_space.json
93+
python tests/reference_algorithm_tests.py --workload=imagenet_vit --framework=pytorch --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/imagenet_vit/tuning_search_space.json
9494
# uncomment when https://github.com/mlcommons/algorithmic-efficiency/issues/339 is resolved.
9595
criteo_jax:
9696
runs-on: ubuntu-latest
@@ -108,7 +108,7 @@ jobs:
108108
pip install .[pytorch_cpu]
109109
pip install .[full]
110110
pip install -e .
111-
python tests/reference_algorithm_tests.py --workload=criteo1tb_test --framework=jax --global_batch_size=1 --submission_path=reference_algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/criteo1tb/tuning_search_space.json
111+
python tests/reference_algorithm_tests.py --workload=criteo1tb_test --framework=jax --global_batch_size=1 --submission_path=algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/criteo1tb/tuning_search_space.json
112112
criteo_pytorch:
113113
runs-on: ubuntu-latest
114114
steps:
@@ -125,7 +125,7 @@ jobs:
125125
pip install .[pytorch_cpu]
126126
pip install .[full]
127127
pip install -e .
128-
python tests/reference_algorithm_tests.py --workload=criteo1tb_test --framework=pytorch --global_batch_size=1 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/criteo1tb/tuning_search_space.json
128+
python tests/reference_algorithm_tests.py --workload=criteo1tb_test --framework=pytorch --global_batch_size=1 --submission_path=algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/criteo1tb/tuning_search_space.json
129129
speech_jax:
130130
runs-on: ubuntu-latest
131131
steps:
@@ -142,8 +142,8 @@ jobs:
142142
pip install .[pytorch_cpu]
143143
pip install .[full]
144144
pip install -e .
145-
python tests/reference_algorithm_tests.py --workload=librispeech_conformer --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/librispeech_conformer/tuning_search_space.json
146-
python tests/reference_algorithm_tests.py --workload=librispeech_deepspeech --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/librispeech_deepspeech/tuning_search_space.json
145+
python tests/reference_algorithm_tests.py --workload=librispeech_conformer --framework=jax --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/librispeech_conformer/tuning_search_space.json
146+
python tests/reference_algorithm_tests.py --workload=librispeech_deepspeech --framework=jax --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/jax_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/librispeech_deepspeech/tuning_search_space.json
147147
speech_pytorch:
148148
runs-on: ubuntu-latest
149149
steps:
@@ -160,8 +160,8 @@ jobs:
160160
pip install .[pytorch_cpu]
161161
pip install .[full]
162162
pip install -e .
163-
python tests/reference_algorithm_tests.py --workload=librispeech_deepspeech --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/librispeech_deepspeech/tuning_search_space.json
164-
python tests/reference_algorithm_tests.py --workload=librispeech_conformer --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=reference_algorithms/target_setting_algorithms/librispeech_conformer/tuning_search_space.json
163+
python tests/reference_algorithm_tests.py --workload=librispeech_deepspeech --framework=pytorch --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/librispeech_deepspeech/tuning_search_space.json
164+
python tests/reference_algorithm_tests.py --workload=librispeech_conformer --framework=pytorch --global_batch_size=2 --submission_path=algorithms/target_setting_algorithms/pytorch_adamw.py --tuning_search_space=algorithms/target_setting_algorithms/librispeech_conformer/tuning_search_space.json
165165
ogbg:
166166
runs-on: ubuntu-latest
167167
steps:
@@ -178,9 +178,9 @@ jobs:
178178
pip install .[pytorch_cpu]
179179
pip install .[full]
180180
pip install -e .
181-
python tests/reference_algorithm_tests.py --workload=ogbg --framework=pytorch --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/pytorch_nesterov.py --tuning_search_space=reference_algorithms/target_setting_algorithms/ogbg/tuning_search_space.json
182-
python tests/reference_algorithm_tests.py --workload=ogbg --framework=jax --global_batch_size=8 --submission_path=reference_algorithms/target_setting_algorithms/jax_nesterov.py --tuning_search_space=reference_algorithms/target_setting_algorithms/ogbg/tuning_search_space.json
183-
pytest:
181+
python tests/reference_algorithm_tests.py --workload=ogbg --framework=pytorch --global_batch_size=8 --submission_path=algorithms/target_setting_algorithms/pytorch_nesterov.py --tuning_search_space=algorithms/target_setting_algorithms/ogbg/tuning_search_space.json
182+
python tests/reference_algorithm_tests.py --workload=ogbg --framework=jax --global_batch_size=8 --submission_path=algorithms/target_setting_algorithms/jax_nesterov.py --tuning_search_space=algorithms/target_setting_algorithms/ogbg/tuning_search_space.json
183+
pytest-params:
184184
runs-on: ubuntu-latest
185185
steps:
186186
- uses: actions/checkout@v3

.github/workflows/linting.yml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,35 @@ name: Linting
33
on: [push, pull_request]
44

55
jobs:
6-
pylint:
6+
ruff-linting:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
1010
- name: Set up Python 3.11.10
1111
uses: actions/setup-python@v2
1212
with:
1313
python-version: 3.11.10
14-
- name: Install pylint
14+
- name: Install ruff
1515
run: |
1616
python -m pip install --upgrade pip
17-
pip install pylint==2.16.1
18-
- name: Run pylint
17+
pip install ruff==0.12.0
18+
- name: Run ruff linter
1919
run: |
20-
pylint algoperf
21-
pylint reference_algorithms
22-
pylint prize_qualification_baselines
23-
pylint submission_runner.py
24-
pylint tests
20+
ruff check
2521
26-
isort:
22+
ruff-formatter:
2723
runs-on: ubuntu-latest
2824
steps:
2925
- uses: actions/checkout@v2
3026
- name: Set up Python 3.11.10
3127
uses: actions/setup-python@v2
3228
with:
3329
python-version: 3.11.10
34-
- name: Install isort
30+
- name: Install ruff
3531
run: |
3632
python -m pip install --upgrade pip
37-
pip install isort==5.12.0
38-
- name: Run isort
33+
pip install ruff==0.12.0
34+
- name: Run ruff formatter
3935
run: |
40-
isort . --check --diff
36+
ruff format --check
4137
42-
yapf:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- name: Set up Python 3.11.10
47-
uses: actions/setup-python@v2
48-
with:
49-
python-version: 3.11.10
50-
- name: Install yapf
51-
run: |
52-
python -m pip install --upgrade pip
53-
pip install yapf==0.32 toml
54-
- name: Run yapf
55-
run: |
56-
yapf . --diff --recursive

0 commit comments

Comments
 (0)