11package e2e
22
3+ import "fmt"
4+
35// Simple EPP configuration for running without P/D
46const simpleConfig = `apiVersion: llm-d.ai/v1alpha1
57kind: EndpointPickerConfig
@@ -179,15 +181,17 @@ schedulingProfiles:
179181 weight: 2
180182`
181183
182- // EPP config for running with precise prefix scoring (i.e. KV events).
183- const kvConfig = `apiVersion: llm-d.ai/v1alpha1
184+ // kvConfig returns the EPP config for running with precise prefix scoring (i.e. KV events).
185+ // The render URL is built from vllmRenderPort so VLLM_RENDER_PORT is respected.
186+ func kvConfig () string {
187+ return fmt .Sprintf (`apiVersion: llm-d.ai/v1alpha1
184188kind: EndpointPickerConfig
185189plugins:
186190- type: token-producer
187191 parameters:
188192 modelName: Qwen/Qwen2.5-1.5B-Instruct
189193 vllm:
190- url: http://vllm-render:8082
194+ url: http://vllm-render:%s
191195- type: precise-prefix-cache-scorer
192196 parameters:
193197 tokenProcessorConfig:
@@ -209,17 +213,20 @@ schedulingProfiles:
209213 - pluginRef: max-score-picker
210214 - pluginRef: precise-prefix-cache-scorer
211215 weight: 10
212- `
216+ ` , vllmRenderPort )
217+ }
213218
214- // Alias of kvConfig retained for tests that reference the external-tokenizer name.
215- const kvExternalTokenizerConfig = `apiVersion: llm-d.ai/v1alpha1
219+ // kvExternalTokenizerConfig returns the EPP config for the external-tokenizer DataProducer variant.
220+ // The render URL is built from vllmRenderPort so VLLM_RENDER_PORT is respected.
221+ func kvExternalTokenizerConfig () string {
222+ return fmt .Sprintf (`apiVersion: llm-d.ai/v1alpha1
216223kind: EndpointPickerConfig
217224plugins:
218225- type: token-producer
219226 parameters:
220227 modelName: Qwen/Qwen2.5-1.5B-Instruct
221228 vllm:
222- url: http://vllm-render:8082
229+ url: http://vllm-render:%s
223230- type: precise-prefix-cache-scorer
224231 parameters:
225232 tokenProcessorConfig:
@@ -240,7 +247,8 @@ schedulingProfiles:
240247 - pluginRef: max-score-picker
241248 - pluginRef: precise-prefix-cache-scorer
242249 weight: 10
243- `
250+ ` , vllmRenderPort )
251+ }
244252
245253// EPP configuration for running scale model server test
246254const scaleConfig = `apiVersion: llm-d.ai/v1alpha1
0 commit comments