MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / get_ma_status

Function get_ma_status

deepspeed/runtime/utils.py:804–807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

802
803
804def get_ma_status():
805 if dist.is_initialized() and not dist.get_rank() == 0:
806 return 0
807 return get_accelerator().memory_allocated()
808
809
810def empty_cache():

Callers 1

forwardMethod · 0.85

Calls 4

get_acceleratorFunction · 0.90
is_initializedMethod · 0.45
get_rankMethod · 0.45
memory_allocatedMethod · 0.45

Tested by

no test coverage detected