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
15c75e41
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ba0e732eb059b9eb3afe4b643be471d93154d1cc"
Unverified
Commit
15c75e41
authored
Sep 11, 2024
by
Lianmin Zheng
Committed by
GitHub
Sep 11, 2024
Browse files
[Fix] Fix --disable-flashinfer (#1389)
parent
224200e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+2
-0
No files found.
python/sglang/srt/server_args.py
View file @
15c75e41
...
@@ -140,11 +140,13 @@ class ServerArgs:
...
@@ -140,11 +140,13 @@ class ServerArgs:
"The option '--disable-flashinfer' will be deprecated in the next release. "
"The option '--disable-flashinfer' will be deprecated in the next release. "
"Please use '--attention-backend triton' instead."
"Please use '--attention-backend triton' instead."
)
)
self
.
attention_backend
=
"triton"
if
self
.
disable_flashinfer_sampling
:
if
self
.
disable_flashinfer_sampling
:
logger
.
warning
(
logger
.
warning
(
"The option '--disable-flashinfer-sampling' will be deprecated in the next release. "
"The option '--disable-flashinfer-sampling' will be deprecated in the next release. "
"Please use '--sampling-backend pytorch' instead. "
"Please use '--sampling-backend pytorch' instead. "
)
)
self
.
sampling_backend
=
"pytorch"
# Model-specific patches
# Model-specific patches
if
"Alibaba-NLP/gte-Qwen2-1.5B-instruct"
==
self
.
model_path
:
if
"Alibaba-NLP/gte-Qwen2-1.5B-instruct"
==
self
.
model_path
:
...
...
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