recipe.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. entrypoint = ["vllm", "serve"]
  44. args = [
  45. "--gpu-memory-utilization", "0.85",
  46. "--max-model-len", "262144",
  47. "--load-format", "instanttensor",
  48. "--enable-prefix-caching",
  49. "--tool-call-parser", "poolside_v1",
  50. "--reasoning-parser", "poolside_v1",
  51. "--enable-auto-tool-choice",
  52. "--trust-remote-code",
  53. "--kv-cache-dtype", "fp8",
  54. "--enable-flashinfer-autotune",
  55. "--max-num-seqs", "32",
  56. "--override-generation-config", """
  57. '{"temperature":0.7,"top_p":0.95}'""",
  58. # DFlash speculative decoding with quantization-matched draft
  59. "--speculative-config", """
  60. '{"model":"poolside/Laguna-S-2.1-DFlash-NVFP4","num_speculative_tokens":15,"method":"dflash"}'""",
  61. "--served-model-name", "laguna-s-2.1", "laguna", "default",
  62. ]
  63. [env]
  64. SAFETENSORS_FAST_GPU = "1"
  65. TORCH_CUDA_ARCH_LIST = "12.1a"
  66. FLASHINFER_CUDA_ARCH_LIST = "12.1a"
  67. CUTE_DSL_ARCH = "sm_121a"
  68. VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
  69. VLLM_FLOAT32_MATMUL_PRECISION = "high"
  70. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  71. MAX_JOBS = "4"