localairecipes launch configs for local inference

DS41 Flash 1017 FP8 PP2 DSpark 2x GB300 — vLLM v0.34 runtime abliteration

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by ebfio - DeepSeek V4.1 Flash PP2+DSpark GB300 pair recipe (v0.34.0 steering lane)↗ · listed by localai-recipes

Initial version · updated 44 h ago · license Apache-2.0 (repo); model deepseek-ai license

chat code vision speculative pp2 rdma roce steering abliteration multi-node long-context gb300-pair fp8-kv dspark engram

Runtime-abliteration lane of the ebfio GB300 two-station pair: TP1xPP2 (40 layers 20/20) + DSpark speculative decoding moves from vLLM v0.31.0 to v0.34.0 (three of five source overlays upstreamed and dropped; dspark.py rebased, sitecustomize stays and adds the replay-boundary guard) and gains per-request activation steering served from ONE stock checkpoint - a 684 KB WARMIND sidecar drives a forward hook x' = x - s*alpha*(x.d)d with steering_scale 0-1 per request (0 = stock, 1 = fully abliterated direction; no abliterated checkpoint on disk). Same 2x DGX Station GB300 400G CX8 RoCE pair as the v0.31.0 slug. Measured 2026-11-20/21 by the author: 429.1 tok/s C1 stock (-module) and 376.9 steered at scale 1 on the same lane (v0.31.0 lane: 410.4), KV pool 62,361,328 tokens at 1M context. Steering probes T1/T2/T3/T1b/T4/T6/T7 pass; mixed-scale batches do not cross.

Launch command

vllm serve /model --served-model-name deepseek-v4.1-flash --trust-remote-code --tokenizer-mode deepseek_v41 --tensor-parallel-size 1 --pipeline-parallel-size 2 --distributed-executor-backend mp --nnodes 2 --node-rank 0 --master-addr '<rank0-rail0-ip>' --master-port 29501 --disable-custom-all-reduce --max-model-len 1048576 --max-num-seqs 128 --max-num-batched-tokens 8192 --gpu-memory-utilization 0.9 --engram-config '{"cpu_offload": true, "use_thp": true}' --reasoning-parser deepseek_v41 --tool-call-parser deepseek_v41 --enable-auto-tool-choice --enable-prefix-caching --no-enable-flashinfer-autotune --kv-cache-dtype fp8 --attention-config '{"backend": "FLASHINFER_MLA_SPARSE_DSV41", "indexer_kv_dtype": "mxfp4", "indexer_sparse_logits": true}' --long-prefill-token-threshold 6144 --default-chat-template-kwargs '{"preserve_thinking": true}' --cpu-distributed-timeout-seconds 7200 --speculative-config '{"method":"dspark","num_speculative_tokens":5,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":false}' --mm-encoder-tp-mode data --host 0.0.0.0 --port 8001

runtime

env: 'Per-rank container env (serve_vllm_node.sh): lane select VLLM_PARALLEL=pp + VLLM_PATCH_PP2_FLAG=1 + VLLM_OVERLAY_TAG=v0.34.0 + VLLM_IMAGE=vllm/vllm-openai:v0.34.0; PYTHONPATH=/opt/pp2-flag (overlay). Steering: PP2_STEERING_SIDECAR=/opt/pp2-steering-sidecar/steering.safetensors (ro-mount), PP2_STEERING_SHA256=<sidecar sha256>, PP2_STEERING_DEFAULT_SCALE=0 (requests without the field stay stock), PP2_STEERING_REPLAY=off (default; decoder bounded replay off on every stage), PP2_STEERING_KERNEL=torch (fused = 32/34 kernels/forward, experimental). NCCL dual-rail tuned striping as the v0.31.0 sibling (NCCL_HCAS=mlx5_0,mlx5_1, RING/SIMPLE/8ch/4QP, DMABUF=1, GDR_LEVEL=SYS); GLOO/NCCL_SOCKET_IFNAME=cx8r0; HOST_RDMA=1 MOFED bind-mounts; VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=0 (KV +15.8% vs profiler reserve); VLLM_DEEP_GEMM_WARMUP=relax; ENGRAM_HOST_TABLE=1 ENGRAM_LAYOUT=private ENGRAM_PIN=1 ENGRAM_THP=1.'
notes: "Two-node launcher: stage the recipe dir at the same path on both nodes, fill placeholder IPs in config.env, then 'bash -n recipe/config.env && bash recipe/launch_cluster.sh' (rank 0 = API host :8001, rank 1 headless; preflight checks RDMA devices, jumbo ping on rail 1, MemAvailable > 300 GiB/node). Winning serving config (README 2026-11-05, baked into config.env): --max-num-batched-tokens 8192 + --long-prefill-token-threshold 6144 (+55% KV), default cudagraph capture list, no k-schedule. Serving two names from one lane: the plain id takes no body field; a steered alias sends extra_body {steering_scale: 1.0} and MUST send the engine's own model name (vLLM validates it) on a single-deployment router backend (a shared public group drops extra_body and serves vanilla under a steered name). Verified temp-0: plain id refuses a lockpick prompt, steered id answers it. Verify lane: verify/steering_probe.py (T1/T2/T3/T1b/T4/T6/T7), verify/texts_prod.py, verify/pp2_soak.py."

