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
change
sglang
Commits
fc78640e
Unverified
Commit
fc78640e
authored
Dec 01, 2024
by
Yineng Zhang
Committed by
GitHub
Dec 01, 2024
Browse files
minor: support flashinfer nightly (#2295)
parent
906d795f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
.github/workflows/pr-test.yml
.github/workflows/pr-test.yml
+25
-0
python/sglang/check_env.py
python/sglang/check_env.py
+1
-1
scripts/ci_install_dependency.sh
scripts/ci_install_dependency.sh
+7
-5
No files found.
.github/workflows/pr-test.yml
View file @
fc78640e
...
...
@@ -12,6 +12,15 @@ on:
-
"
python/sglang/**"
-
"
test/**"
workflow_dispatch
:
inputs
:
version
:
description
:
"
FlashInfer
version"
required
:
true
type
:
choice
default
:
'
release'
options
:
-
'
release'
-
'
nightly'
concurrency
:
group
:
pr-test-${{ github.ref }}
...
...
@@ -26,6 +35,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -46,6 +57,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -66,6 +79,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -92,6 +107,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -127,6 +144,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -156,6 +175,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -185,6 +206,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
@@ -207,6 +230,8 @@ jobs:
uses
:
actions/checkout@v3
-
name
:
Install dependencies
env
:
FLASHINFER_REPO
:
${{ inputs.version == 'nightly' && 'https://flashinfer.ai/whl/nightly/cu121/torch2.4/' || 'https://flashinfer.ai/whl/cu121/torch2.4/' }}
run
:
|
bash scripts/ci_install_dependency.sh
...
...
python/sglang/check_env.py
View file @
fc78640e
...
...
@@ -9,7 +9,7 @@ from collections import OrderedDict, defaultdict
import
torch
# List of packages to check versions
for
# List of packages to check versions
PACKAGE_LIST
=
[
"sglang"
,
"flashinfer"
,
...
...
scripts/ci_install_dependency.sh
View file @
fc78640e
"""
Install the dependency in CI.
"""
# Install the dependency in CI.
./killall_sglang.sh
# 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"
pip
install
--upgrade
pip
pip
install
-e
"python[all]"
--find-links
https://flashinfer.ai/whl/cu121/torch2.4/flashinfer/
# Force reinstall flashinfer
pip
install
flashinfer
-i
https://flashinfer.ai/whl/cu121/torch2.4/
--force-reinstall
pip
install
flashinfer
-i
${
FLASHINFER_REPO
}
--force-reinstall
pip
install
transformers
==
4.45.2 sentence_transformers accelerate peft
...
...
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