[GH-ISSUE #18] [Question] Any way to use a second GPU #14

Closed
opened 2026-10-15 18:03:25 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @Manimap on GitHub (May 6, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/18

Hello,

I have my main gpu being totally used by loading a model, but I have a second gpu available locally : is it possible to ask the model to use the second gpu for all requests?
If it's possible, is it doable on windows?

Originally created by @Manimap on GitHub (May 6, 2023). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/18 Hello, I have my main gpu being totally used by loading a model, but I have a second gpu available locally : is it possible to ask the model to use the second gpu for all requests? If it's possible, is it doable on windows?
Author
Owner

@Cohee1207 commented on GitHub (May 6, 2023):

On line 134 of server.py, change the string of device from cuda:0 to cuda
Please keep in mind that some modules will not work with multi-GPU setup and require a device index. If you encounter it - hard code the device passed to the model initialization to cuda:0

<!-- gh-comment-id:1537242448 --> @Cohee1207 commented on GitHub (May 6, 2023): On line 134 of server.py, change the string of device from cuda:0 to cuda Please keep in mind that some modules will not work with multi-GPU setup and require a device index. If you encounter it - hard code the device passed to the model initialization to cuda:0
Author
Owner

@Manimap commented on GitHub (May 7, 2023):

Alright, I will try that, thank you.

<!-- gh-comment-id:1537419826 --> @Manimap commented on GitHub (May 7, 2023): Alright, I will try that, thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Extras#14
No description provided.