fix(critical): patch_ops.sh cwd bug — all cp/deploy ./paths resolved against Dockerfile WORKDIR=/workspace/ instead of script dir
Root cause: patch_ops.sh uses relative paths (./api_server.py, ./reasoning/, etc.) but never cd's into its own directory. Dockerfile sets WORKDIR=/workspace/ and runs 'bash /workspace/qwen3_6_scripts/patch_ops.sh', so cwd=/workspace/ at execution time. Every 'cp ./xxx' and 'deploy ./xxx' silently fails because the files are at /workspace/qwen3_6_scripts/xxx, not /workspace/xxx. Without set -e, the script completes with exit 0, Docker build succeeds, but NO patches are actually applied. Result: the original vllm 0.6.3 api_server.py runs (no reasoning-parser support), sees --reasoning-parser qwen3 as unrecognized, and exits with argparse error. Fix: 1. cd "$(dirname "$0")" at script start → all ./paths resolve correctly 2. set -eo pipefail → any failed cp now fails the build immediately
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -eo pipefail
|
||||||
# BI-V100 engine patches for Qwen3.6-35B-A3B (Qwen3_5 architecture)
|
# BI-V100 engine patches for Qwen3.6-35B-A3B (Qwen3_5 architecture)
|
||||||
#
|
#
|
||||||
# All modifications are FULL FILE REPLACEMENTS — no AST patch scripts.
|
# All modifications are FULL FILE REPLACEMENTS — no AST patch scripts.
|
||||||
@@ -8,6 +9,11 @@
|
|||||||
# Base image: git.modelhub.org.cn:9443/enginex-iluvatar/bi100-3.2.3-x86-ubuntu20.04-py3.10-poc-llm-infer:v1.2.3
|
# Base image: git.modelhub.org.cn:9443/enginex-iluvatar/bi100-3.2.3-x86-ubuntu20.04-py3.10-poc-llm-infer:v1.2.3
|
||||||
# vllm install path: /usr/local/corex/lib/python3/dist-packages/vllm/
|
# vllm install path: /usr/local/corex/lib/python3/dist-packages/vllm/
|
||||||
|
|
||||||
|
# CRITICAL: cd into this script's directory so all ./relative paths work
|
||||||
|
# regardless of WORKDIR in Dockerfile or caller's cwd.
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
echo "[patch_ops] working directory: $(pwd)"
|
||||||
|
|
||||||
VLLM=/usr/local/corex/lib/python3/dist-packages/vllm
|
VLLM=/usr/local/corex/lib/python3/dist-packages/vllm
|
||||||
VLLM64=/usr/local/corex/lib64/python3/dist-packages/vllm
|
VLLM64=/usr/local/corex/lib64/python3/dist-packages/vllm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user