Files
sglang/scripts/ci_install_dependency.sh

30 lines
967 B
Bash
Raw Normal View History

#!/bin/bash
set -euxo pipefail
# 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/cu124/torch2.5/flashinfer-python}"
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
pip uninstall flashinfer -y
pip install -e "python[all]" --find-links https://flashinfer.ai/whl/cu124/torch2.5/flashinfer-python
2024-12-01 01:47:30 -08:00
rm -rf /root/.cache/flashinfer
# Force reinstall flashinfer and torch_memory_saver
pip install flashinfer_python==0.2.2.post1 --find-links ${FLASHINFER_REPO} --force-reinstall --no-deps
pip install torch_memory_saver --force-reinstall
2024-12-01 01:47:30 -08:00
2025-02-24 05:56:57 -08:00
pip install transformers==4.45.2 sentence_transformers accelerate peft pandas datasets
2024-12-01 01:47:30 -08:00
# For compling xgrammar kernels
pip install cuda-python nvidia-cuda-nvrtc-cu12
2025-01-17 23:42:23 +08:00
# reinstall sgl-kernel
pip install sgl-kernel --force-reinstall --no-deps