Linux/SGLang/LMHead4/TextOnly/DSpark/236k context single 5090 GODSPEED recipe

#1
by cosmicnag - opened
# ENV VARS:
   PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True

 # Full sglang args:
   --model-path /path/to/gittensor-model-hub--Qwen3.8-27B-NVFP4-RTX5090-LMHead4
   --host 127.0.0.1 --port ${PORT}
   --trust-remote-code --tp-size 1
   --context-length 237568
   --max-total-tokens 237568
   --kv-cache-dtype fp8_e4m3
   --attention-backend flashinfer
   --chunked-prefill-size 2048
   --mamba-radix-cache-strategy extra_buffer_lazy
   --mamba-ssm-dtype bfloat16
   --max-mamba-cache-size 5
   --mem-fraction-static 0.985
   --max-running-requests 1
   --speculative-algorithm DSPARK
   --speculative-draft-model-path /path/to/gittensor-model-hub--Qwen3.8-27B-DSpark-NVFP4
   --speculative-dspark-block-size 7
   --speculative-draft-model-quantization modelopt_fp4
   --reasoning-parser qwen3
   --tool-call-parser qwen3_coder
   --mm-feature-transport cpu
   --language-only

Hitting 150-260 tok/sec @525 W (avg about 180-200 depending on kind of task). This is the fastest possible 5090 27b with whatever fp8 kv context I could fit.
Nvtop shows 31.202Gi/31.843G usage once model is loaded and inferencing.
Note that this needs the gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090-LMHead4 model (not the main one).

cosmicnag changed discussion title from Linux/SGLang/LMHead4/DSpark/236k context single 5090 GODSPEED recipe to Linux/SGLang/LMHead4/TextOnly/DSpark/236k context single 5090 GODSPEED recipe

Sign up or log in to comment