Modelfile

Properties


Methods

download

download(
   target_path: Union[str, Path] = './', force_replace: bool = False
)

Description

Download file stored.

Examples

latest_cp = model.get_file("model-latest")
latest_cp.download("./files/")

Arguments

  • target_path (str or Path, optional) : Directory path where file will be downloaded

  • force_replace : (bool, optional): Replace an existing file if exists. Defaults to False.


delete

delete()

Description

Delete this file

Examples

model_file.delete()