SGLang: use the prebuilt multi-arch image instead of building from source

#1
Files changed (1) hide show
  1. README.md +14 -21
README.md CHANGED
@@ -191,29 +191,22 @@ vllm serve tencent/Hy4-preview-FP8 \
191
 
192
  ### SGLang
193
 
194
- Build SGLang from source:
195
- ```bash
196
- git clone https://github.com/sgl-project/sglang
197
- cd sglang
198
- pip3 install pip --upgrade
199
- pip3 install "transformers>=5.6.0"
200
- pip3 install -e "python"
201
- ```
202
-
203
- Launch SGLang server with MTP enabled:
204
 
205
  ```bash
206
- python3 -m sglang.launch_server \
207
- --model tencent/Hy4-preview-FP8 \
208
- --tp-size 8 \
209
- --tool-call-parser hy_v4 \
210
- --reasoning-parser hy_v4 \
211
- --speculative-num-steps 2 \
212
- --speculative-eagle-topk 1 \
213
- --speculative-num-draft-tokens 3 \
214
- --speculative-algorithm EAGLE \
215
- --port 8000 \
216
- --served-model-name hy4-preview
 
 
217
  ```
218
 
219
  ## Finetuning
 
191
 
192
  ### SGLang
193
 
194
+ Use the prebuilt image `lmsysorg/sglang:hy4-preview` (multi-arch, x86 and Arm):
 
 
 
 
 
 
 
 
 
195
 
196
  ```bash
197
+ docker pull lmsysorg/sglang:hy4-preview
198
+
199
+ docker run --gpus all --ipc=host -p 8000:8000 lmsysorg/sglang:hy4-preview \
200
+ python3 -m sglang.launch_server \
201
+ --model tencent/Hy4-preview \
202
+ --tp-size 8 \
203
+ --reasoning-parser auto --tool-call-parser auto \
204
+ --speculative-algorithm NEXTN \
205
+ --speculative-num-steps 3 \
206
+ --speculative-eagle-topk 1 \
207
+ --speculative-num-draft-tokens 4 \
208
+ --served-model-name hy4-preview \
209
+ --port 8000
210
  ```
211
 
212
  ## Finetuning