Skip to content
Discussion options

You must be logged in to vote

Hi!

When I tried to update modelA with new dataset, I freeze tok2vec and I got ValueError: [E954] The Tok2Vec listener did not receive any valid input from an upstream component.

If you have a tok2vec component in the pipeline that you want to freeze but you also want to continue training other components on top of it, then you should add this tok2vec component to the annotating_components section in your config:

[training]
annotating_components = ["tok2vec"]

This will basically ensure that the component runs during training but isn't backpropagated into - i.e. it won't update as long as it's (also) in the frozen components list.

However, I did not get this error when I updated a pre-…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@umayerr
Comment options

@svlandeg
Comment options

@svlandeg
Comment options

@umayerr
Comment options

@svlandeg
Comment options

Answer selected by umayerr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
training Training and updating models feat / tok2vec Feature: Token-to-vector layer and pretraining
2 participants