You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Expose Q4_0 as a KV Cache Dtype option in Studio UI #7244
The Studio web UI currently exposes these KV cache dtypes in Chat settings:
f16
bf16
q8_0
q5_1
q4_1
q4_0 is not available in the dropdown, even though backend logic appears to recognize/handle it in KV-related estimation/parsing paths.
Problem
Users who want to trade more quality for lower KV cache memory cannot select q4_0 from the UI, despite it being a known cache type in backend logic and tests.
This creates a UI/backend mismatch:
Backend/test paths include handling for q4_0
Frontend control does not expose q4_0
Evidence
Frontend dropdown currently hardcodes the available options (no q4_0):
Activity
zakirkg commentedon Jul 21, 2026
Hi, I have the same question about the KV Cache Dtype options exposed in Unsloth Studio.
The studio dropdown includes
But
studio/backend/core/inference/llama_cpp.pyalso includes these dtypes inside_valid_cache_types.These additional values are also handled by Studio’s KV-cache VRAM estimator.
Both the unsloth documentation (https://unsloth.ai/docs/models/tutorials/grok-2) and
llama.cpp documentation (https://github.com/ggml-org/llama.cpp/blob/master/tools/completion/README.md) list all nine as supported cache types.
Were q5_0, q4_0, iq4_nl, and f32 intentionally omitted to keep the UI limited to recommended choices particularly because the Unsloth documentation recommends the
_1variants or are they simply not surfaced in Studio yet?If the omission is not intentional, would a PR adding these options be welcome?
feat(studio): expose full KV cache dtype list in model config UI (uns…