MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / get_checkpoint_name_from_path

Function get_checkpoint_name_from_path

eval.py:238–240  ·  view source on GitHub ↗

To go from checkpoint name to path, replace | with /

(path: str)

Source from the content-addressed store, hash-verified

236
237
238def get_checkpoint_name_from_path(path: str) -> str:
239 """To go from checkpoint name to path, replace | with /"""
240 return path.lstrip("/").replace("/", "|")
241
242
243def download_starting_checkpoint(starting_checkpoint_load_path: str, local_pretrain_checkpoints_folder: str) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected