recipe.toml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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: PARKED — dead end on r39 (2026-09-28). Four boot attempts, each one
  23. # layer deeper: (1) EAGLE3 hook raised on the Omni wrapper — fixed by the
  24. # image's inner-language-model patch; (2) B12X rejects the draft's non-causal
  25. # attention — draft moved to TRITON_ATTN; (3) qwen3_dflash hard-imports
  26. # ModelOptMxFp8LinearMethod that r39's modelopt doesn't ship — patched to be
  27. # None-tolerant; (4) FATAL: KV-layout validator refuses the MiMo hybrid stack
  28. # (SWA-128 + GA layers, mixed page sizes 131072/163840) because b12x declares
  29. # LBNHC only and the check is backend-declared, not env-fixable. r39 was
  30. # qualified for GLM-5.3, never for MiMo; lil-catalog itself marks their MiMo
  31. # DFlash "runtime qualification unverified". Reopening recipe + external
  32. # intel (madeby561 amd64-only rc4, eugr spark-vllm-b12x nightlies, lil-catalog
  33. # flags): specs/bugs/BUG-2026-09-28-vllm-mimo-dflash-parked.md.
  34. #
  35. # REOPENED 2026-09-28 same evening: the eugr/spark-vllm-b12x nightly (source
  36. # local-inference-lab/vllm@dev/karmic-kraken) landed all four missing pieces
  37. # on 2026-09-22 — MiMo aux-state loading, block-outermost KV layouts for
  38. # mixed page sizes, b12x non-causal attention (so the DFlash draft runs B12X
  39. # too), and the eagle3 language-model unwrap. It also ships cached
  40. # serve-launchers (serve-mimo26-flash.sh) that define the canonical MiMo
  41. # flag set; we mirror them. No local image build: docker_image is the
  42. # nightly tag, distributed to nodes by save/load.
  43. engine = "vllm"
  44. name = "MiMo-V2.6-Flash-MOPD (vLLM B12X, 4x Spark, DFlash-7, b12x-nightly)"
  45. docker_image = "eugr/spark-vllm-b12x:latest"
  46. entrypoint = ["vllm", "serve"]
  47. model = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  48. parent_model = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  49. port = 30000
  50. required_nodes = 4
  51. tensor_parallel_size = 4
  52. pipeline_parallel_size = 1
  53. distributed_backend = "mp"
  54. shm_size = "32gb"
  55. args = [
  56. "--served-model-name", "mimo-v2.6-flash",
  57. "--trust-remote-code",
  58. "--distributed-executor-backend", "mp",
  59. # Operator GMU (0.88 -> 0.84 for this first vLLM MiMo boot); their
  60. # manifest's 0.98 is RTX PRO 6000 territory, not GB10 UMA.
  61. "--gpu-memory-utilization", "0.84",
  62. "--block-size", "128",
  63. "--max-model-len", "524288",
  64. "--max-num-seqs", "4",
  65. "--max-num-batched-tokens", "4096",
  66. "--enable-chunked-prefill",
  67. "--async-scheduling",
  68. "--enable-prefix-caching",
  69. # B12X attention (lab-qualified on MiMo's 192/128 heads; non-causal now
  70. # supported by the nightly's b12x — the DFlash draft runs on B12X too).
  71. "--attention-backend", "B12X",
  72. # Mirror of the lab's serve-mimo26-flash.sh: b12x linear + MoE backends.
  73. "--linear-backend", "b12x",
  74. "--moe-backend", "b12x",
  75. "--load-format", "instanttensor",
  76. "--kernel-config", """
  77. '{"enable_cutedsl_warmup":false,"enable_flashinfer_autotune":false}'""",
  78. # DFlash draft from the checkpoint's dflash/ subfolder (7 tokens). The
  79. # karmic-kraken b12x supports non-causal attention, so the draft runs
  80. # B12X as well (the TRITON_ATTN workaround was only needed on r39).
  81. "--speculative-config", """
  82. '{"method":"dflash","model":"{{dflash}}","num_speculative_tokens":7,"attention_backend":"B12X"}'""",
  83. # Nightly resolves the Omni wrapper's eagle3 hook on the inner language
  84. # model natively (no image patch needed); --language-model-only keeps
  85. # the visual/audio towers out of the memory budget.
  86. "--language-model-only",
  87. "--reasoning-parser", "mimo",
  88. "--tool-call-parser", "mimo",
  89. "--enable-auto-tool-choice",
  90. "--generation-config", "vllm",
  91. ]
  92. # DFlash draft weights: a subfolder of the main model repo, resolved per node
  93. # (same mount as the sglang lane; {{dflash}} in the speculative config).
  94. [[extra_mounts]]
  95. repo = "XiaomiMiMo/MiMo-V2.6-Flash-MOPD"
  96. subfolder = "dflash"
  97. container = "dflash"
  98. # JIT caches: same per-node dirs the GLM r39 lane warms (b12x/flashinfer/
  99. # torchinductor/vllm), so this lane boots JIT-warm off day zero.
  100. [[extra_mounts]]
  101. host = "~/sm121-cache/glm53-jit-121f/b12x"
  102. container = "/root/.cache/b12x"
  103. [[extra_mounts]]
  104. host = "~/sm121-cache/jit-121f/flashinfer"
  105. container = "/root/.cache/flashinfer"
  106. [[extra_mounts]]
  107. host = "~/sm121-cache/jit-121f/torchinductor"
  108. container = "/root/.cache/torchinductor"
  109. [[extra_mounts]]
  110. host = "~/sm121-cache/jit-121f/vllm"
  111. container = "/root/.cache/vllm"
  112. [env]
  113. HF_HUB_OFFLINE = "1"
  114. VLLM_ENABLE_ROCE_ALLREDUCE = "1"
  115. MAX_JOBS = "2"
  116. VLLM_ENGINE_READY_TIMEOUT_S = "3600"
  117. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  118. VLLM_USE_AOT_COMPILE = "0"
  119. VLLM_USE_STANDALONE_COMPILE = "1"
  120. VLLM_USE_FLASHINFER_SAMPLER = "1"
  121. VLLM_USE_BREAKABLE_CUDAGRAPH = "0"
  122. TORCH_USE_RTLD_GLOBAL = "1"
  123. VLLM_NO_USAGE_STATS = "1"
  124. TORCH_CUDA_ARCH_LIST = "12.1a"
  125. FLASHINFER_CUDA_ARCH_LIST = "12.1f"
  126. # b12x CuTe kernels target sm_121a on GB10 (the lab launcher defaults to
  127. # sm_120a = RTX PRO; eugr's own recipes override it the same way).
  128. CUTE_DSL_ARCH = "sm_121a"
  129. CMAKE_CUDA_ARCHITECTURES = "121"
  130. OMP_NUM_THREADS = "2"