MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / _initialize_mem_buffs

Function _initialize_mem_buffs

codegeex/megatron/initialize.py:331–337  ·  view source on GitHub ↗

Initialize manually allocated static memory.

()

Source from the content-addressed store, hash-verified

329
330
331def _initialize_mem_buffs():
332 """Initialize manually allocated static memory."""
333 args = get_args()
334
335 # Initialize memory for checkpointed activations.
336 if args.distribute_checkpointed_activations:
337 mpu.init_checkpointed_activations_memory_buffer()

Callers 1

initialize_megatronFunction · 0.85

Calls 1

get_argsFunction · 0.90

Tested by

no test coverage detected