Skip to content

Commit b4f9d14

Browse files
Add example helm values for inflight and avg-ttft scorers. (#27)
* Add example helm values for inflight and avg-ttft scorers. Signed-off-by: Mohammad <mohammad.nassar@ibm.com> * Add model list. Signed-off-by: Mohammad <mohammad.nassar@ibm.com> --------- Signed-off-by: Mohammad <mohammad.nassar@ibm.com>
1 parent d84bd44 commit b4f9d14

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

examples/avgttft-values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
payloadProcessor:
2+
# Models to seed into the datastore at startup. The chart renders these into
3+
# a models.json file inside the configmap, which the model-config-datasource
4+
# plugin (configured below) reads from /config/models.json.
5+
listModels:
6+
- your-model-A
7+
- your-model-B
8+
customConfig:
9+
plugins:
10+
- type: body-field-to-header
11+
parameters:
12+
fieldName: model
13+
headerName: X-Gateway-Model-Name
14+
- type: base-model-to-header
15+
- type: model-selector
16+
- type: avg-ttft-scorer
17+
- type: max-score-picker
18+
- type: request-metadata-extractor
19+
- type: model-config-datasource
20+
parameters:
21+
modelsPath: /config/models.json
22+
profiles:
23+
- name: default
24+
plugins:
25+
request:
26+
- pluginRef: model-selector
27+
- pluginRef: avg-ttft-scorer
28+
weight: 1.0
29+
- pluginRef: max-score-picker
30+
- pluginRef: body-field-to-header
31+
- pluginRef: base-model-to-header
32+
datalayer:
33+
extractors:
34+
- pluginRef: request-metadata-extractor
35+
datasources:
36+
- pluginRef: model-config-datasource

examples/inflight-values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
payloadProcessor:
2+
# Models to seed into the datastore at startup. The chart renders these into
3+
# a models.json file inside the configmap, which the model-config-datasource
4+
# plugin (configured below) reads from /config/models.json.
5+
listModels:
6+
- your-model-A
7+
- your-model-B
8+
customConfig:
9+
plugins:
10+
- type: body-field-to-header
11+
parameters:
12+
fieldName: model
13+
headerName: X-Gateway-Model-Name
14+
- type: base-model-to-header
15+
- type: model-selector
16+
- type: inflight-requests-scorer
17+
- type: max-score-picker
18+
- type: request-metadata-extractor
19+
- type: model-config-datasource
20+
parameters:
21+
modelsPath: /config/models.json
22+
profiles:
23+
- name: default
24+
plugins:
25+
request:
26+
- pluginRef: model-selector
27+
- pluginRef: inflight-requests-scorer
28+
weight: 1.0
29+
- pluginRef: max-score-picker
30+
- pluginRef: body-field-to-header
31+
- pluginRef: base-model-to-header
32+
datalayer:
33+
extractors:
34+
- pluginRef: request-metadata-extractor
35+
datasources:
36+
- pluginRef: model-config-datasource

0 commit comments

Comments
 (0)