Use this recipe with your agent

Paste this into any agent chat — it fetches and applies the recipe:

Fetch https://localairecipes.com/api/v1/recipes/ds41-flash-1017-fp8-pp2-dspark-2x-gb300-vllm-v0-34-runtime-ablit.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.

Or fetch it directly:

curl -fsSL https://localairecipes.com/api/v1/recipes/ds41-flash-1017-fp8-pp2-dspark-2x-gb300-vllm-v0-34-runtime-ablit.json

Engine

Install note: STOCK image vllm/vllm-openai:v0.34.0 - no custom registry image. serve_vllm_node.sh bind-mounts patches/vllm-pp2-flag-v034/ (sitecustomize.py via PYTHONPATH=/opt/pp2-flag + rebased dspark.py; the model_runner/cudagraph_utils/kv_cache_utils overlays are upstream on 0.34.0 and NOT mounted; VLLM_PATCH_PP_AUTOTUNE=1 refused on this tag) and, when VLLM_STEERING_SIDECAR is set, patches/pp2-steering/ + the sidecar ro (absolute host path; VLLM_STEERING_SHA256 required, checked per node and in every engine process; stage_check.py refuses early). VLLM_OVERLAY_TAG=v0.34.0 selects the set - the v0.31.0 lane stays launchable with its own overlay dir, image and cache. Both stages load the SAME stock checkpoint (refuses mismatched trees). v0.34.0 cannot boot a stage beginning at the last KV source layer (rank 1 of the 20/20 split dies on first forward); sitecustomize wraps _decoder_replay_supported (VLLM_PATCH_PP_REPLAY_BOUNDARY=0 removes it). --cpu-distributed-timeout-seconds 7200 on this tag.

Model

Context

  • max context: 1M tokens

KV pool

  • 62,361,328 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
1,048,5761—429.1 tok/s—reported
1,059,8161—376.9 tok/s—reported

prefill = prompt processing · decode = generation. All decode/prefill figures are shown as reported.

reported

notesALL numbers author-measured on their own GB300 pair (receipts 2026-11-20/21, verify/decode_rate.py --train-prompt --tokens 512, median of 3, C1 within 0.1%, cold prefill); NOT locally reproduced (site has no GB300 hardware). Engine upgrade is a gain: 429.1 vs the v0.31.0 lane's 410.4 (+4.6%), faster rounds (8.58 vs 9.25 ms) at identical tokens/round. Steering at scale 1 costs 12.1% of C1, all step time (tokens/round identical 3.69, drafter untouched) - paid per step, so a steered request is not slower than a vanilla one on the same lane. KV pool 62,361,328 tokens = 59.47x at 1,048,576 per request. Probe battery T1/T2/T3/T1b/T4/T6/T7 passes (T1b: scale 0 == module-less lane; T4: mixed batches do not cross; T6: no prefix-cache leak across scales); T5 needs VLLM_STEERING_DEBUG=1; T8 inconclusive. T4 mixed-vs-single bursts (post-12b2feb): 12.0% vs 14.0% at scale 0 (p=0.835), 15.1% vs 11.4% at scale 1 (p=0.067) - no request served at another request's scale to within ~3-4% of positions.

Install requirements

NVIDIA driver floor: unknown - check the image tag

Source: NVIDIA CUDA Toolkit Release Notes - driver compatibility tables (https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/, fetched 2026-10-03).

Map the placeholders to your rig

Downloads

Revision notes

Initial version.

Revision history

Initial version.

Fork

Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.

Export

recipe.yaml (raw)