recipe.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. engine = "vllm"
  2. name = "DeepSeek V4 Flash (vLLM)"
  3. docker_image = "aidendle94/sparkrun-vllm-ds4-gb10:production-v2"
  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", "524288",
  17. "--max-num-seqs", "8",
  18. "--max-num-batched-tokens", "8192",
  19. "--enable-chunked-prefill",
  20. "--gpu-memory-utilization", "0.85",
  21. "--compilation-config", """
  22. '{"cudagraph_mode":"FULL_AND_PIECEWISE","custom_ops":["all"]}'""",
  23. "--enable-prefix-caching",
  24. "--load-format", "safetensors",
  25. "--speculative-config", """
  26. '{"method":"mtp","num_speculative_tokens":2}'""",
  27. "--tokenizer-mode", "deepseek_v4",
  28. "--tool-call-parser", "deepseek_v4",
  29. "--enable-auto-tool-choice",
  30. "--reasoning-parser", "deepseek_v4",
  31. "--reasoning-config", """
  32. '{"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}'""",
  33. "--default-chat-template-kwargs", """
  34. '{"thinking":true,"preserve_thinking":true}'""",
  35. "--default-chat-template-kwargs.reasoning_effort", "high",
  36. "--enable-flashinfer-autotune",
  37. "--trust-remote-code",
  38. "--served-model-name", "deepseek-v4-flash", "default",
  39. ]
  40. # --distributed-executor-backend mp
  41. [env]
  42. # Ray memory management — prevents OOM during cudagraph compilation
  43. RAY_memory_monitor_refresh_ms = "0"
  44. RAY_num_prestart_python_workers = "0"
  45. RAY_object_store_memory = "1073741824"
  46. # vLLM features for DeepSeek V4 on Blackwell (GB10 / sm_120)
  47. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  48. VLLM_USE_B12X_MOE = "1"
  49. VLLM_SPARSE_INDEXER_MAX_LOGITS_MB = "256"
  50. # Compile-time arch hints for PyTorch and FlashInfer on GB10
  51. TORCH_CUDA_ARCH_LIST = "12.1a"
  52. FLASHINFER_CUDA_ARCH_LIST = "12.1a"
  53. CUDA_HOME = "/opt/env/targets/sbsa-linux"
  54. FLASHINFER_DISABLE_VERSION_CHECK = "1"
  55. TILELANG_CLEANUP_TEMP_FILES = "1"
  56. DG_JIT_USE_NVRTC = "0"
  57. DG_JIT_PRINT_COMPILER_COMMAND = "1"
  58. VLLM_NCCL_SO_PATH = "/opt/env/lib/python3.12/site-packages/nvidia/nccl/lib/libnccl.so.2"
  59. HF_HUB_OFFLINE = "1"
  60. TRANSFORMERS_OFFLINE = "1"