Skip to content

Studio: vision model tensor-parallel crash loop + MTP drafter VRAM not reserved on Windows #6415

Closed

Description

@LeoBorcherding

Reproducer: RTX 5050 (8 GB) + RTX 5070 Ti (16 GB), gemma-4-12b-it-GGUF UD-Q4_K_XL, 262k context, Windows.

Bug 1: tensor-parallel + mmproj crash loop on vision models

When auto-context selects two GPUs and tries --split-mode tensor, the current llama.cpp build asserts at warmup:

D:\a\llama.cpp\llama.cpp\src\ggml\src\ggml-backend-meta.cpp:541:
GGML_ASSERT(src_ss[0].axis != GGML_BACKEND_SPLIT_AXIS_0) failed

Studio retries 4 times (2 standard + 2 MTP-stripped) before falling back to layer split. Total load time: 76 seconds. Without the crash loop it loads in ~14 seconds.

Log sequence:

selected: [0, 1] at 156k ctx, --split-mode tensor
→ crash (try0): GGML_ASSERT ggml-backend-meta.cpp:541
→ crash (try1, --fit off): GGML_ASSERT
→ retry without MTP, crash (try0): GGML_ASSERT
→ retry without MTP, crash (try1, --fit off): GGML_ASSERT
→ tensor-parallel fallback → layer split → selected: [1] at 262k

Bug 2: MTP drafter VRAM not reserved in GPU selection on Windows

probe_server_capabilities throws an uncaught exception on the first call on some Windows builds (encoding / process startup timing). GPU selection catches it, sets _mtp_binary_ok=False, and leaves the probe cache empty. _build_speculative_flags then calls the probe on a warm process, succeeds, and launches the drafter anyway.

Result: drafter VRAM is consumed but never reserved in the budget. GPU selection under-counts total memory and picks one GPU instead of spreading across both.

Log evidence (upstream main, same session):

"GGUF size: 6.9 GB, mmproj: 0.2 GB, est. KV cache: 4.6 GB,
 context: 262144, GPUs free: [(0, 7755), (1, 14545)],
 selected: [1], fit: False"
← no MTP reserve in budget

"Using separate MTP drafter: ...mtp-gemma-4-12b-it.gguf"
"Spec decoding: draft-mtp (MTP-only)"
← drafter launched anyway, consuming unbudgeted VRAM
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions