Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
315e627a
Commit
315e627a
authored
Dec 24, 2025
by
lixh6
Browse files
Update glm4_1v.py 修复GLM模型虚拟视频插入失败
parent
0144aef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/glm4_1v.py
vllm/model_executor/models/glm4_1v.py
+1
-1
No files found.
vllm/model_executor/models/glm4_1v.py
View file @
315e627a
...
@@ -1017,7 +1017,7 @@ class Glm4vProcessingInfo(BaseProcessingInfo):
...
@@ -1017,7 +1017,7 @@ class Glm4vProcessingInfo(BaseProcessingInfo):
max_frames_per_video
=
min
(
max_total_frames
//
max
(
max_videos
,
1
),
max_frames_per_video
=
min
(
max_total_frames
//
max
(
max_videos
,
1
),
_MAX_FRAMES_PER_VIDEO
)
_MAX_FRAMES_PER_VIDEO
)
return
max
(
max_frames_per_video
,
1
)
return
max
(
max_frames_per_video
,
2
)
# vllm issue #30645 restore
def
_get_video_second_idx
(
self
,
metadata
:
dict
[
str
,
Any
],
def
_get_video_second_idx
(
self
,
metadata
:
dict
[
str
,
Any
],
total_frames
:
int
)
->
list
[
int
]:
total_frames
:
int
)
->
list
[
int
]:
...
...
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