recipe.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Qwen3.8-27B (FP8) — 1× DGX Spark / GB10 (sm_121), TP=1.
  2. #
  3. # Official Qwen FP8 quant (29 GB). Dense 27B, GQA, hybrid DeltaNet+Attention,
  4. # MTP-1. Text + vision. As fast as NVFP4 typically, with full FP8 quality.
  5. #
  6. # Image: ghcr.io/timothystewart6/vllm-gb10:v0.27.1-gb10.2
  7. # vLLM 0.27.1, torch 2.13+cuda130, FlashInfer built from source,
  8. # instanttensor. Stock vLLM — supports the qwen3_5 arch + MTP.
  9. #
  10. # Model: Qwen/Qwen3.8-27B-FP8
  11. # https://huggingface.co/Qwen/Qwen3.8-27B-FP8
  12. #
  13. # PREREQUISITES:
  14. # Weights cached on every node (dgx1 ~/.cache/huggingface → NAS):
  15. # huggingface-cli download Qwen/Qwen3.8-27B-FP8
  16. #
  17. # REFERENCE:
  18. # https://forums.developer.nvidia.com/t/qwen3-8-27b-mixedint4-autoround-optimized-for-a-single-dgx-spark/380248
  19. # https://forums.developer.nvidia.com/t/qwen3-8-27b-on-dual-sparks/380350
  20. engine = "vllm"
  21. name = "Qwen3.8-27B (FP8)"
  22. docker_image = "ghcr.io/timothystewart6/vllm-gb10:v0.27.1-gb10.2"
  23. model = "Qwen/Qwen3.8-27B-FP8"
  24. parent_model = "Qwen/Qwen3.8-27B"
  25. required_nodes = 1
  26. tensor_parallel_size = 1
  27. pipeline_parallel_size = 1
  28. distributed_backend = "mp"
  29. shm_size = "32gb"
  30. entrypoint = ["vllm", "serve"]
  31. args = [
  32. # KV cache & memory
  33. "--kv-cache-dtype", "fp8",
  34. "--max-model-len", "262144",
  35. "--max-num-seqs", "6",
  36. "--max-num-batched-tokens", "8192",
  37. "--gpu-memory-utilization", "0.75",
  38. "--served-model-name", "qwen3.8-27b",
  39. # Engine backends (dense GQA — FlashInfer)
  40. "--attention-backend", "flashinfer",
  41. # Compilation / perf
  42. "--optimization-level", "3",
  43. "--performance-mode", "throughput",
  44. # Chunked prefill + prefix caching
  45. "--enable-chunked-prefill",
  46. "--enable-prefix-caching",
  47. "--enable-flashinfer-autotune",
  48. # MTP speculative decoding (in-checkpoint draft)
  49. "--speculative-config", """
  50. '{"method":"mtp","num_speculative_tokens":5}'""",
  51. # Tokenizer / reasoning (Qwen3 family)
  52. "--tool-call-parser", "qwen3_xml",
  53. "--reasoning-parser", "qwen3",
  54. "--enable-auto-tool-choice",
  55. "--generation-config", "auto",
  56. "--default-chat-template-kwargs.preserve_thinking=true",
  57. # Proven generation defaults (thinking mode; Qwen3.8 model-card best
  58. # practices)
  59. "--override-generation-config", """
  60. '{"temperature":1.0,"top_p":0.95,"top_k":20,"min_p":0.0,"presence_penalty":0.0,"repetition_penalty":1.0}'""",
  61. "--trust-remote-code",
  62. ]
  63. [env]
  64. HF_HUB_OFFLINE = "1"
  65. TORCH_CUDA_ARCH_LIST = "12.1a"
  66. CUTE_DSL_ARCH = "sm_121a"
  67. OMP_NUM_THREADS = "4"
  68. PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
  69. CUDA_VISIBLE_DEVICES = "0"
  70. CUDA_DEVICE_ORDER = "PCI_BUS_ID"
  71. CUDA_CACHE_MAXSIZE = "4294967296"