Skip to content

Commit 291619f

Browse files
DarkLight1337liuyanyi
authored andcommitted
[Misc] Remove user-facing error for removed VLM args (vllm-project#9104)
1 parent 7f616e5 commit 291619f

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

docs/source/models/vlm.rst

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ The :class:`~vllm.LLM` class can be instantiated in much the same way as languag
2323
2424
llm = LLM(model="llava-hf/llava-1.5-7b-hf")
2525
26-
.. note::
27-
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
28-
the above snippet. Specifically, ``image_feature_size`` can no longer be specified as we now calculate that internally for each model.
29-
3026
To pass an image to the model, note the following in :class:`vllm.inputs.PromptType`:
3127

3228
* ``prompt``: The prompt should follow the format that is documented on HuggingFace.

vllm/entrypoints/llm.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,7 @@ def __init__(
180180

181181
if "disable_log_stats" not in kwargs:
182182
kwargs["disable_log_stats"] = True
183-
removed_vision_keys = (
184-
"image_token_id",
185-
"image_feature_size",
186-
"image_input_shape",
187-
"image_input_type",
188-
)
189-
if any(k in kwargs for k in removed_vision_keys):
190-
raise TypeError(
191-
"There is no need to pass vision-related arguments anymore.")
183+
192184
engine_args = EngineArgs(
193185
model=model,
194186
tokenizer=tokenizer,

0 commit comments

Comments
 (0)