Use explicit MetaX Python and vLLM paths
All checks were successful
Build and verify Qwen2.5 compatibility engines / docker (push) Successful in 13s
All checks were successful
Build and verify Qwen2.5 compatibility engines / docker (push) Successful in 13s
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
vllm_real="$(dirname "$(readlink -f "$0")")/vllm_real"
|
||||
python_bin="${MODELHUB_COMPAT_PYTHON:-python3}"
|
||||
|
||||
if [[ "${1:-}" != "serve" || -z "${2:-}" ]]; then
|
||||
exec "$vllm_real" "$@"
|
||||
@@ -22,9 +23,9 @@ for ((i=0; i<${#args[@]}; i++)); do
|
||||
done
|
||||
|
||||
if [[ -n "$tokenizer_dir" && -d "$tokenizer_dir" ]]; then
|
||||
prepared="$(python3 /opt/modelhub/engine_compat.py "$model_dir" "$tokenizer_dir")"
|
||||
prepared="$("$python_bin" /opt/modelhub/engine_compat.py "$model_dir" "$tokenizer_dir")"
|
||||
else
|
||||
prepared="$(python3 /opt/modelhub/engine_compat.py "$model_dir")"
|
||||
prepared="$("$python_bin" /opt/modelhub/engine_compat.py "$model_dir")"
|
||||
tokenizer_dir=""
|
||||
fi
|
||||
if [[ -z "$prepared" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user