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
51fda143
Unverified
Commit
51fda143
authored
Jul 19, 2024
by
Ying Sheng
Committed by
GitHub
Jul 19, 2024
Browse files
Update Readme (#660)
Co-authored-by:
Lianmin Zheng
<
lianminzheng@gmail.com
>
parent
dc4e4a6a
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
+5
-6
python/sglang/test/test_programs.py
python/sglang/test/test_programs.py
+1
-1
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+2
-2
test/lang/test_bind_cache.py
test/lang/test_bind_cache.py
+1
-1
test/lang/test_tracing.py
test/lang/test_tracing.py
+1
-1
test/srt/test_httpserver_llava.py
test/srt/test_httpserver_llava.py
+0
-1
No files found.
python/sglang/test/test_programs.py
View file @
51fda143
...
@@ -306,7 +306,7 @@ def test_image_qa():
...
@@ -306,7 +306,7 @@ def test_image_qa():
assert
(
assert
(
"taxi"
in
state
.
messages
()[
-
1
][
"content"
]
"taxi"
in
state
.
messages
()[
-
1
][
"content"
]
or
"car"
in
state
.
messages
()[
-
1
][
"content"
]
or
"car"
in
state
.
messages
()[
-
1
][
"content"
]
)
)
,
f
"
{
state
.
messages
()[
-
1
][
'content'
]
}
"
def
test_stream
():
def
test_stream
():
...
...
python/sglang/test/test_utils.py
View file @
51fda143
...
@@ -6,9 +6,9 @@ from functools import partial
...
@@ -6,9 +6,9 @@ from functools import partial
import
numpy
as
np
import
numpy
as
np
import
requests
import
requests
from
sglang.backend.openai
import
OpenAI
from
sglang.backend.runtime_endpoint
import
RuntimeEndpoint
from
sglang.global_config
import
global_config
from
sglang.global_config
import
global_config
from
sglang.lang.backend.openai
import
OpenAI
from
sglang.lang.backend.runtime_endpoint
import
RuntimeEndpoint
from
sglang.utils
import
get_exception_traceback
from
sglang.utils
import
get_exception_traceback
...
...
test/lang/test_bind_cache.py
View file @
51fda143
import
unittest
import
unittest
import
sglang
as
sgl
import
sglang
as
sgl
from
sglang.backend.runtime_endpoint
import
RuntimeEndpoint
from
sglang.
lang.
backend.runtime_endpoint
import
RuntimeEndpoint
class
TestBind
(
unittest
.
TestCase
):
class
TestBind
(
unittest
.
TestCase
):
...
...
test/lang/test_tracing.py
View file @
51fda143
import
unittest
import
unittest
import
sglang
as
sgl
import
sglang
as
sgl
from
sglang.backend.base_backend
import
BaseBackend
from
sglang.
lang.
backend.base_backend
import
BaseBackend
from
sglang.lang.chat_template
import
get_chat_template
from
sglang.lang.chat_template
import
get_chat_template
...
...
test/srt/test_httpserver_llava.py
View file @
51fda143
...
@@ -10,7 +10,6 @@ The image features a man standing on the back of a yellow taxi cab, holding
...
@@ -10,7 +10,6 @@ The image features a man standing on the back of a yellow taxi cab, holding
import
argparse
import
argparse
import
asyncio
import
asyncio
import
json
import
json
import
time
import
aiohttp
import
aiohttp
import
requests
import
requests
...
...
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