Skip to content

Expected way to set environment variables #11029

Answered by c-hoffmann
c-hoffmann asked this question in Q&A
Discussion options

You must be logged in to vote

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 the actviate.d/env_vars.sh I set a lot of environment variables, e.g.:

export CUDA_VISIBLE_DEVICES=1
export VLLM_LOGGING_LEVEL="WARNING"
export VLLM_LOGGING_PREFIX="WOOP"

and inside deactviate.d/env_vars.sh I deleted them again, e.g. with:

unset CUDA_VISIBLE_DEVICES
unset VLLM_LOGGING_LEVEL
unset VLLM_LOGGING_PREFIX

What works:

  • CUDA_VISIBLE_DEVICES correctly sets my second GPU for usage with vLLM

What doesn't work:

  • VLLM_LOGGING_LEVEL and VLLM_LOGGING_PREFIX do nothing. I expected to only see WARNINGs and worse (no INFOs) and …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@c-hoffmann
Comment options

Answer selected by c-hoffmann
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
1 participant