Skip to content

Commit

Permalink
Merge branch 'vitalyk/testfix' into 'main'
Browse files Browse the repository at this point in the history
Remove CUDA requirement from cpu test.

See merge request ADLR/megatron-lm!2199
  • Loading branch information
ko3n1g committed Oct 9, 2024
2 parents fcdbf90 + 37a2116 commit 228dc20
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/unit_tests/transformer/test_rope.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def test_gpu_forward(self):
assert output.dtype == torch.float32
assert output.device.type == 'cuda'

@pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA not available")
def test_cpu_forward(self):
output = self.rope_cpu_init(64)
assert output.shape[0] == 64
Expand Down

0 comments on commit 228dc20

Please sign in to comment.