The CPU stand reached 'Application startup complete' but needed ~11 minutes: the warmup/profiling run took 604 s and the model was recompiled twice. - drop OMP_NUM_THREADS: it resolved to an empty string, which makes libgomp warn and vLLM bind a single thread - default to --enforce-eager (ENFORCE_EAGER=1): inductor compilation is minutes of work on CPU, eager is measurably no slower (0.18 s vs 0.18 s per ~30 word text) and engine init drops to 0.00 s - lower CPU defaults to MAX_MODEL_LEN_CPU=2048 with MAX_NUM_BATCHED_TOKENS_CPU=2048 (batched tokens must be >= max model len), which is plenty for indexing - README: what each noisy log line means and that DTYPE_CPU=float32 buys nothing but memory
36 lines
1.0 KiB
Bash
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=1
|
|
# (OMP_NUM_THREADS намеренно не задаётся: пустое значение ломает OpenMP)
|