I've run into a couple of bugs when using the new spacy train init CLI
init-fill on a config file downloaded from the quickstart widget produces an error:python -m spacy init fill-config base_config.cfg config.cfg
✘ Can't construct config: calling registry function
(build_text_classifier) failed
spacy.TextCatEnsemble.v1 build_text_classifier() missing 2 required positional arguments: 'pretrained_vectors' and 'dropout'
{'model': {'@architectures': 'spacy.TextCatEnsemble.v1', 'exclusive_classes': False, 'width': 64, 'conv_depth': 2, 'embed_size': 2000, 'window_size': 1, 'ngram_size': 1, 'nO': None}}
Here's what I put into the widget:

Here's the base config file I downloaded from the widget (added .txt so GitHub would accept the upload)
base_config.cfg.txt
However, creating this config locally from scratch works fine:
python -m spacy init config -p textcat -l en --optimize accuracy --cpu config.cfg
ℹ Generated template specific for your use case
- Language: en
- Pipeline: textcat
- Optimize for: accuracy
- Hardware: CPU
- Transformer: False
✔ Auto-filled config with all values
✔ Saved config
config.cfg
python -m spacy init config -p textcat -l en --optimize accuracy config_trf.cfg
ℹ Generated template specific for your use case
- Language: en
- Pipeline: textcat
- Optimize for: accuracy
- Hardware: GPU
- Transformer: roberta-base
✘ Config validation error
textcat.model.tok2vec -> pooling field required
Thanks for the report, looks like we forgot to re-deploy the docs when publishing the new nightly version 🤦♀️ (Need to remember this in the future!) I just triggered a new build, so the quickstart widget template should be updated in a few mins. (It uses the same template as init config under the hood.)
Great, the new base-config file fixed the first issue.
There's still the second bug that results from using the local init command rather than the quickstart base-config. Should I create a separate issue for that one? If you give me a :+1: I'll do that.
Yes, thanks, that may be the most clear ;-)
Most helpful comment
Thanks for the report, looks like we forgot to re-deploy the docs when publishing the new nightly version 🤦♀️ (Need to remember this in the future!) I just triggered a new build, so the quickstart widget template should be updated in a few mins. (It uses the same template as
init configunder the hood.)