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
94cde109
Unverified
Commit
94cde109
authored
Oct 21, 2024
by
Liangsheng Yin
Committed by
GitHub
Oct 21, 2024
Browse files
Llama3.2 vision model support (#1551)
parent
00611286
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
test/srt/test_vision_openai_server.py
test/srt/test_vision_openai_server.py
+23
-1
No files found.
test/srt/test_vision_openai_server.py
View file @
94cde109
...
...
@@ -171,7 +171,7 @@ class TestOpenAIVisionServer(unittest.TestCase):
assert
isinstance
(
text
,
str
)
print
(
text
)
assert
"man"
in
text
or
"cab"
in
text
,
text
assert
"logo"
in
text
,
text
assert
"logo"
in
text
or
'"S"'
in
text
or
"SG"
in
text
,
text
assert
response
.
id
assert
response
.
created
assert
response
.
usage
.
prompt_tokens
>
0
...
...
@@ -363,5 +363,27 @@ class TestQWen2VLServer(TestOpenAIVisionServer):
cls
.
base_url
+=
"/v1"
class
TestMllamaServer
(
TestOpenAIVisionServer
):
@
classmethod
def
setUpClass
(
cls
):
cls
.
model
=
"meta-llama/Llama-3.2-11B-Vision-Instruct"
cls
.
base_url
=
DEFAULT_URL_FOR_TEST
cls
.
api_key
=
"sk-123456"
cls
.
process
=
popen_launch_server
(
cls
.
model
,
cls
.
base_url
,
timeout
=
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
,
api_key
=
cls
.
api_key
,
other_args
=
[
"--chat-template"
,
"llama_3_vision"
,
],
)
cls
.
base_url
+=
"/v1"
def
test_video_chat_completion
(
self
):
pass
if
__name__
==
"__main__"
:
unittest
.
main
()
Prev
1
2
Next
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