You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/charts/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,7 +305,7 @@ router:
305
305
306
306
Runs a tokenizer sidecar that EPP queries to tokenize incoming requests, enabling precise, token-count-aware routing policies (e.g., precise prefix-cache matching).
307
307
308
-
The sidecar runs vLLM's `vllm launch render <modelName>` and exposes `/v1/completions/render` and `/v1/chat/completions/render` over loopback HTTP. Wire EPP to it via `router.epp.pluginsCustomConfig` with `type: token-producer` and `vllm:`.
308
+
The sidecar runs vLLM's `vllm launch render <modelName>` and exposes `/v1/completions/render` and `/v1/chat/completions/render` over loopback HTTP. Wire EPP to it via `router.epp.pluginsCustomConfig` with `type: token-producer`, `backend: vllm`, and `vllm:`.
309
309
310
310
#### Tokenizer Sidecar Parameters
311
311
@@ -409,8 +409,8 @@ spec:
409
409
410
410
**Step 2 — point EPP at the socket.** Configure the tokenizer plugin via
411
411
`router.epp.pluginsCustomConfig`(the chart writes this into the EPP config
412
-
mounted at `/config`). Select the deprecated UDS backend with
413
-
`udsTokenizerConfig`:
412
+
mounted at `/config`). Select the deprecated UDS backend with `backend: uds`
413
+
and point it at the socket with `udsTokenizerConfig`:
returnnil, fmt.Errorf("invalid configuration for '%s' plugin: estimate.image.mode must be %q or %q", PluginType, imageModeDynamic, imageModeStatic)
154
+
155
+
switchselected {
156
+
casetokenizerBackendVLLM:
157
+
ifconfig.ModelName=="" {
158
+
return"", fmt.Errorf("invalid configuration for '%s' plugin: 'modelName' must be specified", PluginType)
159
+
}
160
+
casetokenizerBackendUDS:
161
+
ifconfig.ModelName=="" {
162
+
return"", fmt.Errorf("invalid configuration for '%s' plugin: 'modelName' must be specified", PluginType)
163
+
}
164
+
if!config.TokenizerConfig.IsEnabled() {
165
+
return"", fmt.Errorf("invalid configuration for '%s' plugin: 'udsTokenizerConfig' must be specified when backend is %q", PluginType, tokenizerBackendUDS)
return"", fmt.Errorf("invalid configuration for '%s' plugin: backend must be one of %q, %q, or %q", PluginType, tokenizerBackendEstimate, tokenizerBackendVLLM, tokenizerBackendUDS)
185
+
}
151
186
}
152
187
153
-
returnp, nil
188
+
estimate:=config.Estimate!=nil
189
+
uds:=config.TokenizerConfig.IsEnabled()
190
+
vllm:=config.VLLM!=nil||config.ModelName!=""
191
+
if (estimate&& (uds||vllm)) || (uds&&vllm) {
192
+
return"", fmt.Errorf("invalid configuration for '%s' plugin: only one of 'estimate', 'vllm', or 'udsTokenizerConfig' may be set", PluginType)
193
+
}
194
+
switch {
195
+
caseuds:
196
+
returntokenizerBackendUDS, nil
197
+
casevllm:
198
+
returntokenizerBackendVLLM, nil
199
+
default:
200
+
returntokenizerBackendEstimate, nil
201
+
}
154
202
}
155
203
156
204
// LegacyPluginFactory wraps PluginFactory for the deprecated `tokenizer` type
"DEPRECATION: the 'udsTokenizerConfig' parameter is deprecated and will be removed in a future release; set the 'vllm' parameter instead (see plugin README)",
0 commit comments