Skip to content

Misc. bug: Model layer memory not split to multiple CUDA cards after release b9439 #24147

Description

@amv

Name and Version

$ build/bin/llama-cli --version
version: 9439 (22cadc1)
built with GNU 15.2.0 for Linux x86_64

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

$ build/bin/llama-server -m Qwen3.6-27B-MTP-UD-Q6_K_XL.gguf -ngl all -c 4096 -ts "10,10"

Problem description & steps to reproduce

I have 2 NVIDIA cards detected as CUDA0 and CUDA1.

On b9437 things work, and model layer memory is split to both cards according to --tensor-split.

After b9439 it detects and lists both CUDA cards, but all of the model is loaded on CUDA0.

I think the relevant PR was this: #23897

First Bad Commit

tags/b9439

Relevant log output

Logs
0.00.345.957 I device_info:
0.00.436.742 I   - CUDA0   : NVIDIA GeForce RTX 5070 Ti (15838 MiB, 58499 MiB free)
0.00.528.104 I   - CUDA1   : NVIDIA GeForce RTX 5070 Ti (15841 MiB, 58443 MiB free)
0.00.528.109 I   - CPU     : AMD Ryzen 7 7800X3D 8-Core Processor (62151 MiB, 62151 MiB free)
.....
0.02.473.647 E ggml_backend_cuda_buffer_type_alloc_buffer: allocating 23511.49 MiB on device 0: cudaMalloc failed: out of memory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions