Apply a spacy-curated-transformers model (GPU)
apply_curated_transformer · Built-in action recipeRun inference with a trained spacy-curated-transformers model over an input dataset or asset, writing predictions to an output dataset.
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 Apply a spacy-curated-transformers model (GPU) recipe (apply_curated_transformer) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Apply a spacy-curated-transformers model (GPU) recipe under Data.
- Fill in the form – you'll need to provide Trained spaCy model, Input data and Output dataset. 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 apply_curated_transformer --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--model | str | Trained spaCy model: Model produced by train_curated_transformer. | |
--input-input | str | Input asset: Data uploaded to your cluster, e.g. a JSONL file.One option for Input data | None |
--input-input-dataset | str | Dataset: Examples already saved in a dataset.One option for Input data | None |
--output-dataset | str | Output dataset: Name of the dataset to write the predictions to. | |
--gpu-id | int | GPU device ID: Use 0 for the first GPU. | 0 |
--batch-size | int | Batch size: Texts per inference batch. | 32 |
--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 |