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
65e89bae
Unverified
Commit
65e89bae
authored
Aug 13, 2024
by
Yineng Zhang
Committed by
GitHub
Aug 13, 2024
Browse files
fix: not use the default port (#1068)
parent
6a38efa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/test/runners.py
python/sglang/test/runners.py
+2
-0
No files found.
python/sglang/test/runners.py
View file @
65e89bae
...
@@ -174,6 +174,7 @@ class SRTRunner:
...
@@ -174,6 +174,7 @@ class SRTRunner:
tp_size
=
1
,
tp_size
=
1
,
torch_dtype
=
torch
.
float16
,
torch_dtype
=
torch
.
float16
,
is_generation_model
=
None
,
is_generation_model
=
None
,
port
=
5157
,
):
):
self
.
is_generation_model
=
(
self
.
is_generation_model
=
(
is_generation_model
(
model_path
)
is_generation_model
(
model_path
)
...
@@ -184,6 +185,7 @@ class SRTRunner:
...
@@ -184,6 +185,7 @@ class SRTRunner:
model_path
=
model_path
,
model_path
=
model_path
,
tp_size
=
tp_size
,
tp_size
=
tp_size
,
dtype
=
get_dtype_str
(
torch_dtype
),
dtype
=
get_dtype_str
(
torch_dtype
),
port
=
port
,
)
)
def
forward
(
def
forward
(
...
...
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