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
ed242652
Unverified
Commit
ed242652
authored
Feb 13, 2026
by
Shiyan Deng
Committed by
GitHub
Feb 13, 2026
Browse files
[bug] Make sure get_modality_with_max_tokens is deterministic (#34533)
Signed-off-by:
Shiyan Deng
<
dsy842974287@meta.com
>
parent
b37b6797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/multimodal/encoder_budget.py
vllm/multimodal/encoder_budget.py
+1
-1
No files found.
vllm/multimodal/encoder_budget.py
View file @
ed242652
...
@@ -181,7 +181,7 @@ class MultiModalBudget:
...
@@ -181,7 +181,7 @@ class MultiModalBudget:
def
get_modality_with_max_tokens
(
self
)
->
str
:
def
get_modality_with_max_tokens
(
self
)
->
str
:
mm_max_toks_per_item
=
self
.
mm_max_toks_per_item
mm_max_toks_per_item
=
self
.
mm_max_toks_per_item
modality
,
_
=
max
(
mm_max_toks_per_item
.
items
(),
key
=
lambda
x
:
x
[
1
])
modality
,
_
=
max
(
mm_max_toks_per_item
.
items
(),
key
=
lambda
x
:
(
x
[
1
]
,
x
[
0
])
)
return
modality
return
modality
...
...
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