Files
wangdongyun cb9b04c95f feat: vLLM 0.6.3 engine with sliding-window guard + tokenizer fix
- sliding-window guard: add --disable-sliding-window only when the model
  really has sliding_window and the xformers backend lacks
  make_local_attention; cap --max-model-len to the window size; skip
  models whose rope_scaling is not supported by this vLLM (yarn, ...)
- tokenizer fix: rewrite tokenizer_class / extra_special_tokens /
  from_slow, keep auto_map + copied repo code; every candidate is
  verified with AutoTokenizer.from_pretrained, all-fail falls back to
  starting vLLM unchanged
- head_size patch + ixformer ops patch + weight-load progress log kept
- selftests for tokenizer, sliding window and final argv
2026-11-10 22:08:34 +00:00

17 lines
759 B
Bash
Executable File

#!/bin/bash
# 容器入口:保持原镜像的调用方式 —— 第一个参数是模型目录,其余参数原样透传。
#
# /opt/entrypoint.sh /model --port 8000 --served-model-name llm --max-model-len 4096 ...
#
# 真正的逻辑在 /opt/vllm_launch.py(修 tokenizer + 滑窗守卫 + head_size 补丁),
# 这里只负责把加速卡运行环境准备好,然后 exec 过去。
set -u
export PYTHONPATH="/usr/local/corex/lib64/python3/dist-packages${PYTHONPATH:+:$PYTHONPATH}"
export LD_LIBRARY_PATH="/usr/local/corex/lib64:/usr/local/openmpi/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export PATH="/usr/local/corex/bin:/usr/local/corex/lib64/python3/dist-packages/bin:$PATH"
export PYTHONUNBUFFERED=1
exec python3 /opt/vllm_launch.py "$@"