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
f22619fe
Unverified
Commit
f22619fe
authored
Oct 06, 2024
by
Cyrus Leung
Committed by
GitHub
Oct 06, 2024
Browse files
[Misc] Remove user-facing error for removed VLM args (#9104)
parent
168cab6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
docs/source/models/vlm.rst
docs/source/models/vlm.rst
+0
-4
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+1
-9
No files found.
docs/source/models/vlm.rst
View file @
f22619fe
...
@@ -23,10 +23,6 @@ The :class:`~vllm.LLM` class can be instantiated in much the same way as languag
...
@@ -23,10 +23,6 @@ The :class:`~vllm.LLM` class can be instantiated in much the same way as languag
llm = LLM(model="llava-hf/llava-1.5-7b-hf")
llm = LLM(model="llava-hf/llava-1.5-7b-hf")
.. note::
We have removed all vision language related CLI args in the ``0.5.1`` release. **This is a breaking change**, so please update your code to follow
the above snippet. Specifically, ``image_feature_size`` can no longer be specified as we now calculate that internally for each model.
To pass an image to the model, note the following in :class:`vllm.inputs.PromptType`:
To pass an image to the model, note the following in :class:`vllm.inputs.PromptType`:
* ``prompt``: The prompt should follow the format that is documented on HuggingFace.
* ``prompt``: The prompt should follow the format that is documented on HuggingFace.
...
...
vllm/entrypoints/llm.py
View file @
f22619fe
...
@@ -180,15 +180,7 @@ class LLM:
...
@@ -180,15 +180,7 @@ class LLM:
if
"disable_log_stats"
not
in
kwargs
:
if
"disable_log_stats"
not
in
kwargs
:
kwargs
[
"disable_log_stats"
]
=
True
kwargs
[
"disable_log_stats"
]
=
True
removed_vision_keys
=
(
"image_token_id"
,
"image_feature_size"
,
"image_input_shape"
,
"image_input_type"
,
)
if
any
(
k
in
kwargs
for
k
in
removed_vision_keys
):
raise
TypeError
(
"There is no need to pass vision-related arguments anymore."
)
engine_args
=
EngineArgs
(
engine_args
=
EngineArgs
(
model
=
model
,
model
=
model
,
tokenizer
=
tokenizer
,
tokenizer
=
tokenizer
,
...
...
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