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
cd8c3ccd
"vscode:/vscode.git/clone" did not exist on "2bf2566fed64ffff6ff878f252a5b29bfccbfced"
Unverified
Commit
cd8c3ccd
authored
Feb 03, 2024
by
Liangsheng Yin
Committed by
GitHub
Feb 03, 2024
Browse files
Fix `is_multimodal_model` judge (#132)
parent
9c121f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+2
-2
No files found.
python/sglang/srt/utils.py
View file @
cd8c3ccd
...
...
@@ -233,12 +233,12 @@ def wrap_kernel_launcher(kernel):
def
is_multimodal_model
(
model
):
if
isinstance
(
model
,
str
):
return
"llava"
or
"yi-vl"
in
model
return
"llava"
in
model
or
"yi-vl"
in
model
from
sglang.srt.model_config
import
ModelConfig
if
isinstance
(
model
,
ModelConfig
):
model_path
=
model
.
path
.
lower
()
return
"llava"
in
model_path
or
"yi-vl"
in
model_path
return
"llava"
in
model_path
or
"yi-vl"
in
model_path
raise
Exception
(
"unrecognized type"
)
...
...
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