modelzoo.common.pytorch.model_utils.convert_checkpoint.convert_checkpoint_from_file#
- modelzoo.common.pytorch.model_utils.convert_checkpoint.convert_checkpoint_from_file(model: str, src_fmt: str, tgt_fmt: str, checkpoint_file: str, config_file: str, outputdir: Optional[str] = None, hf_shard_size: str = '10GB', export_safetensors: bool = False, drop_unmatched_keys: bool = False, no_progress_bar: bool = True, debug: bool = False)[source]#