Run the following command:
import frogml
from pathlib import Path
loaded_model: Path = frogml.files.load_model(
repository="<REPO_NAME>",
model_name="<MODEL_NAME>",
version="<MODEL_VERSION>",
target_path="<PATH_TO_FOLDER>" # optional
)Where:
<REPO_NAME>: The name of the repository where the model is stored<MODEL_NAME>: The unique name of the target model<MODEL_VERSION>: The target version of the model you want to load<PATH_TO_FOLDER>(Optional): The path to the local directory where you want to save the model's files
For example:
import frogml
from pathlib import Path
loaded_model: Path = frogml.files.load_model(
repository="ml-local",
model_name="ranger-randomforest-classifier",
version="1.4",
target_path="./downloaded_models"
)
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.