Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhaoyu6
sglang
Commits
772d2a19
"research/compression/README.md" did not exist on "b181b9885cd92804dc8de5c339b03bfcd6877d98"
Unverified
Commit
772d2a19
authored
Apr 03, 2025
by
Xiaoyu Zhang
Committed by
GitHub
Apr 03, 2025
Browse files
try to fix ci oserror (#5024)
parent
9d0b36c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
scripts/ci_install_dependency.sh
scripts/ci_install_dependency.sh
+15
-8
No files found.
scripts/ci_install_dependency.sh
View file @
772d2a19
...
@@ -8,19 +8,26 @@ FLASHINFER_REPO="${FLASHINFER_REPO:-https://flashinfer.ai/whl/cu124/torch2.5/fla
...
@@ -8,19 +8,26 @@ FLASHINFER_REPO="${FLASHINFER_REPO:-https://flashinfer.ai/whl/cu124/torch2.5/fla
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
bash
"
${
SCRIPT_DIR
}
/killall_sglang.sh"
bash
"
${
SCRIPT_DIR
}
/killall_sglang.sh"
# Clean up existing installations
pip uninstall
-y
flashinfer flashinfer_python sgl-kernel sglang vllm
||
true
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
*
# Update pip
pip
install
--upgrade
pip
pip
install
--upgrade
pip
pip uninstall flashinfer
-y
pip
install
-e
"python[all]"
--find-links
https://flashinfer.ai/whl/cu124/torch2.5/flashinfer-python
rm
-rf
/root/.cache/flashinfer
# Install flashinfer and sgl-kernel
# Force reinstall flashinfer and torch_memory_saver
pip
install
flashinfer_python
==
0.2.3
--find-links
${
FLASHINFER_REPO
}
--no-cache-dir
pip
install
flashinfer_python
==
0.2.3
--find-links
${
FLASHINFER_REPO
}
--force-reinstall
--no-deps
pip
install
sgl-kernel
==
0.0.6
--no-cache-dir
pip
install
sgl-kernel
==
0.0.6
--force-reinstall
# Install the main package
pip
install
-e
"python[all]"
--find-links
${
FLASHINFER_REPO
}
# Install additional dependencies
pip
install
torch_memory_saver
pip
install
torch_memory_saver
pip
install
transformers
==
4.50.0 sentence_transformers
accelerate
==
1.4.0 peft pandas datasets timm torchaudio
pip
install
transformers
==
4.50.0 sentence_transformers
accelerate
==
1.4.0 peft pandas datasets timm torchaudio
# For compling xgrammar kernels
# For compling xgrammar kernels
pip
install
cuda-python nvidia-cuda-nvrtc-cu12
pip
install
cuda-python nvidia-cuda-nvrtc-cu12
pip uninstall vllm
-y
||
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment