MCPcopy Create free account
hub / github.com/MoonshotAI/checkpoint-engine / MemoryBucket

Class MemoryBucket

checkpoint_engine/pin_memory.py:288–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 bucket_size = max(4 << 30, max(_align_size(x.dtype, x.shape) for x in parameters.values()))
287
288 class MemoryBucket(BaseModel):
289 size: int
290 metas: list[ParameterMeta]
291
292 buckets: list[MemoryBucket] = []
293 buckets.append(MemoryBucket(size=0, metas=[]))

Callers 1

_normal_pin_memoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected