fix: connect ex_engine to Docker build pipeline
Path breaks fixed: 1. Dockerfile: COPY entire ex_engine/ instead of 5 individual files 2. patch_ops.sh: EX_ENGINE_DIR fallback to /workspace/ex_engine 3. build_moe_bridge.sh: search csrc/ under both SCRIPT_DIR and SCRIPT_DIR/ex_engine New build steps added to patch_ops.sh: - Build gemm_grouped.so (CUTLASS Cu10 grouped GEMM, verified on device) - Build corex_batched_gemm.so (CUTLASS batched GEMM for decode) - Build ix_moe_bridge.so (7-step fused MoE pipeline) - Deploy all ex_engine/python/*.py to VLLM_ROOT/ex_engine/python/ Previously broken: ix_ops.py, patch_vllm_ops.py, ix_startup_patch.py were never deployed because EX_ENGINE_DIR resolved to nonexistent path. xllm_activation/norm/rope/cache.so were copied but had no Python caller.
This commit is contained in:
@@ -18,17 +18,26 @@ echo "[moe_bridge] Building ix_moe_bridge.so"
|
||||
echo "[moe_bridge] Script dir: ${SCRIPT_DIR}"
|
||||
|
||||
# --- Locate sources ---
|
||||
MOE_CU="${SCRIPT_DIR}/ex_engine/csrc/moe_ops_impl.cu"
|
||||
BRIDGE_CPP="${SCRIPT_DIR}/ex_engine/csrc/ix_full_bridge_v2.cpp"
|
||||
# Support both layouts:
|
||||
# 1. SCRIPT_DIR=/workspace/ex_engine → csrc/ is direct child
|
||||
# 2. SCRIPT_DIR=/workspace/qwen3_6_scripts/ex_engine_src → csrc/ is direct child
|
||||
MOE_CU=""
|
||||
BRIDGE_CPP=""
|
||||
for base in "${SCRIPT_DIR}" "${SCRIPT_DIR}/ex_engine"; do
|
||||
[[ -f "${base}/csrc/moe_ops_impl.cu" ]] && MOE_CU="${base}/csrc/moe_ops_impl.cu"
|
||||
[[ -f "${base}/csrc/ix_full_bridge_v2.cpp" ]] && BRIDGE_CPP="${base}/csrc/ix_full_bridge_v2.cpp"
|
||||
done
|
||||
|
||||
if [[ ! -f "$MOE_CU" ]]; then
|
||||
echo "[moe_bridge] ERROR: $MOE_CU not found" >&2
|
||||
if [[ -z "$MOE_CU" ]]; then
|
||||
echo "[moe_bridge] ERROR: moe_ops_impl.cu not found under ${SCRIPT_DIR}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -f "$BRIDGE_CPP" ]]; then
|
||||
echo "[moe_bridge] ERROR: $BRIDGE_CPP not found" >&2
|
||||
if [[ -z "$BRIDGE_CPP" ]]; then
|
||||
echo "[moe_bridge] ERROR: ix_full_bridge_v2.cpp not found under ${SCRIPT_DIR}" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "[moe_bridge] MOE_CU: ${MOE_CU}"
|
||||
echo "[moe_bridge] BRIDGE_CPP: ${BRIDGE_CPP}"
|
||||
|
||||
# --- Locate libraries ---
|
||||
COREX_ROOT="${COREX_ROOT:-/usr/local/corex}"
|
||||
|
||||
Reference in New Issue
Block a user