Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
NouamaneTazi committed Feb 13, 2024
1 parent b39c831 commit 3bd346d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/small.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
- name: Run tests
# NOTE: -m "not fa2" will run all the unit tests that don't have the mark
# "fa2" (these are FA2-related tests, we can't run it on T4)
run: pytest -n 1 --color=yes --durations=0 --verbose tests/test_clip_grads
run: pytest -n 1 --color=yes --durations=0 --verbose tests/test_clip_grads.py::test_clip_grads_with_pp[inf]
3 changes: 2 additions & 1 deletion tests/test_clip_grads.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def _test_clip_grads_with_pp(parallel_context: ParallelContext, norm_type: float
to_rank=reference_rank,
)

# parallel_context.destroy()
parallel_context.destroyaa()
parallel_context.destroy()


@pytest.mark.skipif(available_gpus() < 2, reason="test_clip_grads_with_tp requires at least 2 gpus")
Expand Down

0 comments on commit 3bd346d

Please sign in to comment.