Skip to content

Commit

Permalink
Fix flapping test
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Aug 8, 2023
1 parent 5cbb33b commit 54cd213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
timeout-minutes: 15
steps:
- name: Increase swap space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion tests/test_remote_sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_remote_sequential():
assert torch.allclose(second_half_outputs, full_outputs, atol=3e-4)

(second_half_outputs * grad_proj).sum().backward()
assert torch.allclose(test_inputs.grad, full_grad, atol=1e-3)
assert torch.allclose(test_inputs.grad, full_grad, atol=3e-3)

# test RemoteSequential with lossy compression
block_uids = [f"{config.dht_prefix}{UID_DELIMITER}{i}" for i in range(config.num_hidden_layers)]
Expand Down

0 comments on commit 54cd213

Please sign in to comment.