JustinTong commited on
Commit
efe5b4b
·
verified ·
1 Parent(s): 079d998

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

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