Download a Hugging Face model
hf_model_download · Built-in action recipeDownload a model checkpoint from the Hugging Face Hub into the cluster's shared cache, so agents and training start without downloading it again.
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 Download a Hugging Face model recipe (hf_model_download) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Download a Hugging Face model recipe under Data.
- Fill in the form – you'll need to provide Hugging Face model name. Everything else has sensible defaults.
- Create the action. It starts on your cluster straight away.
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_download --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--repo-id | str | Hugging Face model name: Model ID on huggingface.co, e.g. dslim/bert-base-NER. | |
--revision | str | Hugging Face model revision: Branch, tag or commit to use. Pin a commit so a restart can't change behavior. | "main" |
--hf-token | str | Hugging Face token: Your own HF token, stored as an Ellf secret. Not needed for public models; required for gated and private ones. | None |
--allow-patterns | List[str] | Only download matching files: Glob patterns, e.g. *.safetensors, *.json. Otherwise the checkpoint is downloaded without other frameworks' duplicate weights. | None |
--register | bool | Register as an asset: Record the downloaded checkpoint as a Hugging Face model asset, selectable in the Hugging Face Model Agent and fine-tuning. | False |
--version | str | Asset version: Version of the registered asset. | "0.0.1" |
--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 |