recipe.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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", "1048576",
  16. "--max-num-seqs", "6",
  17. "--max-num-batched-tokens", "8192",
  18. "--gpu-memory-utilization", "0.82",
  19. "--enable-prefix-caching",
  20. "--speculative-config", '{"method":"mtp","num_speculative_tokens":2}',
  21. "--tokenizer-mode", "deepseek_v4",
  22. "--tool-call-parser", "deepseek_v4",
  23. "--enable-auto-tool-choice",
  24. "--reasoning-parser", "deepseek_v4",
  25. "--reasoning-config", '{"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}',
  26. "--default-chat-template-kwargs.thinking", "true",
  27. "--default-chat-template-kwargs.reasoning_effort", "high",
  28. "--enable-flashinfer-autotune",
  29. "--trust-remote-code",
  30. "--served-model-name", "deepseek-v4-flash", "default",
  31. ]
  32. [env]
  33. # HuggingFace / cache config
  34. HF_HUB_OFFLINE = "0"
  35. VLLM_CACHE_ROOT = "/cache/huggingface/vllm-cache"
  36. # vLLM features for DeepSeek V4 on Blackwell (GB10 / sm_120)
  37. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  38. VLLM_USE_B12X_MOE = "1"
  39. VLLM_SPARSE_INDEXER_MAX_LOGITS_MB = "256"
  40. # Compile-time arch hints for PyTorch and FlashInfer on GB10
  41. TORCH_CUDA_ARCH_LIST = "12.1a"
  42. FLASHINFER_CUDA_ARCH_LIST = "12.1a"