Skip to content

Multi-GPU isn't supported? #377

Open

Description

ggml_backend_cuda_init seems to be called with device 0 as a constant.
It then crashes with out of memory because it only has 8 GB, while another device contains 16.

Activity

  1. Green-Sky commented on Aug 28, 2024

    @Green-Sky
  2. the-crypt-keeper commented on Sep 4, 2024

    @the-crypt-keeper

    For the benefit of anyone who finds this issue: you can use CUDA_VISIBLE_DEVICES=x to force a different GPU to be "index 0", I am running successfully on 2 GPUs just have to load balance externally.

  3. evcharger commented on Sep 28, 2025

    @evcharger

    @the-crypt-keeper is there any way to make this work with multi-gpu on Vulkan?

  4. wbruna commented on Sep 28, 2025

    @wbruna
    Contributor

    @evcharger , The Vulkan equivalent is GGML_VK_VISIBLE_DEVICES; for instance, GGML_VK_VISIBLE_DEVICES=1 will make only the second card available to sd.cpp.

  5. atrejo3 commented on Oct 19, 2025

    @atrejo3

    I have mutliple GPUs, that only have enough VRAM together. Is there some way to load different layers on different cards? Or use one GPU but only have a small number of layers in RAM?

  6. Nurb4000 commented on Mar 17, 2026

    @Nurb4000

    Was this ever sorted out ? I have to 12G GPUs, one is not sufficient but if i could spread it across both its plenty ... Regular llama.ccp does this for LLM use.

  7. Qarqor5555555 commented on Apr 7, 2026

    @Qarqor5555555

    where this file

    CUDA_VISIBLE_DEVICES=x

  8. ayttop commented on Apr 11, 2026

    @ayttop
  9. ayttop commented on Apr 11, 2026

    @ayttop
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