recipe.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. engine = "vllm"
  2. name = "MiMo-V2.5 Omni NVFP4 (vLLM)"
  3. docker_image = "ghcr.io/timothystewart6/vllm-gb10:v0.25.1-gb10.1"
  4. model = "lukealonso/MiMo-V2.5-NVFP4"
  5. parent_model = "XiaomiMiMo/MiMo-V2.5"
  6. required_nodes = 2
  7. tensor_parallel_size = 2
  8. pipeline_parallel_size = 1
  9. distributed_backend = "mp"
  10. # 1M context · NVFP4 4-bit KV · MTP1 · ~30 tok/s
  11. # 2× DGX Spark (GB10 Blackwell), 128 GB shared each.
  12. # REQUIRES patched vLLM container with mods (nvfp4-kv-diffkv, fix-mimo-v2-vllm, etc.)
  13. # Stock vLLM will reject NVFP4 KV or OOM.
  14. entrypoint = ["vllm", "serve"]
  15. args = """
  16. --served-model-name MiMo-V2.5-NVFP4
  17. --trust-remote-code
  18. --dtype auto
  19. --load-format safetensors
  20. --hf-overrides {"architectures":["MiMoV2OmniForCausalLM"]}
  21. --limit-mm-per-prompt {"image":4,"video":1,"audio":1}
  22. --mm-encoder-tp-mode data
  23. --attention-backend triton_attn_diffkv
  24. --kv-cache-dtype nvfp4
  25. --gpu-memory-utilization 0.84
  26. --max-model-len 1000000
  27. --max-num-batched-tokens 4096
  28. --max-num-seqs 4
  29. --block-size 32
  30. --enable-prefix-caching
  31. --enable-chunked-prefill
  32. --enable-auto-tool-choice
  33. --tool-call-parser mimo
  34. --reasoning-parser mimo
  35. --speculative-config {"method":"mtp","num_speculative_tokens":1}
  36. --enforce-eager
  37. """
  38. # TP/PP/nnodes/node-rank/master-addr are
  39. # auto-generated by the launcher from the recipe's top-level fields.
  40. # mp backend auto-detected by vLLM >0.20, no --distributed-executor-backend flag needed.
  41. [env]
  42. # Memory stability
  43. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  44. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  45. # NVFP4 weights + KV + WMMA decode
  46. VLLM_NVFP4_GEMM_BACKEND = "flashinfer-cutlass"
  47. VLLM_USE_FLASHINFER_MOE_FP4 = "1"
  48. VLLM_FLASHINFER_MOE_BACKEND = "throughput"
  49. VLLM_NVFP4_INLINE = "1"
  50. VLLM_WMMA_DECODE = "1"
  51. VLLM_WMMA_INSPECT = "0"
  52. VLLM_WMMA_COMPARE = "0"
  53. VLLM_WMMA_AUTHCOMPARE = "0"