Skip to content

Need a CFG file that works for spacy v3 with webtrf to train a custom ner #10064

Discussion options

You must be logged in to vote

You're using a tok2vec and a transformer in the same pipeline, which is not necessary and probably causing weird things to happen. You should only have either a transformer or a tok2vec in a pipeline, not both.

You can source the transformer from the pretrained pipeline, see here for how to do that, though I would recommend just training from scratch using a GPU config from the quickstart.

Also, it looks like you either do not have a GPU or do not have it configured correctly. Note that training Transformers on CPU is possible but extremely slow and not recommended.

Replies: 7 comments 29 replies

Comment options

You must be logged in to vote
11 replies
@polm
Comment options

@badri-rutgers
Comment options

@badri-rutgers
Comment options

@polm
Comment options

@UplandsDynamic
Comment options

Answer selected by polm
Comment options

You must be logged in to vote
1 reply
@polm
Comment options

Comment options

You must be logged in to vote
1 reply
@polm
Comment options

Comment options

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

@badri-rutgers
Comment options

@badri-rutgers
Comment options

@badri-rutgers
Comment options

@polm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@badri-rutgers
Comment options

@badri-rutgers
Comment options

@polm
Comment options

@polm
Comment options

@badri-rutgers
Comment options

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 / transformer Feature: Transformer
3 participants