If CUDA_VISIBLE_DEVICES is already set in the environment (e.g., by the user or a wrapper script), only consider those GPUs when selecting devices for llama-server. nvidia-smi reports all physical GPUs regardless of CUDA_VISIBLE_DEVICES, so we filter its output to match the allowed set. Without this, the GPU selector could pick a GPU outside the user's allowed set, overriding their restriction. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| audio_codecs.py | ||
| inference.py | ||
| llama_cpp.py | ||
| orchestrator.py | ||
| worker.py | ||