Unverified Commit 96ebcaa3 authored by Lucas Wilkinson's avatar Lucas Wilkinson Committed by GitHub
Browse files

[Misc] Make EP kernels install script support uv (#25785)


Signed-off-by: default avatarLucas Wilkinson <lwilkins@redhat.com>
parent 5db1870b
...@@ -10,8 +10,12 @@ if [ ! -d "$WORKSPACE" ]; then ...@@ -10,8 +10,12 @@ if [ ! -d "$WORKSPACE" ]; then
mkdir -p $WORKSPACE mkdir -p $WORKSPACE
fi fi
# configurable pip command (default: pip3)
PIP_CMD=${PIP_CMD:-pip3}
CUDA_HOME=${CUDA_HOME:-/usr/local/cuda}
# install dependencies if not installed # install dependencies if not installed
pip3 install cmake torch ninja $PIP_CMD install cmake torch ninja
# build nvshmem # build nvshmem
pushd $WORKSPACE pushd $WORKSPACE
...@@ -110,9 +114,7 @@ clone_repo() { ...@@ -110,9 +114,7 @@ clone_repo() {
pushd $WORKSPACE pushd $WORKSPACE
clone_repo "https://github.com/ppl-ai/pplx-kernels" "pplx-kernels" "setup.py" "c336faf" clone_repo "https://github.com/ppl-ai/pplx-kernels" "pplx-kernels" "setup.py" "c336faf"
cd pplx-kernels cd pplx-kernels
# see https://github.com/pypa/pip/issues/9955#issuecomment-838065925 $PIP_CMD install --no-build-isolation -vvv -e .
# PIP_NO_BUILD_ISOLATION=0 disables build isolation
PIP_NO_BUILD_ISOLATION=0 pip install -vvv -e .
popd popd
# build and install deepep, require pytorch installed # build and install deepep, require pytorch installed
...@@ -120,5 +122,5 @@ pushd $WORKSPACE ...@@ -120,5 +122,5 @@ pushd $WORKSPACE
clone_repo "https://github.com/deepseek-ai/DeepEP" "DeepEP" "setup.py" "e3908bf" clone_repo "https://github.com/deepseek-ai/DeepEP" "DeepEP" "setup.py" "e3908bf"
cd DeepEP cd DeepEP
export NVSHMEM_DIR=$WORKSPACE/nvshmem_install export NVSHMEM_DIR=$WORKSPACE/nvshmem_install
PIP_NO_BUILD_ISOLATION=0 pip install -vvv -e . $PIP_CMD install --no-build-isolation -vvv -e .
popd popd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment