Skip to content

Attempt to change dimension 'nV' for model 'hashembed' from 2000 to 5000 #12424

Discussion options

You must be logged in to vote

I am sorry that you are running into this issue. nV is one of the dimensions used by the HashEmbed layer. It is the number of vectors in the hash embedding table. The error message hints that the value for nV derived from the model configuration is not the same as the serialized model. You could check your config.cfg inside the model directory. One of the row sizes for the tok2vec embedder is probably 2000, whereas the model was trained with 5000:

[components.senter.model.tok2vec.embed]
@architectures = "spacy.MultiHashEmbed.v2"
# One or more of these is probably set to 2000:
rows = [1000,500,500,500,50]

How this could have happened is hard to tell. Could you give us a minimal reproducer…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Comment options

You must be logged in to vote
3 replies
@danieldk
Comment options

@danieldk
Comment options

@vrunm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@danieldk
Comment options

@vrunm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / pipeline Feature: Processing pipeline and components
2 participants