Train a spaCy pipeline with a curated transformer (GPU)
train_curated_transformer · Built-in action recipeTrain a spaCy pipeline using spacy-curated-transformers for GPU-accelerated training and inference, loading BERT, RoBERTa, CamemBERT or XLM-RoBERTa weights from a Hugging Face checkpoint.
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 Train a spaCy pipeline with a curated transformer (GPU) recipe (train_curated_transformer) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Train a spaCy pipeline with a curated transformer (GPU) recipe under Training.
- Fill in the form – you'll need to provide Components to train, Hugging Face model name, Transformer architecture and Output settings. 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 train_curated_transformer --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--data.ner | bool | Named Entity Recognition datasets: Annotated data for the different components to train. | None |
--ner.train | List[str] | Training datasets (Datasets) | None |
--ner.train-asset | List[str] | Training datasets (Assets) | None |
--ner.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--ner.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.spancat | bool | Span Categorizer datasets: Annotated data for the different components to train. | None |
--spancat.train | List[str] | Training datasets (Datasets) | None |
--spancat.train-asset | List[str] | Training datasets (Assets) | None |
--spancat.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--spancat.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.textcat | bool | Text Classifier (exclusive categories) datasets: Annotated data for the different components to train. | None |
--textcat.train | List[str] | Training datasets (Datasets) | None |
--textcat.train-asset | List[str] | Training datasets (Assets) | None |
--textcat.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--textcat.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.textcat-multilabel | bool | Text Classifier (non-exclusive categories) datasets: Annotated data for the different components to train. | None |
--textcat-multilabel.train | List[str] | Training datasets (Datasets) | None |
--textcat-multilabel.train-asset | List[str] | Training datasets (Assets) | None |
--textcat-multilabel.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--textcat-multilabel.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.tagger | bool | Part-of-Speech Tagger datasets: Annotated data for the different components to train. | None |
--tagger.train | List[str] | Training datasets (Datasets) | None |
--tagger.train-asset | List[str] | Training datasets (Assets) | None |
--tagger.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--tagger.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.parser | bool | Dependency Parser datasets: Annotated data for the different components to train. | None |
--parser.train | List[str] | Training datasets (Datasets) | None |
--parser.train-asset | List[str] | Training datasets (Assets) | None |
--parser.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--parser.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.senter | bool | Sentence Segmenter datasets: Annotated data for the different components to train. | None |
--senter.train | List[str] | Training datasets (Datasets) | None |
--senter.train-asset | List[str] | Training datasets (Assets) | None |
--senter.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--senter.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.coref | bool | Coreference Resolution datasets: Annotated data for the different components to train. | None |
--coref.train | List[str] | Training datasets (Datasets) | None |
--coref.train-asset | List[str] | Training datasets (Assets) | None |
--coref.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--coref.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--hf-model-name | str | Hugging Face model name: Model name on the Hugging Face Hub, e.g. roberta-base, bert-base-cased or xlm-roberta-base. | |
--hf-model-type | str | Transformer architecture: Model family of the Hugging Face checkpoint, which decides the spacy-curated-transformers architecture and tokenizer.Available: bert, roberta, camembert, xlm-roberta | |
--hf-model-revision | str | Hugging Face model revision: Branch or commit to load. Defaults to main. | "main" |
--hf-token | str | Hugging Face token: Your own HF token, stored as an Ellf secret. Only needed for gated or private checkpoints. | None |
--lang | str | Language: Language of the pipeline.Available: af, am, ar, az, bg, bn, bo, ca, cs, da, de, dsb, el, en, es, et, eu, fa, fi, fo, fr, ga, gd, grc, gu, he, hi, hr, hsb, ht, hu, hy, id, is, it, ja, kmr, kn, ko, ky, la, lb, lg, lij, lt, lv, mk, ml, mr, ms, nb, ne, nl, nn, pl, pt, ro, ru, sa, si, sk, sl, sq, sr, sv, ta, te, th, ti, tl, tn, tr, tt, uk, ur, vi, xx, yo, zh | "en" |
--output.skip | bool | Skip saving outputs: If checked, no Model or Results asset will be registered. Use only for diagnostic runs you don't need to keep. | False |
--output.name | str | Output model name: Asset name registered in Ellf for the model. The Results asset is registered under <name>.results. | "" |
--output.path | str | Model path: Where to upload the model. Leave empty to use {__nfs__}/models/<name>/<version>. Use a path alias like {__nfs__}/models/<name> or an absolute path, not a relative one. | "" |
--output.version | str | Version: Semantic version applied to both the Model and Results assets. | "0.1.0" |
--eval-split | float | Evaluation split: Portion of examples to hold back for evaluation if no dedicated evaluation datasets are provided for a component. | 0.2 |
--gpu-id | int | GPU device ID: Use 0 for the first GPU. | 0 |
--label-stats | bool | Show per-label scores | False |
--verbose | bool | Enable verbose logging | False |
--config-overrides | List[str] | Config overrides: Override config values for training. | 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 |