瀏覽代碼

Tune deepseek-v4-flash-eugr: prefill threshold, prefix cache, reasoning_effort=max

Alexander Korolev 2 月之前
父節點
當前提交
7f5a038adc
共有 1 個文件被更改,包括 5 次插入 和 2 次删除
  1. 5 2
      recipes/deepseek-v4-flash-eugr/recipe.toml

+ 5 - 2
recipes/deepseek-v4-flash-eugr/recipe.toml

@@ -54,7 +54,8 @@ args = [
     "--load-format", "instanttensor",
     "--max-model-len", "524288",
     "--max-num-seqs", "8",
-    "--max-num-batched-tokens", "8192",
+    "--max-num-batched-tokens", "4096",
+    "--long-prefill-token-threshold", "1024",
     "--max-cudagraph-capture-size", "64",
     # 0.78, not higher: the SvangenStudios agent-serving benchmark (v0.1.1) on
     # this exact stack found "0.80 boots but dies under traffic". GMU is a KV
@@ -89,7 +90,7 @@ args = [
     "--enable-auto-tool-choice",
     "--generation-config", "vllm",
     "--default-chat-template-kwargs.thinking=true",
-    "--default-chat-template-kwargs.reasoning_effort=high",
+    "--default-chat-template-kwargs.reasoning_effort=max",
     "--disable-custom-all-reduce",
     "--trust-remote-code",
 ]
@@ -118,6 +119,8 @@ VLLM_USE_V2_MODEL_RUNNER = "1"
 B12X_MLA_SM120_UNIFIED = "1"
 B12X_MOE_FORCE_A8 = "1"
 
+VLLM_PREFIX_CACHE_RETENTION_INTERVAL = "4096"
+
 # --- arch / memory / GPU isolation (operational on the sm121 cluster) ---
 TORCH_CUDA_ARCH_LIST = "12.1a"
 PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"