Get Model Information

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Run the following command:

import frogml

repository = "<REPO_NAME>"
name = "<MODEL_NAME>"
version = "<MODEL_VERSION>"

model_information = frogml.<FORMAT>.get_model_info(
    repository=repository,
    model_name=name,
    version=version,
)

Where:

  • <REPO_NAME>: The name of the repository where the model is located

  • <MODEL_NAME>: The unique name of the model

  • <MODEL_VERSION>: The target version of the model

  • <FORMAT>: The format of the model, which must be one of the following values:

    • catboost

    • files

    • huggingface

    • onnx

    • pytorch

    • scikit_learn

    For example:

    import frogml
    
    repository = "ml-local"
    name = "sentiment-analyzer"
    version = "1.2.0"
    
    model_information = frogml.huggingface.get_model_info(
        repository=repository,
        model_name=name,
        version=version,
    )