Attempt to change dimension 'nV' for model 'hashembed' from 2000 to 5000 #12424
-
|
I am trying to load my custom model from spacy amd I am running into this issue: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
I am sorry that you are running into this issue. How this could have happened is hard to tell. Could you give us a minimal reproducer that results in this error? |
Beta Was this translation helpful? Give feedback.
-
|
I took this as my training data Loaded the spacy model Created a training loop Saved the model
Loaded the model for predictions After running this I got the error as above. |
Beta Was this translation helpful? Give feedback.
-
|
@danieldk I tried this and it solves the issue |
Beta Was this translation helpful? Give feedback.
-
|
Using this I ran into this error: @danieldk Is there any way around this? |
Beta Was this translation helpful? Give feedback.
I am sorry that you are running into this issue.
nVis one of the dimensions used by theHashEmbedlayer. It is the number of vectors in the hash embedding table. The error message hints that the value fornVderived from the model configuration is not the same as the serialized model. You could check yourconfig.cfginside the model directory. One of the row sizes for the tok2vec embedder is probably 2000, whereas the model was trained with 5000:How this could have happened is hard to tell. Could you give us a minimal reproducer…