Files
miles/tests/test_fsdp_import.py
2026-01-03 20:09:56 -08:00

10 lines
239 B
Python

import pytest
def test_fsdp_import():
try:
from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
except ImportError:
pytest.skip("FSDP not available in this environment")
assert FSDP is not None