recipe.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # DeepSeek-V4-Flash-Vision-Exp on 2× GB10 — aiden image, flag route.
  2. #
  3. # aidendle94/sparkrun-vllm-ds4-gb10:production-3.72-vision, TP2 over ds4.
  4. # His production 2x DSpark-6 profile translated to our launcher shape: his
  5. # own serve line (moe/linear b12x, B12X_MLA_SPARSE attention, fp8 KV, block
  6. # 256, DSpark-6 greedy, graphs FULL_AND_PIECEWISE) as plain flags — the
  7. # image's BAKED-IN entrypoint is his env-script (which doubles our tail args
  8. # if left in place), so the recipe sets entrypoint = ["vllm","serve"] and one
  9. # mods line, which makes the launcher wrap everything in `--entrypoint sh -c`
  10. # and exec our tail directly with the image's system vllm — which IS his
  11. # multimodal wheel (the dist-packages vllm here carries the DeepseekV4 vision
  12. # wrap; the earlier "not multimodal" 400s came from OUR overlay image, not
  13. # this one).
  14. #
  15. # Weights from the SHARED NAS HF cache (all 4 nodes mount nas.lan:/sna as
  16. # /mnt/nas; the repo's refs/main resolves offline). 2x reference: his 4x
  17. # DCP1 DSpark profile is 73.8-75.2 tok/s; 2x should sit below that.
  18. # Boot markers: "Model loading took ~82 GiB" → "GPU KV cache size" →
  19. # "Application startup complete". Smoke: 47*83 → 3901 + image_url ask.
  20. engine = "vllm"
  21. name = "DeepSeek V4 Flash Vision-Exp (aiden image, 2x Spark, DSpark-6)"
  22. docker_image = "aidendle94/sparkrun-vllm-ds4-gb10:production-3.72-vision"
  23. model = "deepseek-ai/DeepSeek-V4-Flash-Vision-Exp"
  24. required_nodes = 2
  25. tensor_parallel_size = 2
  26. pipeline_parallel_size = 1
  27. distributed_backend = "mp"
  28. shm_size = "32gb"
  29. # required for the launcher's `--entrypoint sh -c` override path (mods),
  30. # which also replaces the image's baked env-script entrypoint.
  31. entrypoint = ["vllm", "serve"]
  32. [mods]
  33. commands = [
  34. # (mods exist so the launcher takes the --entrypoint sh override path;
  35. # the pre-serve work — page-cache flush — is done host-side by before_serve)
  36. "true",
  37. ]
  38. args = [
  39. "--served-model-name", "deepseek-v4-vision",
  40. "--trust-remote-code",
  41. "--attention-backend", "B12X_MLA_SPARSE",
  42. "--moe-backend", "b12x",
  43. "--linear-backend", "b12x",
  44. "--kv-cache-dtype", "fp8",
  45. "--block-size", "256",
  46. "--gpu-memory-utilization", "0.80",
  47. "--kv-cache-memory-bytes", "12884901888",
  48. "--max-model-len", "393216",
  49. "--max-num-seqs", "8",
  50. "--max-num-batched-tokens", "8192",
  51. "--max-cudagraph-capture-size", "56",
  52. "--compilation-config", """
  53. '{"cudagraph_mode":"FULL_AND_PIECEWISE","custom_ops":["all"]}'""",
  54. "--async-scheduling",
  55. "--no-scheduler-reserve-full-isl",
  56. "--enable-chunked-prefill",
  57. "--enable-prefix-caching",
  58. "--tokenizer-mode", "deepseek_v4",
  59. "--tool-call-parser", "deepseek_v4",
  60. "--enable-auto-tool-choice",
  61. "--reasoning-parser", "deepseek_v4",
  62. "--reasoning-config", """
  63. '{"reasoning_parser":"deepseek_v4","reasoning_start_str":"","reasoning_end_str":""}'""",
  64. "--default-chat-template-kwargs", """
  65. '{"thinking":true}'""",
  66. "--speculative-config", """
  67. '{"method":"dspark","num_speculative_tokens":6,"draft_sample_method":"greedy"}'""",
  68. "--disable-chunked-mm-input",
  69. "--limit-mm-per-prompt", """
  70. '{"image":4}'""",
  71. ]
  72. [env]
  73. CUTE_DSL_ARCH = "sm_121a"
  74. VLLM_ENABLE_DSPARK = "1"
  75. VLLM_ENABLE_MTP = "0"
  76. NUM_SPECULATIVE_TOKENS = "6"
  77. DSPARK_DRAFT_SAMPLE_METHOD = "greedy"
  78. DSPARK_SPS_CURVE = "auto"
  79. VLLM_CUDAGRAPH_MODE = "FULL_AND_PIECEWISE"
  80. VISION_MHC = "1"
  81. MAX_CUDAGRAPH_CAPTURE_SIZE = "56"
  82. # (DCP prefill gather envs are DCP2-only; DCP1 here needs none)
  83. HF_HUB_OFFLINE = "1"
  84. TRANSFORMERS_OFFLINE = "1"
  85. VLLM_NO_USAGE_STATS = "1"