Skip to main content

upload/download

Upload

You can use classy upload to save a trained model on the HuggingFace Model Hub.

note

Uploading to the HF Hub requires a HuggingFace account.

You can create one here and then run huggingface-cli login to perform the login from your machine.

classy train [...] -n modelnameclassy upload modelnameModel uploaded to the HuggingFace Hub.You can download it running `classy download username@modelname`!

Download

You can use classy download to download a model previously uploaded by someone else with classy upload.

caution

classy download currently only works with models trained with the base classy library.

Support for user-defined models is being discussed internally.

classy download username@modelnameclassy serve username@modelnameDemo up and running at http://0.0.0.0:8000

info

Models downloaded through classy download are stored under ~/.cache/sunglasses-ai/classy.

tip

Once a model has been downloaded, it is accessible from anywhere on the machine using any of the model-based classy commands (e.g. serve, predict, etc).