Commit 8160773
committed
fix(vllm): address review findings for the Direct vLLM provider
- **`transformer.go`**: skip a derived flag (`--tensor-parallel-size`,
`--model`, `--max-model-len`, etc.) when its key is already set in
`spec.engine.args`, so an edited GPU count can no longer emit a
conflicting duplicate `--tensor-parallel-size`
- **`transformer.go`**: render `--enforce-eager` and
`--enable-prefix-caching` (the `spec.engine` toggles were silently
dropped)
- **`transformer.go`**: mount `spec.model.storage` PVC volumes
(`volumes` + `volumeMounts`) alongside `/dev/shm`
- **`transformer.go`**: reject reserved `host`/`port` engine args in the
`--key` and `--key=value` forms, and guard nil
`Decode.GPU`/`Prefill.GPU` in `transformDisaggregated`
- **`vllmRecipesClient.ts`**: add typed errors
(validation/timeout/upstream), a TTL in-memory cache with
stale-on-error fallback, and a 5 MiB response-size bound
- **`vllmRecipes.ts`**: map recipe errors to `400`/`504`/`502` instead
of a blanket `502`
- **`controller.go`**: name the conflicting owner in
`resourceConflictError`
- Add controller and transformer tests for the above, and document the
registry-coupling / nightly-digest behavior in
`docs/providers/vllm.md`
- Note the new `spec.engine.image`/`extraArgs` fields and
`providers/vllm` in `agents.md`
- Bump `providers/vllm` dependencies (`go.mod`/`go.sum`)
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>1 parent 188fbb1 commit 8160773
12 files changed
Lines changed: 827 additions & 68 deletions
File tree
- backend/src
- routes
- services
- docs/providers
- providers/vllm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
10 | 33 | | |
11 | 34 | | |
12 | 35 | | |
| |||
34 | 57 | | |
35 | 58 | | |
36 | 59 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
| |||
52 | 73 | | |
53 | 74 | | |
54 | 75 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 76 | + | |
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
| |||
76 | 95 | | |
77 | 96 | | |
78 | 97 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 98 | + | |
82 | 99 | | |
83 | 100 | | |
84 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
62 | 133 | | |
63 | 134 | | |
0 commit comments