The Hugging Face
model definition allows you to import models from a Hugging Face repository.
#Feature
Currently, VDP supports importing models tagged with the following tasks
#Release stage
Alpha
#Configuration
Field | Type | Note |
---|---|---|
repo_id * | string | A model repo name hosted on the Hugging Face model hub. Valid repo ids can be located at the root-level, or namespaced under a user or organization name, like google/vit-base-patch16-224 |
#Getting started
#Requirements
- A public Hugging Face model repository that is labelled with
Image classification
task
#No-code setup
To import a model from Hugging Face in the Console, do the following:
- Go to the Model page and click Add new model
- In the Set Up New Model page, fill an ID for your model, this will be the unique identifier of this model
- Click the Model type ▾ drop-down and choose Hugging Face
- [Optional] Give a short description of your model in the Description field
- Fill the Hugging Face model ID that stores the model files and click Setup new model
- Once the model is imported, click the Model instances ▾ drop-down, pick the
latest
model instance and click Deploy - Now go to the Model page, the corresponding model instance should be online
Since a Hugging Face model has no version control, when the model is successfully imported, the model will has and only has one model instance tagged with latest
.
#Low-code setup
- Send a HTTP request to the VDP
model-backend
to import a model from Hugging Face.
- Deploy the
latest
model instance.
- Perform an inference to test the model