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
6cd40a5b
Unverified
Commit
6cd40a5b
authored
Jan 08, 2025
by
Cyrus Leung
Committed by
GitHub
Jan 08, 2025
Browse files
[Doc][4/N] Reorganize API Reference (#11843)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
aba8d6ee
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
13 deletions
+1
-13
vllm/multimodal/base.py
vllm/multimodal/base.py
+0
-3
vllm/multimodal/inputs.py
vllm/multimodal/inputs.py
+0
-6
vllm/multimodal/registry.py
vllm/multimodal/registry.py
+0
-3
vllm/pooling_params.py
vllm/pooling_params.py
+1
-1
No files found.
vllm/multimodal/base.py
View file @
6cd40a5b
...
@@ -49,9 +49,6 @@ class MultiModalPlugin(ABC):
...
@@ -49,9 +49,6 @@ class MultiModalPlugin(ABC):
process the same data differently). This registry is in turn used by
process the same data differently). This registry is in turn used by
:class:`~MultiModalRegistry` which acts at a higher level
:class:`~MultiModalRegistry` which acts at a higher level
(i.e., the modality of the data).
(i.e., the modality of the data).
See also:
:ref:`adding-multimodal-plugin`
"""
"""
def
__init__
(
self
)
->
None
:
def
__init__
(
self
)
->
None
:
...
...
vllm/multimodal/inputs.py
View file @
6cd40a5b
...
@@ -99,12 +99,6 @@ class MultiModalDataBuiltins(TypedDict, total=False):
...
@@ -99,12 +99,6 @@ class MultiModalDataBuiltins(TypedDict, total=False):
MultiModalDataDict
:
TypeAlias
=
Mapping
[
str
,
ModalityData
[
Any
]]
MultiModalDataDict
:
TypeAlias
=
Mapping
[
str
,
ModalityData
[
Any
]]
"""
"""
A dictionary containing an entry for each modality type to input.
A dictionary containing an entry for each modality type to input.
Note:
This dictionary also accepts modality keys defined outside
:class:`MultiModalDataBuiltins` as long as a customized plugin
is registered through the :class:`~vllm.multimodal.MULTIMODAL_REGISTRY`.
Read more on that :ref:`here <adding-multimodal-plugin>`.
"""
"""
...
...
vllm/multimodal/registry.py
View file @
6cd40a5b
...
@@ -125,9 +125,6 @@ class MultiModalRegistry:
...
@@ -125,9 +125,6 @@ class MultiModalRegistry:
def
register_plugin
(
self
,
plugin
:
MultiModalPlugin
)
->
None
:
def
register_plugin
(
self
,
plugin
:
MultiModalPlugin
)
->
None
:
"""
"""
Register a multi-modal plugin so it can be recognized by vLLM.
Register a multi-modal plugin so it can be recognized by vLLM.
See also:
:ref:`adding-multimodal-plugin`
"""
"""
data_type_key
=
plugin
.
get_data_key
()
data_type_key
=
plugin
.
get_data_key
()
...
...
vllm/pooling_params.py
View file @
6cd40a5b
...
@@ -7,7 +7,7 @@ class PoolingParams(
...
@@ -7,7 +7,7 @@ class PoolingParams(
msgspec
.
Struct
,
msgspec
.
Struct
,
omit_defaults
=
True
,
# type: ignore[call-arg]
omit_defaults
=
True
,
# type: ignore[call-arg]
array_like
=
True
):
# type: ignore[call-arg]
array_like
=
True
):
# type: ignore[call-arg]
"""
Pooling
parameters for
embeddings API
.
"""
API
parameters for
pooling models. This is currently a placeholder
.
Attributes:
Attributes:
additional_data: Any additional data needed for pooling.
additional_data: Any additional data needed for pooling.
...
...
Prev
1
2
Next
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