-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
airootfs/root/customize_airootfs/scripts/1000-sglang.sh.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
{% if platform == "cuda" %} | ||
# clone repository | ||
git clone "{{ repositories.sglang }}.git" | ||
|
||
# sglang dependencies | ||
pushd "sglang" | ||
# create venv | ||
python3 -m venv venv | ||
|
||
# activate venv | ||
source venv/bin/activate | ||
# use repo with patched packages | ||
export PIP_EXTRA_INDEX_URL="https://sasha0552.github.io/pascal-pkgs-ci/" | ||
|
||
# install dependencies | ||
pip3 install -e "python[all]" | ||
|
||
# install flashinfer | ||
pip3 install flashinfer-pascal | ||
deactivate | ||
popd | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters