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
db07433c
Unverified
Commit
db07433c
authored
Jan 09, 2026
by
Roger Wang
Committed by
GitHub
Jan 09, 2026
Browse files
[Misc] Skip hashing kwargs if value is `None` (#32025)
Signed-off-by:
Roger Wang
<
hey@rogerw.io
>
parent
e02706d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/multimodal/hasher.py
vllm/multimodal/hasher.py
+3
-0
No files found.
vllm/multimodal/hasher.py
View file @
db07433c
...
@@ -98,6 +98,9 @@ class MultiModalHasher:
...
@@ -98,6 +98,9 @@ class MultiModalHasher:
key
:
str
,
key
:
str
,
obj
:
object
,
obj
:
object
,
)
->
Iterable
[
bytes
|
memoryview
]:
)
->
Iterable
[
bytes
|
memoryview
]:
if
obj
is
None
:
yield
key
.
encode
(
"utf-8"
)
return
# Recursive cases
# Recursive cases
if
isinstance
(
obj
,
(
list
,
tuple
)):
if
isinstance
(
obj
,
(
list
,
tuple
)):
for
i
,
elem
in
enumerate
(
obj
):
for
i
,
elem
in
enumerate
(
obj
):
...
...
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