Files
sglang/scripts/ci_install_dependency.sh

34 lines
974 B
Bash
Raw Normal View History

#!/bin/bash
# Install the dependency in CI.
set -euxo pipefail
2024-10-30 02:49:08 -07:00
# Kill existing processes
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash "${SCRIPT_DIR}/killall_sglang.sh"
2024-11-30 00:24:30 -08:00
# Update pip
pip install --upgrade pip
2025-04-03 17:45:05 +08:00
# Clean up existing installations
pip uninstall -y flashinfer flashinfer_python sgl-kernel sglang vllm
2025-04-03 17:45:05 +08:00
pip cache purge
rm -rf /root/.cache/flashinfer
rm -rf /usr/local/lib/python3.10/dist-packages/flashinfer*
rm -rf /usr/local/lib/python3.10/dist-packages/sgl_kernel*
# Install the main package
pip install -e "python[dev]"
2025-04-03 17:45:05 +08:00
# Install additional dependencies
pip install mooncake-transfer-engine==0.3.2.post1 nvidia-cuda-nvrtc-cu12
# For lmms_evals evaluating MMMU
git clone --branch v0.3.3 --depth 1 https://github.com/EvolvingLMMs-Lab/lmms-eval.git
pip install -e lmms-eval/
# Install FlashMLA for attention backend tests
pip install git+https://github.com/deepseek-ai/FlashMLA.git
2025-05-12 13:08:40 -07:00
# Install hf_xet
pip install huggingface_hub[hf_xet]