# Trouble loading \`en\_core\_web\_lg\` as base model

**URL:** <https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008>\
**Category:** Uncategorized\
**Tags:** training\
**Created:** [October 4, 2022, 11:12pm UTC](https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008 "2022-10-04T23:12:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbjrobertson](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@cbjrobertson](https://support.prodi.gy/u/cbjrobertson)\
**Post date:** [October 4, 2022, 11:12pm UTC](https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008/1 "2022-10-04T23:12:01Z")

</div>

Hello, I am trying to train a model using the `en_core_web_lg` model as the `--base-model`.

Here is the code I am using:

```python
prodigy train new_model --textcat-multilabel annotated_tweets --eval-split 0.2 --base-model en_core_web_lg

```

I am using an Anaconda environment set up with the following commands:

```python
conda create -n prodigy python=3.10.4
conda activate test_env

pip install prodigy -f https://XXX-XXX-XXXX-XXX@download.prodi.gy

#I have tried both of the following to download the model (both seem to give the same error)
python -m spacy download en_core_web_lg
conda install -c conda-forge spacy-model-en_core_web_lg 

```

This is the error that I get:

```python
ℹ Using CPU

========================= Generating Prodigy config =========================
ℹ Auto-generating config with spaCy
ℹ Using config from base model
✔ Generated training config

=========================== Initializing pipeline ===========================
✘ Config validation error
Bad value substitution: option 'width' in section 'components.textcat_multilabel.model.tok2vec' contains an interpolation key 'components.tok2vec.model.encode.width' which is not a valid option name. Raw value: '${components.tok2vec.model.encode.width}'

```

I couldn't find much on the internet about this error, so I thought I'd ask if you have any ideas as to how to solve this. Any thoughts appreciated - thanks!

---

<div class="post-metadata">

**Author:** ![Jette16](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/jette16/32/3162_2.png) [@Jette16](https://support.prodi.gy/u/Jette16)\
**Post date:** [October 5, 2022, 3:07pm UTC](https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008/2 "2022-10-05T15:07:00Z")

</div>

Hello @cbjrobertson,

thank you for your question.  
It seems that you have a similar problem as described here: [Unable to train textcat model using en\_core\_web\_md as a base model](https://support.prodi.gy/t/unable-to-train-textcat-model-using-en-core-web-md-as-a-base-model/5953)  
The solution my colleague Vincent found was to use a spacy-config file as workaround, see: [Unable to train textcat model using en\_core\_web\_md as a base model - #4 by koaning](https://support.prodi.gy/t/unable-to-train-textcat-model-using-en-core-web-md-as-a-base-model/5953/4)  
For your problem, you would have to change the model from `en_core_web_md` to `en_core_web_lg`.

Can you try this out? Maybe this works for you too.

---

<div class="post-metadata">

**Author:** ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)\
**Post date:** [January 27, 2023, 3:04pm UTC](https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008/3 "2023-01-27T15:04:21Z")

</div>

I am working on a fix for this issue and am using this thread as my main method of communication:

[https://support.prodi.gy/t/unable-to-train-textcat-model-using-en-core-web-md-as-a-base-model/5953/9?u=koaning](https://support.prodi.gy/t/unable-to-train-textcat-model-using-en-core-web-md-as-a-base-model/5953/9)

---

<div class="post-metadata">

**Author:** ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)\
**Post date:** [May 2, 2023, 3:34pm UTC](https://support.prodi.gy/t/trouble-loading-en-core-web-lg-as-base-model/6008/4 "2023-05-02T15:34:51Z")

</div>

Just wanted to mention it here as well that we now have a fix for this issue. Details can be found on our changelog!

> **[Changelog · Prodigy · An annotation tool for AI, Machine Learning & NLP](https://prodi.gy/docs/changelog/)**
>
> A downloadable annotation tool for NLP and computer vision tasks such as named entity recognition, text classification, object detection, image segmentation, A/B evaluation and more.
