msr2000 zjxia commited on
Commit
7872f01
·
1 Parent(s): 9e165c3

add sglang cookbook to model card (#20)

Browse files

- add sglang cookbook to model card (eefe33dc6c626d73451cf64a1809299a42e40b80)


Co-authored-by: Zijie Xia <zjxia@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -109,6 +109,23 @@ vllm serve deepseek-ai/DeepSeek-V4-Flash-0731 \
109
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'
110
  ```
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  ## How to Run Locally
113
 
114
  Please refer to the [inference](inference/README.md) folder for detailed instructions on running DeepSeek-V4 locally, including model weight conversion and interactive chat demos.
 
109
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'
110
  ```
111
 
112
+ ## How to Run with SGLang
113
+
114
+ Enable DSpark with `--speculative-algorithm DSPARK` and do not set a separate `--speculative-draft-model-path` as the target and draft weights therefore come from the same checkpoint.
115
+ See the [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/DeepSeek/DeepSeek-V4#hw=gb300&variant=flash-official&quant=fp4&strategy=low-latency&nodes=single) for detailed instructions, benchmarks and other hardwares configurations.
116
+
117
+ ```bash
118
+ sglang serve \
119
+ --trust-remote-code \
120
+ --model-path deepseek-ai/DeepSeek-V4-Flash-0731 \
121
+ --tp 4 \
122
+ --moe-runner-backend flashinfer_mxfp4 \
123
+ --speculative-algorithm DSPARK \
124
+ --mem-fraction-static 0.90 \
125
+ --chunked-prefill-size 4096 \
126
+ --swa-full-tokens-ratio 0.1 \
127
+ ```
128
+
129
  ## How to Run Locally
130
 
131
  Please refer to the [inference](inference/README.md) folder for detailed instructions on running DeepSeek-V4 locally, including model weight conversion and interactive chat demos.