MCPcopy Create free account
hub / github.com/pytorch/examples / bfloat_support

Function bfloat_support

distributed/FSDP/utils/environment.py:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18# nccl version to verify bfloat16 native support is ready
19
20def bfloat_support():
21 return (
22 torch.version.cuda
23 and torch.cuda.is_bf16_supported()
24 and packaging.version.parse(torch.version.cuda).release >= (11, 0)
25 and dist.is_nccl_available()
26 and nccl.version() >= (2, 10)
27 )

Callers 1

get_policiesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected