mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #51] Choosing a graphics card #28
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ivancheg8 on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/51
Currently, only GPU0 is being used. It is necessary to identify and select the graphics card to use. GPU0, GPU1...
My example: GPU0 – rtx4060, GPU1 – rtx5070.
I used "set CUDA_VISIBLE_DEVICES=1" to override the graphics card:
@echo off
set CUDA_VISIBLE_DEVICES=1
cd /d "F:\LLM\Strata-main\Strata-main"
".venv\Scripts\python.exe" serve\server.py --engine strata --config strata-iq3_xxs.json --port 8080 --open
pause
At the same time, GPU0 data is used for monitoring.
@itguy327 commented on GitHub (Sep 28, 2026):
+1, I tried setting the cuda visible and then running start-here.bat but it still insists on pointing at my 4060
@Niko1221 commented on GitHub (Sep 28, 2026):
Thanks - added in v0.1.17: setup lists every NVIDIA GPU and uses the one with the most VRAM (your 5070), or the one you pick with
START-HERE.bat --gpu 1(numbered asnvidia-smishows them). The engine and the image encoder getCUDA_VISIBLE_DEVICESwithCUDA_DEVICE_ORDER=PCI_BUS_ID, so the number means the same card everywhere (CUDA's default order is "fastest first" and can differ), and the Monitor now shows that card. For your install: runSTART-HERE.bat --setuponce (it saves the choice), or start withSTART-HERE.bat --gpu 1. Please reopen if it picks the wrong card.@itguy327 commented on GitHub (Sep 28, 2026):
Thank you