|
@@ -7,6 +7,7 @@
|
|
|
# The DSpark variant tuned for speculative decoding on DGX Spark.
|
|
# The DSpark variant tuned for speculative decoding on DGX Spark.
|
|
|
#
|
|
#
|
|
|
# Reference: Nvidia Developer Forum — DeepSeek-V4-Flash-DSpark recipe
|
|
# Reference: Nvidia Developer Forum — DeepSeek-V4-Flash-DSpark recipe
|
|
|
|
|
+# https://forums.developer.nvidia.com/t/recipe-deepseek-v4-flash-dspark-on-dgx-spark/340994
|
|
|
|
|
|
|
|
engine = "vllm"
|
|
engine = "vllm"
|
|
|
name = "DeepSeek V4 Flash DSpark (vLLM)"
|
|
name = "DeepSeek V4 Flash DSpark (vLLM)"
|
|
@@ -23,7 +24,8 @@ entrypoint = ["vllm", "serve"]
|
|
|
args = [
|
|
args = [
|
|
|
"--kv-cache-dtype", "fp8",
|
|
"--kv-cache-dtype", "fp8",
|
|
|
"--block-size", "256",
|
|
"--block-size", "256",
|
|
|
- "--max-model-len", "1048576",
|
|
|
|
|
|
|
+ "--load-format", "auto",
|
|
|
|
|
+ "--max-model-len", "524288",
|
|
|
"--max-num-seqs", "16",
|
|
"--max-num-seqs", "16",
|
|
|
"--max-num-batched-tokens", "16536",
|
|
"--max-num-batched-tokens", "16536",
|
|
|
"--max-cudagraph-capture-size", "16",
|
|
"--max-cudagraph-capture-size", "16",
|
|
@@ -43,8 +45,6 @@ args = [
|
|
|
"--async-scheduling",
|
|
"--async-scheduling",
|
|
|
"--no-scheduler-reserve-full-isl",
|
|
"--no-scheduler-reserve-full-isl",
|
|
|
# DSpark speculative decoding
|
|
# DSpark speculative decoding
|
|
|
-# "--speculative-config", """
|
|
|
|
|
-#'{"method":"dspark","num_speculative_tokens":5,"draft_sample_method":"probabilistic"}'""",
|
|
|
|
|
"--speculative-config", """
|
|
"--speculative-config", """
|
|
|
'{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'""",
|
|
'{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'""",
|
|
|
# Tokenizer / reasoning
|
|
# Tokenizer / reasoning
|
|
@@ -52,27 +52,20 @@ args = [
|
|
|
"--tool-call-parser", "deepseek_v4",
|
|
"--tool-call-parser", "deepseek_v4",
|
|
|
"--reasoning-parser", "deepseek_v4",
|
|
"--reasoning-parser", "deepseek_v4",
|
|
|
"--enable-auto-tool-choice",
|
|
"--enable-auto-tool-choice",
|
|
|
|
|
+ "--generation-config", "vllm",
|
|
|
"--default-chat-template-kwargs.thinking=true",
|
|
"--default-chat-template-kwargs.thinking=true",
|
|
|
- #"--default-chat-template-kwargs.reasoning_effort=max",
|
|
|
|
|
- # temp 0.4 norm
|
|
|
|
|
- "--override-generation-config", """
|
|
|
|
|
-'{"temperature": 0.4, "top_p": 1.0}'""",
|
|
|
|
|
"--default-chat-template-kwargs.reasoning_effort=high",
|
|
"--default-chat-template-kwargs.reasoning_effort=high",
|
|
|
|
|
+ "--default-chat-template-kwargs.temperature=0.48",
|
|
|
# Disable custom all-reduce (not needed on GB10 single-NIC)
|
|
# Disable custom all-reduce (not needed on GB10 single-NIC)
|
|
|
"--disable-custom-all-reduce",
|
|
"--disable-custom-all-reduce",
|
|
|
"--trust-remote-code",
|
|
"--trust-remote-code",
|
|
|
- # From model card
|
|
|
|
|
-# does not work with b12x MoE
|
|
|
|
|
-# "--attention-config", """
|
|
|
|
|
-#'{"use_fp4_indexer_cache": true}'""",
|
|
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
[env]
|
|
[env]
|
|
|
# DSpark speculative decoding
|
|
# DSpark speculative decoding
|
|
|
VLLM_DSPARK_REPLICATE_MARKOV_W1 = "1"
|
|
VLLM_DSPARK_REPLICATE_MARKOV_W1 = "1"
|
|
|
# b12x MoE (this image's primary path)
|
|
# b12x MoE (this image's primary path)
|
|
|
-# VLLM_USE_B12X_MOE = "1"
|
|
|
|
|
-VLLM_USE_B12X_MOE = "0" # cutlass decode
|
|
|
|
|
|
|
+VLLM_USE_B12X_MOE = "1"
|
|
|
|
|
|
|
|
# b12x suite = REQUIRED by this image
|
|
# b12x suite = REQUIRED by this image
|
|
|
VLLM_USE_B12X_MHC = "1"
|
|
VLLM_USE_B12X_MHC = "1"
|
|
@@ -103,6 +96,17 @@ HF_HUB_OFFLINE = "1"
|
|
|
TORCH_CUDA_ARCH_LIST = "12.1a"
|
|
TORCH_CUDA_ARCH_LIST = "12.1a"
|
|
|
|
|
|
|
|
# NCCL overrides (cluster config ib_hca/socket_ifname used for most; recipe wins last)
|
|
# NCCL overrides (cluster config ib_hca/socket_ifname used for most; recipe wins last)
|
|
|
-NCCL_P2P_LEVEL = "SYS"
|
|
|
|
|
|
|
+NCCL_P2P_LEVEL = "2"
|
|
|
NCCL_CUMEM_ENABLE = "0"
|
|
NCCL_CUMEM_ENABLE = "0"
|
|
|
|
|
+NCCL_IB_TIMEOUT = "24"
|
|
|
|
|
+NCCL_IB_QPS_PER_CONNECTION = "8"
|
|
|
|
|
+NCCL_BUFFERSIZE = "16777216"
|
|
|
|
|
+NCCL_SOCKET_FAMILY = "inet"
|
|
|
|
|
|
|
|
|
|
+# PCIe allreduce not needed on GB10 single-NIC
|
|
|
|
|
+VLLM_ENABLE_PCIE_ALLREDUCE = "0"
|
|
|
|
|
+VLLM_PCIE_ALLREDUCE_BACKEND = "cpp"
|
|
|
|
|
+
|
|
|
|
|
+# GPU device isolation (single GPU per node)
|
|
|
|
|
+CUDA_VISIBLE_DEVICES = "0"
|
|
|
|
|
+CUDA_DEVICE_ORDER = "PCI_BUS_ID"
|