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
feat: add environment variables support for backends in model configurations
- Add field to model configuration to pass environment variables to backend processes
- Update backend options and model configuration handling
- Add documentation for environment variables configuration with examples including CUDA_VISIBLE_DEVICES
Assisted-by: qwen-agentworld-35b-a3b
Signed-off-by: nold <nold42@pm.me>
Copy file name to clipboardExpand all lines: docs/content/advanced/model-configuration.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -909,6 +909,24 @@ Multiple detectors union their detections; overlapping spans resolve to the stro
909
909
910
910
> The earlier regex pattern tier (`pii.patterns`, the global pattern catalogue, `--pii-config`, and the `/api/pii/patterns` admin endpoints) has been removed, along with response/streaming-side redaction. Those keys now no-op with a startup warning; migrate to `pii.detectors` + a detector's `pii_detection` block.
911
911
912
+
## Environment Variables Configuration
913
+
914
+
Model configurations can specify environment variables passed to the backend process:
915
+
916
+
```yaml
917
+
name: vllm-model
918
+
backend: vllm
919
+
parameters:
920
+
model: my-vllm-model
921
+
922
+
env:
923
+
VLLM_WORKER_MULTIPROC_METHOD: "spawn"
924
+
VLLM_CACHE_DIR: "/tmp/vllm_cache"
925
+
CUDA_VISIBLE_DEVICES: "0,1"
926
+
```
927
+
928
+
Environment variables are appended to the system environment variables and will override any conflicting system variables with the same name.
929
+
912
930
## Complete Example
913
931
914
932
Here's a comprehensive example combining many options:
0 commit comments