Skip to content

Commit

Permalink
train only 1 epoch in cicd and print to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Denby committed Aug 14, 2024
1 parent 799d55e commit 57bbb81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pdm-install-and-test-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run tests
run: |
pdm run pytest
pdm run pytest -s tests/
- name: Save cache data
uses: actions/cache/save@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pdm-install-and-test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Run tests
run: |
pdm run pytest
pdm run pytest -s tests/
- name: Save cache data
uses: actions/cache/save@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pip-install-and-test-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run tests
run: |
python -m pytest
python -m pytest -s tests/
- name: Save cache data
uses: actions/cache/save@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pip-install-and-test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Run tests
run: |
python -m pytest
python -m pytest -s tests/
- name: Save cache data
uses: actions/cache/save@v4
Expand Down
2 changes: 1 addition & 1 deletion tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_training(datastore_name):
device_name = "cpu"

trainer = pl.Trainer(
max_epochs=3,
max_epochs=1,
deterministic=True,
accelerator=device_name,
# XXX: `devices` has to be set to 2 otherwise
Expand Down

0 comments on commit 57bbb81

Please sign in to comment.