Skip to content

Latest commit

 

History

History
83 lines (67 loc) · 3.66 KB

serving.md

File metadata and controls

83 lines (67 loc) · 3.66 KB

Serving profiles

All launchers use the unmodified SGLang commit recorded in sources.lock.json, native --speculative-algorithm UBTREE, and SGLANG_PLUGINS=none.

Setting Ling3 Tiny Ling3 Flash Qwen3.8-27B
Tensor parallelism 1 4 8
Concurrent requests 1 1 1
Target / draft attention FA3 / FA3 FA3 / FA3 FA3 / FA3
Weight dtype / draft quantization BF16 / unquant BF16 / unquant BF16 / unquant
SSM state dtype FP32 FP32 FP32
Draft block size 16 16 16
Verify nodes, including root 49 32 32
Context / total token capacity 4096 / 4096 4096 / 4096 16384 / 16384
Chunked prefill 4096 4096 8192
Static memory fraction 0.80 0.80 0.80
Prefix cache disabled disabled disabled
Decode Graph full, batch 1 full, batch 1 full, maximum batch 1
Request thinking mode disabled disabled xhigh
Example request output cap 2048 2048 8192

The Tiny/Flash profiles follow their public HF model cards. The integration makes the inherited BF16, unquantized draft, B16 block, and draft FA3 settings explicit. It uses localhost by default instead of the model cards' all-interface binding. Tiny and Flash keep their Triton linear-attention backends.

Qwen follows the supplied optimized merge-branch TP8 serving command. Its six optimization switches are enabled, along with SGLANG_OPT_FA3_VERIFY_METADATA_IN_GRAPH=1 and NCCL_GRAPH_MIXING_SUPPORT=0. Compact FA3 tree masks are explicitly enabled. The profiles leave TF32x3 GDN verification and fused suffix merge disabled. The original command's --skip-server-warmup is retained: it skips built-in server warmup, so startup alone does not complete benchmark warmup.

The published Qwen config retains its 65-node checkpoint default. The supplied serving profile deliberately overrides it to 32 nodes, as in the TP8 experiment. The checkpoint bytes, precision, and B16 model structure are unchanged.

Paths and extra arguments

python scripts/serve.py ling3-flash \
  --target-model-path /models/Ling-3.0-flash \
  --draft-model-path /models/Ling-3.0-flash-UBTree \
  --host 127.0.0.1 --port 30000

Without an explicit draft path, the launcher checks the model's directory under checkpoints/ first, then uses the fixed HF revision in models.json. This applies to all three drafts, including inclusionAI/Qwen3.8-27B-UBTree.

python scripts/download_checkpoints.py qwen38-27b
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python scripts/serve.py qwen38-27b

Use --draft-model-path for an existing local draft folder and --target-model-path for a local target.

Additional runtime options go after --, for example -- --mem-fraction-static 0.75. They are passed as individual argv elements, without a shell. Overrides are user-selected configurations and should be recorded when measuring performance.

Use --dry-run to print the exact argv and managed environment without starting any process. It prints no ambient credentials.

Requests

examples/chat.py uses the target's tokenizer and /generate. The defaults are temperature 0, top-p 1, top-k 1, min-p 0, natural EOS, and the per-model caps above. Qwen sets both xhigh template aliases used by the existing target setup. Using a local target path for serving also requires passing that path to the client if its tokenizer is not cached:

python examples/chat.py qwen38-27b \
  --target-model-path /models/Qwen3.8-27B --max-new-tokens 8192

The script is a request example. It is not a benchmark or accuracy harness. No request-level RNG reseeding or performance claims are added.