To go from checkpoint name to path, replace | with /
(path: str)
| 236 | |
| 237 | |
| 238 | def 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 | |
| 243 | def download_starting_checkpoint(starting_checkpoint_load_path: str, local_pretrain_checkpoints_folder: str) -> str: |
no outgoing calls
no test coverage detected