Speed up CPU stack startup, fix empty OMP_NUM_THREADS
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
This commit is contained in:
1 parent
4dc15869d1
commit
ff6b9f8b25
3 files changed
+47
-11
No files matched your search
@@ -23,3 +23,13 @@ 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)
|
||||
Reference in new issue
Block a user