Skip to content

How to specify which GPU to use in the config file #269

Answered by rmitsch
bpben asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bpben, in line with Hugging Face's transformers.pipeline you can include device=cuda:ID (e. g. device=cuda:0) in your models' config in config_init:

[components.llm.model]
@llm_models = "spacy.Dolly.v1"
name = "dolly-v2-3b"
config_init = {"device": "cuda:0"}

Replies: 1 comment 2 replies

Comment options

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

@rmitsch
Comment options

Answer selected by bpben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feat/model Feature: models usage How to use `spacy-llm`
2 participants