recipe.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. engine = "vllm"
  2. name = "DeepSeek V4 Flash (vLLM)"
  3. docker_image = "aidendle94/sparkrun-vllm-ds4-gb10:production-ready"
  4. model = "deepseek-ai/DeepSeek-V4-Flash"
  5. required_nodes = 2
  6. tensor_parallel_size = 2
  7. pipeline_parallel_size = 1
  8. distributed_backend = "mp"
  9. # DeepSeek V4 with 1M context needs much more shared memory than the
  10. # default 10g. KV cache + activations for 1M tokens fills up fast.
  11. shm_size = "64gb"
  12. args = [
  13. "--kv-cache-dtype", "fp8",
  14. "--block-size", "256",
  15. "--max-model-len", "1000000",
  16. "--max-num-seqs", "6",
  17. "--max-num-batched-tokens", "8192",
  18. "--gpu-memory-utilization", "0.82",
  19. "--enable-prefix-caching",
  20. "--speculative-config", """
  21. {"method":"mtp","num_speculative_tokens":2}""",
  22. "--tokenizer-mode", "deepseek_v4",
  23. "--tool-call-parser", "deepseek_v4",
  24. "--enable-auto-tool-choice",
  25. "--reasoning-parser", "deepseek_v4",
  26. "--reasoning-config", """
  27. {"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}""",
  28. "--default-chat-template-kwargs.thinking", "true",
  29. "--default-chat-template-kwargs.reasoning_effort", "high",
  30. "--enable-flashinfer-autotune",
  31. "--trust-remote-code",
  32. "--served-model-name", "deepseek-v4-flash",
  33. ]
  34. [env]
  35. # HuggingFace / cache config
  36. HF_HUB_OFFLINE = "0"
  37. VLLM_CACHE_ROOT = "/cache/huggingface/vllm-cache"
  38. # vLLM features for DeepSeek V4 on Blackwell (GB10 / sm_120)
  39. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  40. VLLM_USE_B12X_MOE = "1"
  41. VLLM_SPARSE_INDEXER_MAX_LOGITS_MB = "256"
  42. # Compile-time arch hints for PyTorch and FlashInfer on GB10
  43. TORCH_CUDA_ARCH_LIST = "12.1a"
  44. FLASHINFER_CUDA_ARCH_LIST = "12.1a"