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
dafb6a52
Unverified
Commit
dafb6a52
authored
Oct 11, 2024
by
Lianmin Zheng
Committed by
GitHub
Oct 11, 2024
Browse files
[Fix] Fix the style of test_large_max_new_tokens.py (#1638)
parent
862cd265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
test/srt/test_large_max_new_tokens.py
test/srt/test_large_max_new_tokens.py
+2
-4
No files found.
test/srt/test_large_max_new_tokens.py
View file @
dafb6a52
import
json
import
os
import
time
import
unittest
from
concurrent.futures
import
ThreadPoolExecutor
...
...
@@ -16,7 +14,7 @@ from sglang.test.test_utils import (
)
class
Test
OpenAIServer
(
unittest
.
TestCase
):
class
Test
LargeMaxNewTokens
(
unittest
.
TestCase
):
@
classmethod
def
setUpClass
(
cls
):
cls
.
model
=
DEFAULT_MODEL_NAME_FOR_TEST
...
...
@@ -57,7 +55,7 @@ class TestOpenAIServer(unittest.TestCase):
num_requests
=
4
futures
=
[]
with
ThreadPoolExecutor
(
16
)
as
executor
:
with
ThreadPoolExecutor
(
num_requests
)
as
executor
:
for
i
in
range
(
num_requests
):
futures
.
append
(
executor
.
submit
(
self
.
run_chat_completion
))
...
...
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