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
ec1c21cd
"vscode:/vscode.git/clone" did not exist on "9b4c4497356d7cd7d8211f53eefd6dd933e12117"
Unverified
Commit
ec1c21cd
authored
Jan 21, 2025
by
Yineng Zhang
Committed by
GitHub
Jan 21, 2025
Browse files
upgrade torch version for sgl-kernel (#3026)
parent
6c856b4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
.github/workflows/pr-test-sgl-kernel.yml
.github/workflows/pr-test-sgl-kernel.yml
+8
-8
sgl-kernel/build.sh
sgl-kernel/build.sh
+1
-1
No files found.
.github/workflows/pr-test-sgl-kernel.yml
View file @
ec1c21cd
...
...
@@ -34,16 +34,16 @@ jobs:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on
:
1-gpu-runner
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v4
with
:
submodules
:
'
recursive'
-
name
:
Install
dependencies
-
name
:
Install
run
:
|
bash scripts/ci_install_dependency.sh
pip3 install torch==2.5.1
pip3 uninstall sgl-kernel -y || true
cd sgl-kernel
git submodule update --init --recursive
pip3 install -e . --force-reinstall
pip3 install .
pip3 list | grep sgl-kernel
-
name
:
Run test
...
...
@@ -57,7 +57,7 @@ jobs:
pip3 uninstall sgl-kernel -y
finish
:
needs
:
[
unit-test
]
needs
:
[
unit-test
,
lint
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Finish
...
...
sgl-kernel/build.sh
View file @
ec1c21cd
...
...
@@ -8,7 +8,7 @@ docker run --rm \
-v
"
$(
pwd
)
"
:/sgl-kernel
\
pytorch/manylinux-builder:cuda
${
CUDA_VERSION
}
\
bash
-c
"
${
PYTHON_ROOT_PATH
}
/bin/pip install --no-cache-dir torch==2.
4.0
--index-url https://download.pytorch.org/whl/cu
${
CUDA_VERSION
//.
}
&&
\
${
PYTHON_ROOT_PATH
}
/bin/pip install --no-cache-dir torch==2.
5.1
--index-url https://download.pytorch.org/whl/cu
${
CUDA_VERSION
//.
}
&&
\
export TORCH_CUDA_ARCH_LIST='7.5 8.0 8.9 9.0+PTX' &&
\
export CUDA_VERSION=
${
CUDA_VERSION
}
&&
\
mkdir -p /usr/lib/x86_64-linux-gnu/ &&
\
...
...
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