MCPcopy
hub / github.com/huggingface/transformers / is_fsdp_available

Function is_fsdp_available

src/transformers/utils/import_utils.py:1139–1140  ·  view source on GitHub ↗
(min_version: str = FSDP_MIN_VERSION)

Source from the content-addressed store, hash-verified

1137
1138@lru_cache
1139def is_fsdp_available(min_version: str = FSDP_MIN_VERSION) -> bool:
1140 return is_torch_available() and version.parse(get_torch_version()) >= version.parse(min_version)
1141
1142
1143@lru_cache

Callers 1

require_fsdpFunction · 0.85

Calls 3

is_torch_availableFunction · 0.85
get_torch_versionFunction · 0.85
parseMethod · 0.45

Tested by 1

require_fsdpFunction · 0.68