Skip to content

Commit

Permalink
[Doc] Update VLM doc about loading from local files (vllm-project#9999)
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Wang <[email protected]>
Signed-off-by: Richard Liu <[email protected]>
  • Loading branch information
ywang96 authored and richardsliu committed Nov 4, 2024
1 parent 6d353ed commit db1e670
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/models/vlm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ To consume the server, you can use the OpenAI client like in the example below:
A full code example can be found in `examples/openai_chat_completion_client_for_multimodal.py <https://github.com/vllm-project/vllm/blob/main/examples/openai_chat_completion_client_for_multimodal.py>`_.

.. tip::
Loading from local file paths is also supported on vLLM: You can specify the allowed local media path via ``--allowed-local-media-path`` when launching the API server/engine,
and pass the file path as ``url`` in the API request.

.. tip::
There is no need to place image placeholders in the text content of the API request - they are already represented by the image content.
In fact, you can place image placeholders in the middle of the text by interleaving text and image content.
Expand Down

0 comments on commit db1e670

Please sign in to comment.