Skip to content

Studio drops quantized KV cache when tensor parallelism is enabled #8888

Closed

Description

@kim-haneol

Hi,

Studio currently removes quantized KV cache settings such as q8_0 when tensor parallelism is enabled:

https://github.com/unslothai/unsloth/blob/main/studio/backend/core/inference/llama_cpp.py#L6928-L6930

This appears to be based on an older llama.cpp limitation. llama.cpp added support for tensor parallelism with quantized KV cache in PR #23792, included since b9455:

ggml-org/llama.cpp#23792

I tested the following combination successfully with a recent llama.cpp master build:

  • Qwen3.6-27B-MTP-GGUF, Q5_K_S
  • 2× RTX 5080
  • --split-mode tensor
  • --cache-type-k q8_0
  • --cache-type-v q8_0
  • --spec-type draft-mtp
  • 131072 context

The model loaded successfully and generated responses with MTP active.

Could Studio allow quantized KV cache in tensor mode for current managed prebuilts? The existing tensor-to-layer fallback could remain for older or custom llama.cpp binaries.

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