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
6790240c
Unverified
Commit
6790240c
authored
Oct 14, 2024
by
Lianmin Zheng
Committed by
GitHub
Oct 14, 2024
Browse files
Fix unit test order to balance the tasks in CI (#1665)
parent
061e5463
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
.github/workflows/pr-test.yml
.github/workflows/pr-test.yml
+2
-2
python/sglang/srt/managers/schedule_batch.py
python/sglang/srt/managers/schedule_batch.py
+1
-0
python/sglang/test/few_shot_gsm8k.py
python/sglang/test/few_shot_gsm8k.py
+4
-1
No files found.
.github/workflows/pr-test.yml
View file @
6790240c
...
...
@@ -76,7 +76,7 @@ jobs:
timeout-minutes
:
20
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 5 --range-end 1
5
python3 run_suite.py --suite minimal --range-begin 5 --range-end 1
6
unit-test-backend-part-3
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
...
...
@@ -96,7 +96,7 @@ jobs:
timeout-minutes
:
20
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 1
5
python3 run_suite.py --suite minimal --range-begin 1
6
performance-test-1-gpu-part-1
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
...
...
python/sglang/srt/managers/schedule_batch.py
View file @
6790240c
...
...
@@ -421,6 +421,7 @@ class ScheduleBatch:
extend_lens
:
List
[
int
]
=
None
extend_num_tokens
:
int
=
None
running_bs
:
int
=
None
decoding_reqs
:
List
[
Req
]
=
None
# Stream
has_stream
:
bool
=
False
...
...
python/sglang/test/few_shot_gsm8k.py
View file @
6790240c
...
...
@@ -76,7 +76,9 @@ def run_eval(args):
def
few_shot_gsm8k
(
s
,
question
):
s
+=
few_shot_examples
+
question
s
+=
sgl
.
gen
(
"answer"
,
max_tokens
=
512
,
stop
=
[
"Question"
,
"Assistant:"
,
"<|separator|>"
]
"answer"
,
max_tokens
=
args
.
max_new_tokens
,
stop
=
[
"Question"
,
"Assistant:"
,
"<|separator|>"
],
)
#####################################
...
...
@@ -131,6 +133,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
"--num-shots"
,
type
=
int
,
default
=
5
)
parser
.
add_argument
(
"--data-path"
,
type
=
str
,
default
=
"test.jsonl"
)
parser
.
add_argument
(
"--num-questions"
,
type
=
int
,
default
=
200
)
parser
.
add_argument
(
"--max-new-tokens"
,
type
=
int
,
default
=
512
)
parser
.
add_argument
(
"--parallel"
,
type
=
int
,
default
=
128
)
parser
.
add_argument
(
"--host"
,
type
=
str
,
default
=
"http://127.0.0.1"
)
parser
.
add_argument
(
"--port"
,
type
=
int
,
default
=
30000
)
...
...
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