From 44003fa829e235531d0abce59c83c6dc7a03d0a8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Aug 2026 15:09:31 +0000 Subject: [PATCH] =?UTF-8?q?fix(probe):=20replace=20Python=20probe=20with?= =?UTF-8?q?=20direct=20shell=20=E2=80=94=20guaranteed=20build=20log=20outp?= =?UTF-8?q?ut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python probe may have been silently swallowed by build system. Shell commands (ls, find, wc, grep) always print to stdout. Probes: - ls /usr/local/corex/lib64/libcorex_*.so → do .so files exist? - ls $VLLM/model_executor/models/corex_*.py → do wrappers exist? - find $VLLM -name '*corex*' → any corex files anywhere? - wc/grep native qwen3_5.py → does it reference corex? Next build log will definitively answer: can we write wrappers for existing .so files, or must we optimize pure PyTorch? --- qwen3_6_scripts/patch_ops.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/qwen3_6_scripts/patch_ops.sh b/qwen3_6_scripts/patch_ops.sh index 49dcc66e..c1e10a18 100755 --- a/qwen3_6_scripts/patch_ops.sh +++ b/qwen3_6_scripts/patch_ops.sh @@ -66,13 +66,25 @@ else echo "[patch_ops] WARNING: transformers/models not found" fi -# 1b. CoreX API probe — MUST run BEFORE deploying our qwen3_5.py -# Discovers corex_gdn.py, corex_moe.py, corex_fa2.py interfaces from base image. -# Also inspects native qwen3_5.py before we overwrite it. -# Results go to /workspace/corex_probe_result.json + build log. -echo "[patch_ops] Running CoreX API probe..." -python3 ./probe_corex_api.py 2>&1 -echo "[patch_ops] CoreX probe done (see above for results)" +# 1b. CoreX probe — direct shell, guaranteed to show in build log +echo "[probe] === CoreX .so files ===" +ls -la /usr/local/corex/lib64/libcorex_*.so 2>/dev/null || echo "[probe] NO .so files in /usr/local/corex/lib64/" +echo "[probe] === CoreX Python wrappers ===" +ls -la "$VLLM/model_executor/models/corex_"*.py 2>/dev/null || echo "[probe] NO corex_*.py in $VLLM/model_executor/models/" +echo "[probe] === Native qwen3_5.py ===" +if [ -f "$VLLM/model_executor/models/qwen3_5.py" ]; then + wc -lc "$VLLM/model_executor/models/qwen3_5.py" + grep -c "corex_gdn\|corex_moe\|CoreXGDN" "$VLLM/model_executor/models/qwen3_5.py" || echo "[probe] no corex refs" +else + echo "[probe] qwen3_5.py NOT in base image" +fi +echo "[probe] === All model files (corex related) ===" +find "$VLLM" -name "*corex*" -type f 2>/dev/null || echo "[probe] zero corex files anywhere in vllm" +echo "[probe] === LD_LIBRARY_PATH ===" +echo "$LD_LIBRARY_PATH" +echo "[probe] === /usr/local/corex/ tree ===" +find /usr/local/corex/lib64/ -name "*.so" 2>/dev/null | head -20 || echo "[probe] no .so in corex lib64" +echo "[probe] ===========================" # 2. Model module — qwen3_5.py with CoreX dispatch (CCCL env_dispatch pattern). # Our version tries to import corex_gdn/corex_moe from the base image.