recipe.toml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.25.1-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. # uv venv ~/venvs/vllm025 -p 3.12
  24. # uv pip install vllm==0.25.1 --torch-backend=cu130
  25. # uv pip install flashinfer-python==0.6.15.dev20260712 \
  26. # flashinfer-cubin==0.6.15.dev20260712 \
  27. # flashinfer-jit-cache==0.6.15.dev20260712 \
  28. # --extra-index-url https://flashinfer.ai/whl/nightly/ \
  29. # --extra-index-url https://flashinfer.ai/whl/nightly/cu130/
  30. # hf download poolside/Laguna-S-2.1-NVFP4
  31. # hf download poolside/Laguna-S-2.1-DFlash-NVFP4
  32. #
  33. # The `venv` field below is used by tmux to activate the venv before
  34. # running the entrypoint.
  35. engine = "vllm"
  36. name = "Laguna S 2.1 NVFP4 (vLLM)"
  37. docker_image = "ghcr.io/timothystewart6/vllm-gb10:v0.25.1-gb10.1"
  38. model = "poolside/Laguna-S-2.1-NVFP4"
  39. tensor_parallel_size = 1
  40. pipeline_parallel_size = 1
  41. deploy = "tmux"
  42. venv = "~/venvs/vllm025"
  43. venv_setup = """
  44. uv venv ~/venvs/vllm025 -p 3.12
  45. uv pip install vllm==0.25.1 --torch-backend=cu130
  46. uv pip install flashinfer-python==0.6.15.dev20260712 flashinfer-cubin==0.6.15.dev20260712 flashinfer-jit-cache==0.6.15.dev20260712 --extra-index-url https://flashinfer.ai/whl/nightly/ --extra-index-url https://flashinfer.ai/whl/nightly/cu130/
  47. hf download poolside/Laguna-S-2.1-NVFP4
  48. hf download poolside/Laguna-S-2.1-DFlash-NVFP4
  49. """
  50. entrypoint = ["vllm", "serve"]
  51. args = [
  52. "--gpu-memory-utilization", "0.85",
  53. "--max-model-len", "262144",
  54. "--load-format", "instanttensor",
  55. "--enable-prefix-caching",
  56. "--tool-call-parser", "poolside_v1",
  57. "--reasoning-parser", "poolside_v1",
  58. "--enable-auto-tool-choice",
  59. "--trust-remote-code",
  60. "--kv-cache-dtype", "fp8",
  61. "--enable-flashinfer-autotune",
  62. "--max-num-seqs", "32",
  63. "--override-generation-config", """
  64. '{"temperature":0.7,"top_p":0.95}'""",
  65. # DFlash speculative decoding with quantization-matched draft
  66. "--speculative-config", """
  67. '{"model":"poolside/Laguna-S-2.1-DFlash-NVFP4","num_speculative_tokens":15,"method":"dflash"}'""",
  68. "--served-model-name", "laguna-s-2.1", "laguna", "default",
  69. ]
  70. [env]
  71. SAFETENSORS_FAST_GPU = "1"
  72. TORCH_CUDA_ARCH_LIST = "12.1a"
  73. FLASHINFER_CUDA_ARCH_LIST = "12.1a"
  74. CUTE_DSL_ARCH = "sm_121a"
  75. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  76. VLLM_FLOAT32_MATMUL_PRECISION = "high"
  77. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  78. MAX_JOBS = "4"