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

Function empty_cache

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

Source from the content-addressed store, hash-verified

883
884
885def empty_cache():
886 get_accelerator().empty_cache()
887 get_accelerator().reset_peak_memory_stats()
888
889
890def is_optimized_parameter(param):

Callers 1

__init__Method · 0.90

Calls 3

get_acceleratorFunction · 0.90
empty_cacheMethod · 0.45

Tested by

no test coverage detected