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.
This commit is contained in:
opencode committed 2026-10-07 08:52:16 +07:00
1 parent ff6b9f8b25
commit 41144b9a3b
3 files changed
+18 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ services:
BGE_M3_SPARSE_MODE: ${BGE_M3_SPARSE_MODE:-sparse}
BGE_M3_SPARSE_THRESHOLD: ${BGE_M3_SPARSE_THRESHOLD:-0.0}
VLLM_CPU_KVCACHE_SPACE: ${VLLM_CPU_KVCACHE_SPACE:-8}
VLLM_CPU_NUM_OF_RESERVED_CPU: ${VLLM_CPU_NUM_OF_RESERVED_CPU:-1}
VLLM_CPU_NUM_OF_RESERVED_CPU: ${VLLM_CPU_NUM_OF_RESERVED_CPU:-0}
# not a login shell on purpose: /root/.profile in the vllm image dumps the
# whole environment before running anything
entrypoint: ["/bin/bash", "-c"]