Skip to content

0.2.4: on a multi-GPU machine the card name comes from NVML index 0 and ignores CUDA_VISIBLE_DEVICES; no way to pick the GPU #10

Closed

Description

@tingtang666-svg

What happened? / Что случилось?

Problem

  1. There is no setting to choose which NVIDIA card Speech Studio uses. local_backend only offers auto / gpu / cpu. On this machine the card I want is GPU 1.
  2. As a workaround I launch the studio with CUDA_DEVICE_ORDER=PCI_BUS_ID and CUDA_VISIBLE_DEVICES=1. CUDA then only sees the RTX, but the studio still reports the Quadro.

GET /setup/status returns this, launched with the variables above:

{
  "nvidia": true,
  "name": "Quadro P2000",
  "driverVersion": "582.99",
  "cudaDriver": "13.0",
  "compute": "12.0",
  "cuda13Ok": true,
  "minDriver": 580,
  "minCompute": "7.5"
}

The name belongs to one card and the compute capability to the other. Compute 12.0 is the RTX PRO 2000; the P2000 is 6.1. It looks like the name, and probably the memory size, are read through NVML by index 0. NVML does not honour CUDA_VISIBLE_DEVICES, but the CUDA driver API (cuDeviceGetAttribute) does.

Consequences

  • The UI shows the wrong card.
  • If the VRAM figure also comes from NVML index 0, the studio sees 4 GB instead of 16 GB. It would then recommend smaller model sets than the card can run, and refuse voices that need 6 GB or more, such as Drama 3.

Steps to reproduce / Как повторить

  1. Use a machine with two NVIDIA cards (nvidia-smi order):
    • GPU 0: Quadro P2000, 4 GB, compute 6.1
    • GPU 1: NVIDIA RTX PRO 2000 Blackwell, 16 GB, compute 12.0
  2. Launch Speech Studio with CUDA_DEVICE_ORDER=PCI_BUS_ID and CUDA_VISIBLE_DEVICES=1.
  3. Look at the card shown by the studio, or call GET /setup/status.

What did you expect? / Что ожидали?

Suggestions

  • Map the CUDA device to the NVML device by PCI bus ID or UUID, through cuDeviceGetPCIBusId or cuDeviceGetUuid and then nvmlDeviceGetHandleByPciBusId_v2 or nvmlDeviceGetHandleByUUID, instead of NVML index 0.
  • Add a GPU picker, like the one YuE2 Studio already has (engine_options.gpu). It sets CUDA_DEVICE_ORDER=PCI_BUS_ID and CUDA_VISIBLE_DEVICES=<index> for every engine process.

Thanks for the app!

Speech Studio version / Версия

0.2.4

System and package / Система и сборка

Windows — installer (.exe)

System version / Версия системы

Windows 11 Pro (10.0.26300)

Graphics card / Видеокарта

Quadro P2000 4 GB (GPU 0) + NVIDIA RTX PRO 2000 Blackwell 16 GB (GPU 1), driver 582.99, CUDA 13.0; Intel UHD Graphics 630 also present

Log / Лог

Screenshots or files / Скриншоты или файлы

No response

Activity

  1. added
    bug
    on Oct 22, 2026
  2. added a commit that references this issue on Oct 22, 2026
    20ac08e
  3. timoncool commented on Oct 22, 2026

    @timoncool
    Owner

    Fixed in the next version.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions