MCPcopy
hub / github.com/allenai/open-instruct / load

Method load

open_instruct/grpo_fast.py:299–303  ·  view source on GitHub ↗
(self, path: str, map_location=None)

Source from the content-addressed store, hash-verified

297 from deepspeed.utils import logger # noqa: PLC0415
298
299 def load(self, path: str, map_location=None):
300 logger.info(f"[Torch] Loading checkpoint from {path}...")
301 partition = torch.load(path, map_location=map_location, weights_only=False)
302 logger.info(f"[Torch] Loaded checkpoint from {path}.")
303 return partition
304
305 torch_checkpoint_engine.TorchCheckpointEngine.load = load
306

Callers 15

_save_tokenizerFunction · 0.80
test_happy_pathMethod · 0.80
test_end_to_end_smallMethod · 0.80
from_diskMethod · 0.80
_load_checkpointFunction · 0.80
_load_mbu_test_casesFunction · 0.80
_get_sentence_tokenizerFunction · 0.80
load_yamlFunction · 0.80

Calls

no outgoing calls