-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming modes forces cuda:0 #49
Comments
Another issue: if you use another cuda device (eg cuda:1) with deepspeed, the device isn't passed along to deepspeed which will try and use cuda:0 |
What I did to work around this was:
Don't set a specific device like
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two graphics cards in my system. cuda:0 is for LLM and I am trying to use cuda:1 for xtts. Without "--streaming-mode" or "--streaming-mode-improve" It will use CPU or CUDA:1 just fine, but if either is used it seems to be hard coded for cuda:0 for some reason? There are no errors to post, it works either way, but its causing slow LLM speeds from low vram. Here is how I am launching it:
(From pc, Windows, using venv)
"call venv\Scripts\activate
python -m xtts_api_server --streaming-mode-improve --stream-play-sync --device cuda:1"
Another proof it is being overridden is that this will give an error since I have no cuda:9:
"python -m xtts_api_server --device cuda:9", error "RuntimeError: CUDA error: invalid device ordinal"
But this runs with no error and runs on cuda:0 anyway.
"python -m xtts_api_server --streaming-mode-improve --stream-play-sync --device cuda:9"
I've read the "About Streaming mode" info link, so I hope I am not missing something.
I tried looking at the code, but I am not a python guy, but I found no obvious issue.
Thanks for any into or a fix!
The text was updated successfully, but these errors were encountered: