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
cbdc4ad5
Unverified
Commit
cbdc4ad5
authored
Jan 22, 2025
by
Cyrus Leung
Committed by
GitHub
Jan 22, 2025
Browse files
[Ci/Build] Fix mypy errors on main (#12296)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
016e3676
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vllm/multimodal/processing.py
vllm/multimodal/processing.py
+5
-2
No files found.
vllm/multimodal/processing.py
View file @
cbdc4ad5
...
...
@@ -43,7 +43,7 @@ class PromptReplacementDetails:
"""
@
staticmethod
def
from_seq
(
seq
:
_PromptSeq
):
def
from_seq
(
seq
:
_PromptSeq
)
->
"PromptReplacementDetails"
:
return
PromptReplacementDetails
(
full
=
seq
,
features
=
seq
)
...
...
@@ -132,7 +132,10 @@ class _BoundPromptSequence:
_token_ids
:
Optional
[
list
[
int
]]
@
staticmethod
def
from_seq
(
tokenizer
:
AnyTokenizer
,
seq
:
_PromptSeq
):
def
from_seq
(
tokenizer
:
AnyTokenizer
,
seq
:
_PromptSeq
,
)
->
"_BoundPromptSequence"
:
return
_BoundPromptSequence
(
tokenizer
=
tokenizer
,
_text
=
seq
if
isinstance
(
seq
,
str
)
else
None
,
...
...
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