Fix mamba2 mixer ci test (#19658)
This commit is contained in:
@@ -40,7 +40,9 @@ def test_mixer2_gated_norm_multi_gpu(
|
|||||||
if not torch.cuda.is_available():
|
if not torch.cuda.is_available():
|
||||||
pytest.skip("CUDA device not available")
|
pytest.skip("CUDA device not available")
|
||||||
|
|
||||||
assert torch.cuda.device_count() == NUM_GPUS
|
assert (
|
||||||
|
torch.cuda.device_count() >= NUM_GPUS
|
||||||
|
), f"This test requires at least {NUM_GPUS} GPUs, but only {torch.cuda.device_count()} available"
|
||||||
|
|
||||||
hidden_size, n_groups = hidden_size_n_groups
|
hidden_size, n_groups = hidden_size_n_groups
|
||||||
num_processes = NUM_GPUS
|
num_processes = NUM_GPUS
|
||||||
|
|||||||
Reference in New Issue
Block a user