[GH-ISSUE #51] Choosing a graphics card #28

Closed
opened 2026-11-04 01:39:09 +07:00 by bsakaguchi · 3 comments
Owner

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.

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.
Author
Owner

@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

<!-- gh-comment-id:5870920275 --> @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
Author
Owner

@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 as nvidia-smi shows them). The engine and the image encoder get CUDA_VISIBLE_DEVICES with CUDA_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: run START-HERE.bat --setup once (it saves the choice), or start with START-HERE.bat --gpu 1. Please reopen if it picks the wrong card.

<!-- gh-comment-id:5871077231 --> @Niko1221 commented on GitHub (Sep 28, 2026): Thanks - added in [v0.1.17](https://github.com/Niko1221/Strata/releases/tag/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 as `nvidia-smi` shows them). The engine and the image encoder get `CUDA_VISIBLE_DEVICES` with `CUDA_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: run `START-HERE.bat --setup` once (it saves the choice), or start with `START-HERE.bat --gpu 1`. Please reopen if it picks the wrong card.
Author
Owner

@itguy327 commented on GitHub (Sep 28, 2026):

Thank you

<!-- gh-comment-id:5871658899 --> @itguy327 commented on GitHub (Sep 28, 2026): 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
Niko1221/Strata#28
No description provided.