Skip to content
Discussion options

You must be logged in to vote

Whether the GPU is enabled during training is not stored in the config itself, since you might want to use the same config on machines with and without GPUs. There's a command-line flag for spacy train to select the GPU, e.g.:

python -m spacy train ./config.cfg --gpu-id 0

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by LarsNeR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu Using spaCy on GPU feat / cli Feature: Command-line interface
2 participants
Converted from issue

This discussion was converted from issue #7120 on February 19, 2021 09:17.