vlm: enable GLM4.1V server testing & fix video processing (#10095)
Signed-off-by: Xinyuan Tong <xinyuantong.cs@gmail.com> Co-authored-by: Binyao Jiang <byjiang1996@gmail.com>
This commit is contained in:
@@ -217,31 +217,27 @@ class TestKimiVLServer(ImageOpenAITestMixin):
|
||||
pass
|
||||
|
||||
|
||||
# Skip for ci test
|
||||
# class TestGLM41VServer(TestOpenAIVisionServer):
|
||||
# @classmethod
|
||||
# def setUpClass(cls):
|
||||
# cls.model = "zai-org/GLM-4.1V-9B-Thinking"
|
||||
# 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,
|
||||
# other_args=[
|
||||
# "--trust-remote-code",
|
||||
# "--mem-fraction-static",
|
||||
# "0.68",
|
||||
# "--cuda-graph-max-bs",
|
||||
# "4",
|
||||
# "--reasoning-parser",
|
||||
# "glm45",
|
||||
# ],
|
||||
# )
|
||||
# cls.base_url += "/v1"
|
||||
|
||||
# def test_video_chat_completion(self):
|
||||
# self._test_video_chat_completion()
|
||||
class TestGLM41VServer(ImageOpenAITestMixin, VideoOpenAITestMixin):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = "zai-org/GLM-4.1V-9B-Thinking"
|
||||
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,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--mem-fraction-static",
|
||||
"0.68",
|
||||
"--cuda-graph-max-bs",
|
||||
"4",
|
||||
"--reasoning-parser",
|
||||
"glm45",
|
||||
],
|
||||
)
|
||||
cls.base_url += "/v1"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user