-
Notifications
You must be signed in to change notification settings - Fork 736
[Cherry-pick] support video_fps args for video bench (#7077) #7207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/2.5
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -553,6 +553,9 @@ class CompletionRequest(BaseModel): | |
|
|
||
| collect_metrics: Optional[bool] = False | ||
|
|
||
| # NOTE(Wanglongzhi2001): temporary parameter for video understanding benchmark | ||
| video_fps: Optional[float] = None | ||
|
|
||
|
Comment on lines
554
to
+558
|
||
| def to_dict_for_infer(self, request_id=None, prompt=None): | ||
| """ | ||
| Convert the request parameters into a dictionary | ||
|
|
@@ -739,6 +742,9 @@ class ChatCompletionRequest(BaseModel): | |
|
|
||
| collect_metrics: Optional[bool] = False | ||
|
|
||
| # NOTE(Wanglongzhi2001): temporary parameter for video understanding benchmark | ||
| video_fps: Optional[float] = None | ||
|
|
||
|
Comment on lines
+745
to
+747
|
||
| def to_dict_for_infer(self, request_id=None): | ||
| """ | ||
| Convert the request parameters into a dictionary | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 建议 类型一致性问题:此处
video_fps使用float类型,但下游处理器中均使用int类型。例如:
ernie4_5_vl_processor/process.py:105:video_fps: int = 2qwen_vl_processor/process.py:69:video_fps: int = FPSqwen3_vl_processor/process.py:147:video_fps: int = FPS虽然 Python 会自动转换,但建议保持类型一致以避免潜在问题: