# Trained model not working on new dataset

**URL:** <https://support.prodi.gy/t/trained-model-not-working-on-new-dataset/6057>\
**Category:** Uncategorized\
**Tags:** ner\
**Created:** [October 28, 2022, 3:52pm UTC](https://support.prodi.gy/t/trained-model-not-working-on-new-dataset/6057 "2022-10-28T15:52:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [October 28, 2022, 9:12pm UTC](https://support.prodi.gy/t/trained-model-not-working-on-new-dataset/6057/4 "2022-10-28T21:12:27Z")

</div>

> [@WKamptner](#):
>
> To move the model over, we just ssh'd from the Datascience machine to the Analyst machine and recursively copied over specific folders. Is there any chance that, say, a hidden folder may contain important information?

Not that I'm aware.

In theory moving the full folder for the spaCy pipeline should work on any machine. What's weird though is if some file was missed when loading the model, you'd get more of an error than just `Killed`.

For example, this shows what happens if there's a problem with the `meta.json` file in a spaCy pipeline:

> [@Issue with exported spacy models](https://support.prodi.gy/t/issue-with-exported-spacy-models/999/):
>
> Hi, Following the ‘First steps’, I created the model, and created the spacy package from it, then install the model and linked to custom name. However, when trying to load with spacy.load(), or use it as a basis for ner.make-gold, I receive following error message (it depends on the language model used for training): OSError: [E050] Can’t find model ‘en\_core\_web\_lg.vectors’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory. However, after loading th…

Can you check if your "Datascientist" machine is running into [any memory problems](https://phoenixnap.com/kb/linux-commands-check-memory-usage)?

> [@Prodigy NER train recipe getting killed for no apparent reason](https://support.prodi.gy/t/prodigy-ner-train-recipe-getting-killed-for-no-apparent-reason/5714/3):
>
> Hello @koaning , I got to realize a couple of things: [data-to-spacy](https://prodi.gy/docs/recipes#data-to-spacy) managed to build the .spacy files required for training in spaCy. When training the model however, I faced up again that Killed message. Having the .spacy files already generated however, I decided to move to another cloud-based VM, with more computational resources in regards of memory this time... And the training completed successfully. That indirectly explains the root cause of my issue. Still, it would be awesome to h…

If not, on the "Datascientist" machine, let's forget Prodigy for a second and see if you can load/run a sample sentence:

```python
import spacy
nlp = spacy.load("path/to/pipeline")
doc = nlp("This is a sample sentence")

# confirm you can run your model on the Datascientist machine
for entity in doc.ents:
    print(entity.text, entity.label_)

```

> [@WKamptner](#):
>
> The only other thing I can imagine is that the Datascience Machine has a dedicated GPU on it that was used for training, though I was told that the gpu was not necessary for the model they were using.

GPU could be another factor! Were they used to train the model and/or did you use `spacy-transformers` anywhere in your workflow?

GPU's can yield more accurate models but can also be trickier to handle. Here's a FAQ on GPU's in spaCy.

> **[GPU Support Troubleshooting FAQ · explosion/spaCy · Discussion #11436](https://github.com/explosion/spaCy/discussions/11436)**
>
> GPU libraries are developed at a rapid pace, and with a number of versions available it can be hard to get a functioning environment. This FAQ post covers common questions and issues related to get...

---

_[View the full topic](https://support.prodi.gy/t/trained-model-not-working-on-new-dataset/6057)._
