Skip to content

Choosing a graphics card #51

Closed
Closed

Description

@ivancheg8

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.

Activity

  1. itguy327 commented on Sep 28, 2026

    @itguy327

    +1, I tried setting the cuda visible and then running start-here.bat but it still insists on pointing at my 4060

  2. added a commit that references this issue on Sep 28, 2026
  3. Niko1221 commented on Sep 28, 2026

    @Niko1221
    Owner

    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.

  4. itguy327 commented on Sep 28, 2026

    @itguy327

    Thank you

  5. added a commit that references this issue on Oct 3, 2026
  6. added a commit that references this issue on Oct 6, 2026
  7. added a commit that references this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions