Compare commits
3 Commits
d32822c5d2
...
5e9b7c292a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e9b7c292a | ||
|
|
28102196cd | ||
|
|
e7247bd57b |
@@ -16,14 +16,14 @@ MANIFEST=${BUNDLE_DIR}/SHA256SUMS
|
|||||||
}
|
}
|
||||||
|
|
||||||
mapfile -t artifacts < <(awk '{print $2}' "$MANIFEST")
|
mapfile -t artifacts < <(awk '{print $2}' "$MANIFEST")
|
||||||
[[ "${#artifacts[@]}" -eq 14 ]] || {
|
[[ "${#artifacts[@]}" -eq 16 ]] || {
|
||||||
printf 'expected 14 prebuilt CoreX artifacts, found %s\n' \
|
printf 'expected 16 prebuilt CoreX artifacts, found %s\n' \
|
||||||
"${#artifacts[@]}" >&2
|
"${#artifacts[@]}" >&2
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
|
||||||
for artifact in "${artifacts[@]}"; do
|
for artifact in "${artifacts[@]}"; do
|
||||||
[[ "$artifact" == corex_*.so && "$artifact" != */* ]] || {
|
[[ ("$artifact" == corex_*.so || "$artifact" == ix_full_bridge.so) && "$artifact" != */* ]] || {
|
||||||
printf 'invalid prebuilt artifact name: %s\n' "$artifact" >&2
|
printf 'invalid prebuilt artifact name: %s\n' "$artifact" >&2
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ install_patch_file \
|
|||||||
"${VLLM_OVERRIDE_ROOT}/model_executor/layers/sampler.py" \
|
"${VLLM_OVERRIDE_ROOT}/model_executor/layers/sampler.py" \
|
||||||
"${VLLM_ROOT}/model_executor/layers/sampler.py"
|
"${VLLM_ROOT}/model_executor/layers/sampler.py"
|
||||||
|
|
||||||
build_stage "installing hash-pinned CoreX 3.2.3 extensions"
|
build_stage "installing hash-pinned CoreX 3.2.3 extensions (16 prebuilt .so)"
|
||||||
bash ./install_prebuilt_corex.sh "${VLLM_ROOT}"
|
bash ./install_prebuilt_corex.sh "${VLLM_ROOT}"
|
||||||
|
|
||||||
build_stage "installing BI100 runtime modules"
|
build_stage "installing BI100 runtime modules"
|
||||||
@@ -261,31 +261,6 @@ if b"max_completion_tokens" not in installed:
|
|||||||
raise SystemExit("protocol.py missing max_completion_tokens field")
|
raise SystemExit("protocol.py missing max_completion_tokens field")
|
||||||
PY
|
PY
|
||||||
|
|
||||||
build_stage "building missing CoreX extensions on-site"
|
|
||||||
# corex_moe_index_combine: has .cu + build script but no prebuilt .so
|
|
||||||
# Uses CUB block_scan from CCCL upstream — must compile with CoreX clang
|
|
||||||
if [[ ! -f "${VLLM_ROOT}/corex_moe_index_combine.so" ]]; then
|
|
||||||
COREX_ROOT=${COREX_ROOT:-/usr/local/corex}
|
|
||||||
# Try multiple CoreX paths (3.2.3 may be at different locations)
|
|
||||||
for corex_candidate in \
|
|
||||||
/usr/local/corex-3.2.3 \
|
|
||||||
/usr/local/corex \
|
|
||||||
/opt/corex; do
|
|
||||||
if [[ -x "${corex_candidate}/bin/clang++" ]]; then
|
|
||||||
COREX_ROOT="${corex_candidate}"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [[ -x "${COREX_ROOT}/bin/clang++" ]]; then
|
|
||||||
build_stage "compiling corex_moe_index_combine.so (CUB block_scan)"
|
|
||||||
bash ./build_corex_moe_index_combine.sh "${VLLM_ROOT}" || {
|
|
||||||
echo "[WARN] corex_moe_index_combine build failed — kernel disabled"
|
|
||||||
}
|
|
||||||
else
|
|
||||||
echo "[WARN] CoreX compiler not found — corex_moe_index_combine disabled"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
build_stage "compiling submission Python sources"
|
build_stage "compiling submission Python sources"
|
||||||
find . -path './wheels' -prune -o -name '*.py' -print0 | xargs -0 python3 -m py_compile
|
find . -path './wheels' -prune -o -name '*.py' -print0 | xargs -0 python3 -m py_compile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user