recipe.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # MiMo-V2.6-Pro-RL (Xiaomi, 1.02T/42B-active MoE, MXFP4 experts, hybrid SWA)
  2. # on 8x DGX Spark with SGLang + DFlash speculative decoding.
  3. #
  4. # Source: github.com/rhys101/MiMo-V2.6-Pro-RL-Spark-8 @ 2f3e5fd (2026-09-24,
  5. # build a14) — the SGLang variant of the NVIDIA forum thread 384064
  6. # ("MiMo V2.6 Pro RL on 8x DGX Spark: 17.8 -> 68.3 tok/s with DFlash").
  7. # Image: docker-images/mimo26-spark (pinned base digest + 12 patches + b12x
  8. # RoCEnante + GB10 FP8 tile tables).
  9. #
  10. # Flags are the repo's SERVE_ENV profile (a13/a14 numbers: C1 mean 69.1
  11. # tok/s, C8 aggregate 190.8, long extraction C1 104.6 / C8 306.7).
  12. # TP8 + the rendezvous flags are launcher-generated (distributed_backend
  13. # "mp"); the model path is launcher-resolved.
  14. #
  15. # Model: XiaomiMiMo/MiMo-V2.6-Pro-RL @ 73875d00 (on the NAS at
  16. # /mnt/nas/ai/huggingface). The dflash/ subfolder carries the DFlash draft
  17. # weights — wired as a {{dflash}} path ref.
  18. #
  19. # PREREQUISITES: the model must be readable from every launch node's HF
  20. # cache. It currently lives on the NAS only, so serve with
  21. # `--hf-cache /mnt/nas/ai/huggingface` (all 8 nodes read from the NAS at
  22. # load; ~535 GB each). For fast re-boots, fan the model out node-to-node
  23. # first and drop the flag.
  24. engine = "sglang"
  25. name = "MiMo-V2.6-Pro-RL (SGLang DFlash, 8x Spark TP8)"
  26. docker_image = "mimo26-spark:a15"
  27. docker_image_dir = "mimo26-spark"
  28. model = "XiaomiMiMo/MiMo-V2.6-Pro-RL"
  29. parent_model = "XiaomiMiMo/MiMo-V2.6-Pro-RL"
  30. port = 30000
  31. required_nodes = 8
  32. tensor_parallel_size = 8
  33. distributed_backend = "mp"
  34. shm_size = "16gb"
  35. entrypoint = ["python3", "-m", "sglang.launch_server"]
  36. args = [
  37. "--trust-remote-code",
  38. "--served-model-name", "mimo-v2.6-pro",
  39. # Attention / MoE backends (a13 profile)
  40. "--attention-backend", "triton",
  41. "--prefill-attention-backend", "fa4",
  42. "--mm-attention-backend", "triton_attn",
  43. "--enable-multimodal",
  44. "--moe-runner-backend", "marlin",
  45. "--moe-a2a-backend", "none",
  46. # Memory / scheduling (128 GB unified per node)
  47. "--mem-fraction-static", "0.85",
  48. # KV pool at a14 defaults: 2,197,568 tokens cluster-wide (TP8, DFlash
  49. # accounted) — a 512K request uses ~23% of it, so the context limit is a
  50. # declaration, not a memory wall. The model is natively 1M
  51. # (max_position_embeddings, no rope_scaling; 70 layers, mostly SWA-128).
  52. # 1M is also pool-feasible (45% per request) if ever needed.
  53. "--context-length", "524288",
  54. "--max-running-requests", "8",
  55. "--chunked-prefill-size", "8192",
  56. "--page-size", "64",
  57. # MiMo hybrid SWA attention
  58. "--swa-full-tokens-ratio", "0.1",
  59. # Reasoning / tool parsers
  60. "--reasoning-parser", "mimo",
  61. "--tool-call-parser", "mimo",
  62. # DFlash speculative decoding (draft weights ship inside the model repo)
  63. "--speculative-algorithm", "DFLASH",
  64. "--speculative-draft-model-path", "{{dflash}}",
  65. "--speculative-num-draft-tokens", "8",
  66. # CUDA graphs
  67. "--cuda-graph-max-bs-decode", "8",
  68. "--disable-prefill-cuda-graph",
  69. # Unified memory: page cache from weight loading competes with the KV pool
  70. "--weight-loader-drop-cache-after-load",
  71. # Observability
  72. "--enable-metrics",
  73. "--enable-cache-report",
  74. "--watchdog-timeout", "1800",
  75. ]
  76. # DFlash draft weights: a subfolder of the main model repo, resolved per node
  77. # (later in the file — bare keys must come before table headers).
  78. [[extra_mounts]]
  79. repo = "XiaomiMiMo/MiMo-V2.6-Pro-RL"
  80. subfolder = "dflash"
  81. container = "dflash"
  82. [env]
  83. # RoCEnante one-shot all-reduce over b12x (baked into the image, PYTHONPATH set)
  84. SGLANG8_ROCE_ALLREDUCE = "1"
  85. # a13/a14 tuning switches
  86. MIMO26_FP8_OPROJ = "1"
  87. MIMO26_FP8_DRAFT = "1"
  88. MIMO26_DFLASH_ADAPTIVE = "1"
  89. # NCCL extras from the reference deployment (HCAs/ifname from [nccl."8nodes-switch"])
  90. NCCL_CUMEM_ENABLE = "0"
  91. NCCL_NVLS_ENABLE = "0"
  92. NCCL_PROTO = "^LL128"
  93. NCCL_BUFFSIZE = "1048576"
  94. NCCL_LL128_BUFFSIZE = "262144"
  95. NCCL_MAX_NCHANNELS = "8"
  96. NCCL_DEBUG = "WARN"