recipe.toml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Laguna S 2.1 NVFP4 — 1× DGX Spark (GB10), TP=1.
  2. #
  3. # Model: poolside/Laguna-S-2.1-NVFP4
  4. # → https://huggingface.co/poolside/Laguna-S-2.1-NVFP4
  5. #
  6. # 117.6B total / 8.5B active MoE — NVFP4 quantized (~71 GB stored).
  7. # Fits on a single DGX Spark (128 GB unified memory).
  8. # 48 layers (36 SWA, 12 global), 256+1 experts, 262K context.
  9. # KV cache in FP8.
  10. #
  11. # DFlash speculative decoding with quantization-matched draft model:
  12. # poolside/Laguna-S-2.1-DFlash-NVFP4
  13. # → 15 speculative tokens, method dflash.
  14. #
  15. # REFERENCE:
  16. # https://huggingface.co/poolside/Laguna-S-2.1-NVFP4
  17. #
  18. # DEPLOYMENT: tmux (host venv). The pre-built Docker image
  19. # (ghcr.io/timothystewart6/vllm-gb10:v0.26.0-gb10.1) ships the wrong
  20. # flashinfer version, so Docker is non-functional. The sustainable path
  21. # is a host venv with the exact deps from the model card.
  22. #
  23. # ACTIVE (risky): vLLM 0.26.0 + flashinfer 0.6.16.dev20260729.
  24. # 0.6.16 adds SM121 (GB10/DGX Spark) NVFP4 attention support
  25. # (flashinfer PR #3897) and Expert Parallelism, but introduces
  26. # API changes that vLLM 0.26.0 (which requires flashinfer 0.6.14)
  27. # may not fully track. Tested on dgx1.lan — monitor for MoE cubin
  28. # validation regressions ("reject incompatible output-scale cubins").
  29. #
  30. # SAFE (commented out): vLLM 0.25.1 + flashinfer 0.6.15.dev20260728.
  31. # Same minor as the original 0.6.15.dev20260712 — just 16 days of
  32. # bug fixes. No API changes. Drop-in replacement.
  33. #
  34. # uv venv ~/venvs/vllm025 -p 3.12
  35. # uv pip install vllm==0.25.1 --torch-backend=cu130
  36. # uv pip install flashinfer-python==0.6.15.dev20260728 flashinfer-cubin==0.6.15.dev20260728 flashinfer-jit-cache==0.6.15.dev20260728 --extra-index-url https://flashinfer.ai/whl/nightly/ --extra-index-url https://flashinfer.ai/whl/nightly/cu130/
  37. # hf download poolside/Laguna-S-2.1-NVFP4
  38. # hf download poolside/Laguna-S-2.1-DFlash-NVFP4
  39. #
  40. # The `venv` field below is used by tmux to activate the venv before
  41. # running the entrypoint.
  42. engine = "vllm"
  43. name = "Laguna S 2.1 NVFP4 (vLLM)"
  44. docker_image = "ghcr.io/timothystewart6/vllm-gb10:v0.26.0-gb10.1"
  45. model = "poolside/Laguna-S-2.1-NVFP4"
  46. tensor_parallel_size = 1
  47. pipeline_parallel_size = 1
  48. deploy = "tmux"
  49. venv = "~/venvs/vllm026"
  50. venv_setup = """
  51. uv venv ~/venvs/vllm026 -p 3.12
  52. uv pip install vllm==0.26.0 --torch-backend=cu130
  53. uv pip install flashinfer-python==0.6.16.dev20260729 flashinfer-cubin==0.6.16.dev20260729 flashinfer-jit-cache==0.6.16.dev20260729 --extra-index-url https://flashinfer.ai/whl/nightly/ --extra-index-url https://flashinfer.ai/whl/nightly/cu130/
  54. hf download poolside/Laguna-S-2.1-NVFP4
  55. hf download poolside/Laguna-S-2.1-DFlash-NVFP4
  56. """
  57. entrypoint = ["vllm", "serve"]
  58. args = [
  59. "--gpu-memory-utilization", "0.85",
  60. "--max-model-len", "262144",
  61. "--load-format", "instanttensor",
  62. "--enable-prefix-caching",
  63. "--tool-call-parser", "poolside_v1",
  64. "--reasoning-parser", "poolside_v1",
  65. "--enable-auto-tool-choice",
  66. "--trust-remote-code",
  67. "--kv-cache-dtype", "fp8",
  68. "--enable-flashinfer-autotune",
  69. "--max-num-seqs", "32",
  70. "--override-generation-config", """
  71. '{"temperature":0.7,"top_p":0.95}'""",
  72. # DFlash speculative decoding with quantization-matched draft
  73. "--speculative-config", """
  74. '{"model":"poolside/Laguna-S-2.1-DFlash-NVFP4","num_speculative_tokens":15,"method":"dflash"}'""",
  75. "--served-model-name", "laguna-s-2.1", "laguna", "default",
  76. ]
  77. [env]
  78. SAFETENSORS_FAST_GPU = "1"
  79. TORCH_CUDA_ARCH_LIST = "12.1a"
  80. FLASHINFER_CUDA_ARCH_LIST = "12.1a"
  81. CUTE_DSL_ARCH = "sm_121a"
  82. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  83. VLLM_FLOAT32_MATMUL_PRECISION = "high"
  84. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  85. MAX_JOBS = "4"