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
2148914e
Unverified
Commit
2148914e
authored
Oct 25, 2024
by
Lianmin Zheng
Committed by
GitHub
Oct 25, 2024
Browse files
Fix log parsing in the chunked prefill unit tests (#1793)
parent
def55bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+3
-1
No files found.
python/sglang/test/test_utils.py
View file @
2148914e
...
@@ -640,15 +640,17 @@ STDERR_FILENAME = "stderr.txt"
...
@@ -640,15 +640,17 @@ STDERR_FILENAME = "stderr.txt"
def
read_output
(
output_lines
):
def
read_output
(
output_lines
):
"""Print the output in real time with another thread."""
pt
=
0
pt
=
0
while
pt
>=
0
:
while
pt
>=
0
:
if
pt
>
0
and
os
.
path
.
exists
(
STDERR_FILENAME
):
if
pt
>
0
and
not
os
.
path
.
exists
(
STDERR_FILENAME
):
break
break
lines
=
open
(
STDERR_FILENAME
).
readlines
()
lines
=
open
(
STDERR_FILENAME
).
readlines
()
output_lines
[:]
=
lines
output_lines
[:]
=
lines
for
line
in
lines
[
pt
:]:
for
line
in
lines
[
pt
:]:
print
(
line
,
end
=
""
,
flush
=
True
)
print
(
line
,
end
=
""
,
flush
=
True
)
pt
+=
1
pt
+=
1
time
.
sleep
(
0.1
)
def
run_mmlu_test
(
def
run_mmlu_test
(
...
...
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