Push a dataset to Hugging Face
hf_dataset_push · Built-in action recipePublish an annotated dataset to a Hugging Face dataset 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 dataset to Hugging Face recipe (hf_dataset_push) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Push a dataset to Hugging Face recipe under Data.
- Fill in the form – you'll need to provide Dataset to publish, 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_dataset_push --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--input | str | Dataset to publish: Annotated dataset to export. | |
--repo-id | str | Hugging Face repo: Repository ID on huggingface.co, e.g. stanfordnlp/imdb. | |
--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. Public datasets can expose whatever the text and meta contain. | True |
--license-id | str | License: License ID for the dataset card, e.g. cc-by-4.0, mit or other. | "other" |
--commit-message | str | Commit message | "" |
--include-rejected | bool | Include rejected answers: By default only accepted answers are published. | False |
--card-description | str | Dataset card description: Free text shown at the top of the dataset card. | "" |
--pseudonymize-annotators | bool | Keep pseudonymous annotator IDs: Replace each annotator with a stable annotator-N ID, so agreement stays analyzable without revealing who annotated. Examples nobody annotated, like seeds or copies, get none. | False |
--meta-fields | List[str] | Meta fields to publish: Keys of each example's meta to include. Meta is dropped by default, since it can carry personal data. | None |
--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 |