Push a model to Hugging Face
hf_model_push · Built-in action recipePublish a trained spaCy pipeline or fine-tuned Hugging Face model to a model repo, private by default.
If you've connected Ellf to your coding assistant, it can set up the action for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up an action
› Set up an Ellf action using the Push a model to Hugging Face recipe (hf_model_push) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Push a model to Hugging Face recipe under Training.
- Fill in the form – you'll need to provide Model, Hugging Face repo and Hugging Face token. Everything else has sensible defaults.
- Create the action. It starts on your cluster straight away.
API key needed
This recipe needs your Hugging Face token. Add it as a secret on your cluster and select it in the form.
Create the action with ellf actions create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf actions create hf_model_push --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--model-model | str | Trained spaCy model: If you have custom pipelines, you can add them to your cluster.One option for Model | None |
--model-hf-model | str | Hugging Face model on your cluster: A Hugging Face checkpoint on your cluster, downloaded from the Hub or fine-tuned on your annotations.One option for Model | None |
--repo-id | str | Hugging Face repo: Repository ID on huggingface.co, e.g. dslim/bert-base-NER. | |
--hf-token | str | Hugging Face token: A token with write access to the repo's namespace (the owner/ part of the repo id). | |
--private | bool | Private repo: Keep the repo private. | True |
--commit-message | str | Commit message | "" |
--project-id | str | Project ID to add action to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the action on, as configured on your cluster | None |