Files
sglang/scripts/ci_install_dependency.sh

22 lines
695 B
Bash
Raw Normal View History

# Install the dependency in CI.
2024-10-30 02:49:08 -07:00
# Use repo from environment variable, passed from GitHub Actions
FLASHINFER_REPO="${FLASHINFER_REPO:-https://flashinfer.ai/whl/cu121/torch2.4}"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash "${SCRIPT_DIR}/killall_sglang.sh"
2024-11-30 00:24:30 -08:00
2024-10-26 04:32:36 -07:00
pip install --upgrade pip
2024-11-30 01:41:16 +08:00
pip install -e "python[all]" --find-links https://flashinfer.ai/whl/cu121/torch2.4/flashinfer/
2024-12-01 01:47:30 -08:00
# Force reinstall flashinfer
pip install flashinfer -i ${FLASHINFER_REPO} --force-reinstall
2024-12-01 01:47:30 -08:00
2024-11-09 15:43:20 -08:00
pip install transformers==4.45.2 sentence_transformers accelerate peft
2024-12-01 01:47:30 -08:00
# For compling eagle kernels
pip install cutex
2024-12-01 01:47:30 -08:00
# For compling xgrammar kernels
pip install cuda-python nvidia-cuda-nvrtc-cu12