[Bugfix] Reject mismatched float16/bfloat16 KV cache dtype (#60885)

Signed-off-by: cipheraxat <cipheraxat@users.noreply.github.com>
Co-authored-by: cipheraxat <cipheraxat@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Akshat Anand
2026-10-15 08:06:59 +00:00
committed by GitHub
co-authored by cipheraxat Claude Opus 5.5
parent fc8e08a2a6
commit 48f17b77bb
3 changed files with 42 additions and 0 deletions
+1
View File
@@ -121,6 +121,7 @@ class CacheConfig:
cache_dtype: CacheDType = "auto"
"""Data type for kv cache storage. If "auto", will use model data type.
An explicit float16 or bfloat16 must match the model data type.
CUDA 11.8+ supports fp8 (=fp8_e4m3) and fp8_e5m2. ROCm (AMD GPU) supports
fp8 (=fp8_e4m3). Intel Gaudi (HPU) supports fp8 (using fp8_inc).
Some models (namely DeepSeekV3.2) default to fp8, set to bfloat16 to use