Update README.md

#3
by zheyishine - opened
Files changed (1) hide show
  1. README.md +17 -10
README.md CHANGED
@@ -81,45 +81,52 @@ We evaluate the quantized models using several datasets. The FP8 quantized model
81
  #### Install our SGLang
82
  ```bash
83
  pip install uv
 
84
  uv venv ~/my_ling_env
 
85
  source ~/my_ling_env/bin/activate
 
86
  git clone -b ling_v3_support https://github.com/inclusionAI/sglang_ling_v3.git
87
- cd sglang
 
 
88
  pip install --upgrade pip
 
89
  pip install -e "python"
90
  ```
91
 
92
  #### Run Inference
93
- Here is the example to run Ling-3.0-flash with 4 GPUs, where the master node IP is `${MASTER_IP}` and server port is `${PORT}`:
94
 
95
  **Server**
96
 
97
- As our model is trained with MTP, we recommend to turn on MTP (i.e., --speculative-algorithm NEXTN) in inference for lower latency.
98
 
99
  ```bash
100
  export SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1
 
 
101
  python -m sglang.launch_server \
102
  --model-path $MODEL_PATH \
103
  --dist-init-addr $MASTER_IP:2345 \
104
  --port $PORT \
105
  --nnodes 1 \
106
  --mem-fraction-static 0.8 \
107
- --max-running-requests 64 \
108
- --tp-size 4 \
109
  --chunked-prefill-size 8192 \
110
- --allow-auto-output-truncate \
111
  --tool-call-parser ling3 \
112
  --reasoning-parser ling3 \
113
  --context-length 262144 \
114
  --speculative-algorithm NEXTN \
115
- --max-mamba-cache-size 320 \
116
  --enable-fp32-lm-head \
117
  --disable-shared-experts-fusion
118
  ```
119
 
120
  **Client**
121
 
122
- It is recommended to use the sampling params (<font style="color:rgb(16, 18, 20);">`temperature=0.6, top_p=0.95, top_k=20`</font>) and turn on `enable_thinking`for better performance.
123
 
124
  ```bash
125
  curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
@@ -150,7 +157,7 @@ Here is the example to run Ling-3.0-flash with 4 GPUs, where the server port is
150
 
151
  **Server**
152
 
153
- As our model is trained with MTP, we recommend to turn on MTP (i.e., --speculative-config) in inference for lower latency.
154
 
155
  ```bash
156
  vllm serve "$MODEL_PATH" \
@@ -169,7 +176,7 @@ vllm serve "$MODEL_PATH" \
169
 
170
  **Client**
171
 
172
- It is recommended to use the sampling params (<font style="color:rgb(16, 18, 20);">`temperature=0.6, top_p=0.95, top_k=20`</font>) and turn on `enable_thinking`for better performance.
173
 
174
  ```bash
175
  curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
 
81
  #### Install our SGLang
82
  ```bash
83
  pip install uv
84
+
85
  uv venv ~/my_ling_env
86
+
87
  source ~/my_ling_env/bin/activate
88
+
89
  git clone -b ling_v3_support https://github.com/inclusionAI/sglang_ling_v3.git
90
+
91
+ cd sglang_ling_v3
92
+
93
  pip install --upgrade pip
94
+
95
  pip install -e "python"
96
  ```
97
 
98
  #### Run Inference
99
+ Here is an example to run Ling-3.0-flash with 4 GPUs, where the master node IP is `${MASTER_IP}` and server port is `${PORT}`:
100
 
101
  **Server**
102
 
103
+ Since the model is trained with MTP, we recommend enabling MTP during inference (i.e., --speculative-algorithm NEXTN) for lower latency.
104
 
105
  ```bash
106
  export SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1
107
+ export SGLANG_JIT_DEEPGEMM_PRECOMPILE=1
108
+ export SGLANG_ENABLE_SPEC_V2=1
109
  python -m sglang.launch_server \
110
  --model-path $MODEL_PATH \
111
  --dist-init-addr $MASTER_IP:2345 \
112
  --port $PORT \
113
  --nnodes 1 \
114
  --mem-fraction-static 0.8 \
115
+ --max-running-requests 32 \
116
+ --tp-size 2 \
117
  --chunked-prefill-size 8192 \
 
118
  --tool-call-parser ling3 \
119
  --reasoning-parser ling3 \
120
  --context-length 262144 \
121
  --speculative-algorithm NEXTN \
122
+ --max-mamba-cache-size 160 \
123
  --enable-fp32-lm-head \
124
  --disable-shared-experts-fusion
125
  ```
126
 
127
  **Client**
128
 
129
+ We recommend using the sampling parameters `temperature=0.6`, `top_p=0.95`, and `top_k=20`, and enabling `enable_thinking` for better performance.
130
 
131
  ```bash
132
  curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
 
157
 
158
  **Server**
159
 
160
+ Since the model is trained with MTP, we recommend enabling MTP during inference (i.e., --speculative-config) for lower latency.
161
 
162
  ```bash
163
  vllm serve "$MODEL_PATH" \
 
176
 
177
  **Client**
178
 
179
+ We recommend using the sampling parameters `temperature=0.6`, `top_p=0.95`, and `top_k=20`, and enabling `enable_thinking` for better performance.
180
 
181
  ```bash
182
  curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \