recipe.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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", """
  22. '{"method":"mtp","num_speculative_tokens":2}'""",
  23. "--tokenizer-mode", "deepseek_v4",
  24. "--tool-call-parser", "deepseek_v4",
  25. "--enable-auto-tool-choice",
  26. "--reasoning-parser", "deepseek_v4",
  27. "--reasoning-config", """
  28. '{"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}'""",
  29. "--default-chat-template-kwargs.thinking", "true",
  30. "--default-chat-template-kwargs.reasoning_effort", "high",
  31. "--enable-flashinfer-autotune",
  32. "--trust-remote-code",
  33. "--served-model-name", "deepseek-v4-flash", "default",
  34. ]
  35. [env]
  36. # HuggingFace / cache config
  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"
  45. CUDA_HOME = "/opt/env/targets/sbsa-linux"
  46. FLASHINFER_DISABLE_VERSION_CHECK = "1"
  47. TILELANG_CLEANUP_TEMP_FILES = "1"
  48. DG_JIT_USE_NVRTC = "0"
  49. DG_JIT_PRINT_COMPILER_COMMAND = "1"
  50. VLLM_NCCL_SO_PATH = "/opt/env/lib/python3.12/site-packages/nvidia/nccl/lib/libnccl.so.2"
  51. HF_HUB_OFFLINE = "1"
  52. TRANSFORMERS_OFFLINE = "1"