frank-default-small: KV K+V to f16, add verbosity tunable (F16 KV diag)

F16 K removes the flash-attn F16-conversion workspace (MMA_F16 prefill
kernel needs no copy when K is already f16). Trades static KV pool size
for the context-proportional workspace growth implicated in the
cublasSgemm_v2 crash class. VERBOSITY=4 run logs real allocation sizes;
refit CTX_SIZE if the pool does not fit on the 24 GiB 3090.
This commit is contained in:
Frank committed 2026-08-14 12:50:59 -07:00
1 parent bea52138d2
commit f70460b002
2 files changed
+12 -3

No files matched your search

+9 -2
View File
@@ -21,9 +21,16 @@ NGRAM_MOD_N_MATCH=24
# decode. Fixes the cuBLAS OOM crash class during big prefills.
N_CPU_MOE=36
N_GPU_LAYERS=all
# KV cache on GPU, K quantized to q8_0, V stays f16 (user-locked decision).
CACHE_TYPE_K=q8_0
# KV cache on GPU, both K and V at f16 (2026-08-14 diagnostic).
# F16 K removes the flash-attention F16-conversion workspace (the MMA_F16
# prefill kernel needs no copy when K is already f16), trading static pool
# size for the context-proportional workspace growth that caused the
# cublasSgemm_v2 crashes. Run with VERBOSITY=4 so the load log shows the
# real allocation sizes; refit CTX_SIZE if it does not fit.
CACHE_TYPE_K=f16
CACHE_TYPE_V=f16
# Diagnostic verbosity for this run; logs the KV/graph allocation sizes.
VERBOSITY=4
# Store SWA checkpoints in RAM to hold peak GPU memory down for the
# larger batch/ubatch (leaves headroom for ctx-checkpoints operation).
CTX_CHECKPOINTS=4