Expected way to set environment variables #11029
-
I use vllm installed via pip on a linux server. And I want to set the vllm environment variables - if possible in a central file. open-webui for example uses a ".env"-file to set environment variables in a central file. Is there something similar for vllm? I have found the vllm/envs.py, but I'm not sure if I should set the variables there, since with an update it might get overwritten, right? Of course I can set up my own shell script with a lot of exports, but is that the intended way? How do you do it? Thanks for your thoughts! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So I partially succeeded by creating
and inside
What works:
What doesn't work:
|
Beta Was this translation helpful? Give feedback.
So I partially succeeded by creating
~/miniconda3/env/vllm/etc/conda/actviate.d/env_vars.sh
and~/miniconda3/env/vllm/etc/conda/deactviate.d/env_vars.sh
. Inside theactviate.d/env_vars.sh
I set a lot of environment variables, e.g.:and inside
deactviate.d/env_vars.sh
I deleted them again, e.g. with:What works:
What doesn't work: