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

Function set_checkpoint_version

codegeex/megatron/checkpointing.py:31–35  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

29
30
31def set_checkpoint_version(value):
32 global _CHECKPOINT_VERSION
33 if _CHECKPOINT_VERSION is not None:
34 assert _CHECKPOINT_VERSION == value, "checkpoint versions do not match"
35 _CHECKPOINT_VERSION = value
36
37
38def get_checkpoint_version():

Callers 1

load_checkpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected