recipe.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # MiMo-V2.6-Flash-MOPD on 4x DGX Spark via vLLM + B12X — the engine A/B twin
  2. # of mimo26-flash-mopd-4x (SGLang). No new image: r39 already carries the
  3. # fork's MiMo-V2 integration (mimo_v2.py; SWA+DFlash PR #46104 merged into
  4. # the lab fork main 2026-07-01, present at the 9e5d1793 tag), so this lane
  5. # boots the SAME engine lineage our GLM-5.3 r39 lanes run — only the model
  6. # and the launch policy differ.
  7. #
  8. # Launch policy mirrors local-inference-lab's lil-catalog MiMo manifests
  9. # (MiMo-V2.6-Flash-RL TP4 qualified on SM120; Pro-MOPD TP8 with the DFlash
  10. # `dflash/` subfolder draft, BF16 draft weights, b12x noncausal sliding
  11. # attention). Deviations: GMU 0.88 -> 0.84 (operator call, GB10 UMA guard),
  12. # TP8 -> TP4 (our 4-node lane).
  13. #
  14. # What we are testing:
  15. # * B12X attention long-context path on 192/128 GQA (the sglang-triton
  16. # lane decodes at 30% of d0 at 256K; the lab's vLLM stack has the
  17. # split-KV verify fix that fixed exactly this on their boxes).
  18. # * BF16 KV @ GMU 0.84 (their cache policy — fp8 KV skipped on both stacks).
  19. # * DFlash via vLLM speculative-config (method dflash, draft from the
  20. # checkpoint's dflash/ subfolder, 7 draft tokens) vs sglang's DFlash.
  21. #
  22. # Status: first boot under qualification; the lab marks their MiMo DFlash
  23. # "implemented; runtime qualification unverified", same caveat here.
  24. engine = "vllm"
  25. name = "MiMo-V2.6-Flash-MOPD (vLLM B12X, 4x Spark, DFlash-7, r39)"
  26. docker_image = "jovian-judgement:r39-glm53"
  27. entrypoint = ["vllm", "serve"]
  28. model = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  29. parent_model = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  30. port = 30000
  31. required_nodes = 4
  32. tensor_parallel_size = 4
  33. pipeline_parallel_size = 1
  34. distributed_backend = "mp"
  35. shm_size = "32gb"
  36. args = [
  37. "--served-model-name", "mimo-v2.6-flash",
  38. "--trust-remote-code",
  39. "--distributed-executor-backend", "mp",
  40. # Operator GMU (0.88 -> 0.84 for this first vLLM MiMo boot); their
  41. # manifest's 0.98 is RTX PRO 6000 territory, not GB10 UMA.
  42. "--gpu-memory-utilization", "0.84",
  43. "--block-size", "128",
  44. "--max-model-len", "524288",
  45. "--max-num-seqs", "4",
  46. "--max-num-batched-tokens", "4096",
  47. "--enable-chunked-prefill",
  48. "--async-scheduling",
  49. "--enable-prefix-caching",
  50. # B12X attention (lab-qualified on MiMo's 192/128 heads) + their kernel
  51. # config: no flashinfer autotune, no CuTe-DSL warmup.
  52. "--attention-backend", "B12X",
  53. "--load-format", "instanttensor",
  54. "--kernel-config", """
  55. '{"enable_cutedsl_warmup":false,"enable_flashinfer_autotune":false}'""",
  56. # DFlash draft from the checkpoint's dflash/ subfolder (7 tokens, B12X
  57. # draft attention) — the vLLM mirror of the sglang lane's DFLASH flags.
  58. "--speculative-config", """
  59. '{"method":"dflash","model":"{{dflash}}","num_speculative_tokens":7,"attention_backend":"B12X"}'""",
  60. "--language-model-only",
  61. "--reasoning-parser", "mimo",
  62. "--tool-call-parser", "mimo",
  63. "--enable-auto-tool-choice",
  64. "--generation-config", "vllm",
  65. ]
  66. # DFlash draft weights: a subfolder of the main model repo, resolved per node
  67. # (same mount as the sglang lane; {{dflash}} in the speculative config).
  68. [[extra_mounts]]
  69. repo = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  70. subfolder = "dflash"
  71. container = "dflash"
  72. # JIT caches: same per-node dirs the GLM r39 lane warms (b12x/flashinfer/
  73. # torchinductor/vllm), so this lane boots JIT-warm off day zero.
  74. [[extra_mounts]]
  75. host = "~/sm121-cache/glm53-jit-121f/b12x"
  76. container = "/root/.cache/b12x"
  77. [[extra_mounts]]
  78. host = "~/sm121-cache/jit-121f/flashinfer"
  79. container = "/root/.cache/flashinfer"
  80. [[extra_mounts]]
  81. host = "~/sm121-cache/jit-121f/torchinductor"
  82. container = "/root/.cache/torchinductor"
  83. [[extra_mounts]]
  84. host = "~/sm121-cache/jit-121f/vllm"
  85. container = "/root/.cache/vllm"
  86. [env]
  87. HF_HUB_OFFLINE = "1"
  88. VLLM_ENABLE_ROCE_ALLREDUCE = "1"
  89. MAX_JOBS = "2"
  90. VLLM_ENGINE_READY_TIMEOUT_S = "3600"
  91. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  92. VLLM_USE_AOT_COMPILE = "0"
  93. VLLM_USE_STANDALONE_COMPILE = "1"
  94. VLLM_USE_FLASHINFER_SAMPLER = "1"
  95. VLLM_USE_BREAKABLE_CUDAGRAPH = "0"
  96. TORCH_USE_RTLD_GLOBAL = "1"
  97. VLLM_NO_USAGE_STATS = "1"
  98. TORCH_CUDA_ARCH_LIST = "12.1a"
  99. FLASHINFER_CUDA_ARCH_LIST = "12.1f"
  100. CUTE_DSL_ARCH = "sm_121a"
  101. CMAKE_CUDA_ARCHITECTURES = "121"
  102. OMP_NUM_THREADS = "2"