Files
vllm-sparce/.env.example
T
opencode 41144b9a3b CPU stack: do not reserve a core by default
The stand's log showed core ids=[1] and 'Reducing Torch threads from 2 to 1'
because the container only sees ~2 cores: VLLM_CPU_NUM_OF_RESERVED_CPU=1 left
a single OpenMP thread for inference. Default is now 0 (16 vs 15 threads on a
24 vCPU host, no latency change); document setting it back to 1 for large hosts
and how to check nproc / core ids= after a deploy.
2026-10-07 08:52:16 +07:00

36 lines
1.0 KiB
Bash

# Values used by docker-compose.yml. Every variable has a default,
# so the stack starts even without this file. In Portainer set the same names
# in the stack's "Environment variables" field instead.
# port on the host
HOST_PORT=8083
# name of the container
CONTAINER_NAME=vllm-bge-sparse-backend
# share of VRAM vLLM may use (0.15 is enough for BAAI/bge-m3: ~2.1 GB)
GPU_MEMORY_UTILIZATION=0.15
MAX_MODEL_LEN=8192
MODEL=BAAI/bge-m3
# version tag, not :latest: the plugin is tied to the vLLM API
VLLM_IMAGE=vllm/vllm-openai:v0.30.0
# model cache on the host
HF_CACHE=/root/.cache/huggingface
# defaults for the /pooling "data" object
BGE_M3_SPARSE_MODE=sparse
BGE_M3_SPARSE_THRESHOLD=0.0
# --- CPU-вариант (docker-compose.cpu.yml), там свои имена ---
# HOST_PORT_CPU=8084
# MAX_MODEL_LEN_CPU=2048
# MAX_NUM_BATCHED_TOKENS_CPU=2048
# ENFORCE_EAGER=1
# DTYPE_CPU=bfloat16
# VLLM_CPU_KVCACHE_SPACE=8
# VLLM_CPU_NUM_OF_RESERVED_CPU=0
# (OMP_NUM_THREADS намеренно не задаётся: пустое значение ломает OpenMP)