recipe.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. entrypoint = ["vllm", "serve"]
  13. args = [
  14. "--kv-cache-dtype", "fp8",
  15. "--block-size", "256",
  16. "--max-model-len", "1048576",
  17. "--max-num-seqs", "6",
  18. "--max-num-batched-tokens", "8192",
  19. "--gpu-memory-utilization", "0.82",
  20. "--enable-prefix-caching",
  21. "--speculative-config", '{"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", '{"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}',
  27. "--default-chat-template-kwargs.thinking", "true",
  28. "--default-chat-template-kwargs.reasoning_effort", "high",
  29. "--enable-flashinfer-autotune",
  30. "--trust-remote-code",
  31. "--served-model-name", "deepseek-v4-flash", "default",
  32. ]
  33. [env]
  34. # HuggingFace / cache config
  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"
  43. CUDA_HOME = "/opt/env/targets/sbsa-linux"
  44. FLASHINFER_DISABLE_VERSION_CHECK = "1"
  45. TILELANG_CLEANUP_TEMP_FILES = "1"
  46. DG_JIT_USE_NVRTC = "0"
  47. DG_JIT_PRINT_COMPILER_COMMAND = "1"
  48. VLLM_NCCL_SO_PATH = "/opt/env/lib/python3.12/site-packages/nvidia/nccl/lib/libnccl.so.2"
  49. HF_HUB_OFFLINE = "1"
  50. TRANSFORMERS_OFFLINE = "1"