support llava video (#426)

This commit is contained in:
Yuanhan Zhang
2024-05-14 07:57:00 +08:00
committed by GitHub
parent 5dc55a5f02
commit 0992d85f92
37 changed files with 1139 additions and 222 deletions

View File

@@ -15,6 +15,7 @@ from sglang.lang.ir import (
SglRoleBegin,
SglRoleEnd,
SglSelect,
SglVideo,
)
@@ -151,6 +152,10 @@ def image(expr: SglExpr):
return SglImage(expr)
def video(path: str, num_frames: int):
return SglVideo(path, num_frames)
def select(
name: Optional[str] = None,
choices: List[str] = None,