MCPcopy Create free account
hub / github.com/OpenGVLab/InternImage / bf16_compress_hook

Function bf16_compress_hook

classification/ddp_hooks.py:77–108  ·  view source on GitHub ↗

Warning: This API is experimental, and it requires NCCL version later than 2.9.6. This DDP communication hook implements a simple gradient compression approach that casts ``GradBucket`` tensor to half-precision `Brain floating point format <https://en.wikipedia.org/wiki/Bfloat16_fl

(
        process_group: dist.ProcessGroup,
        bucket: dist.GradBucket)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

toMethod · 0.80

Tested by

no test coverage detected