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
c3f1aac8
"tests/vscode:/vscode.git/clone" did not exist on "7ad0485aceff89b192a515320f839bdae4a9ad94"
Unverified
Commit
c3f1aac8
authored
Jul 22, 2024
by
Ying Sheng
Committed by
GitHub
Jul 22, 2024
Browse files
Tune params (#696)
parent
d198791f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+5
-5
No files found.
python/sglang/srt/server_args.py
View file @
c3f1aac8
...
...
@@ -70,15 +70,15 @@ class ServerArgs:
self
.
tokenizer_path
=
self
.
model_path
if
self
.
mem_fraction_static
is
None
:
if
self
.
tp_size
>=
16
:
self
.
mem_fraction_static
=
0.
74
self
.
mem_fraction_static
=
0.
80
elif
self
.
tp_size
>=
8
:
self
.
mem_fraction_static
=
0.
7
8
self
.
mem_fraction_static
=
0.8
4
elif
self
.
tp_size
>=
4
:
self
.
mem_fraction_static
=
0.8
2
self
.
mem_fraction_static
=
0.8
6
elif
self
.
tp_size
>=
2
:
self
.
mem_fraction_static
=
0.85
else
:
self
.
mem_fraction_static
=
0.88
else
:
self
.
mem_fraction_static
=
0.89
if
isinstance
(
self
.
additional_ports
,
int
):
self
.
additional_ports
=
[
self
.
additional_ports
]
elif
self
.
additional_ports
is
None
:
...
...
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