-
Notifications
You must be signed in to change notification settings - Fork 156
[Docs] Add Qwen2.5-VL guide for the TRT-LLM PyTorch backend, deprecate Llava1.5 guide #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
whoisj
merged 11 commits into
triton-inference-server:main
from
faradawn:docs/multimodal-pytorch-backend-guide
Sep 11, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1485ea6
docs: Add Qwen2.5-VL guide for the TRT-LLM PyTorch backend
faradawn d1482ff
docs: simplify the Qwen2.5-VL setup steps
faradawn 5a90191
Merge branch 'triton-inference-server:main' into docs/multimodal-pyto…
faradawn 56b4521
docs: state the allowed scope of image_url access
faradawn 8d27cdf
docs: note that image_url accepts web URLs only
faradawn 51f2613
docs: make the Qwen2.5-VL guide work on the 1.2.1 container
faradawn 9181f35
docs: ship the 1.2.1 patch as a script, and stop cloning 900 MB for f…
faradawn 7405ea9
docs: build the Qwen2.5-VL guide on the v1.2.1 tag and ship the backe…
faradawn 5a1dc1f
docs: point model.py's provenance note at a command a reader can run
faradawn aa25e5c
docs: tighten the Qwen2.5-VL guide
faradawn fa86b65
docs: trim three more lines from the Qwen2.5-VL guide
faradawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,243 @@ | ||
| # Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Redistribution and use in source and binary forms, with or without | ||
| # modification, are permitted provided that the following conditions | ||
| # are met: | ||
| # * Redistributions of source code must retain the above copyright | ||
| # notice, this list of conditions and the following disclaimer. | ||
| # * Redistributions in binary form must reproduce the above copyright | ||
| # notice, this list of conditions and the following disclaimer in the | ||
| # documentation and/or other materials provided with the distribution. | ||
| # * Neither the name of NVIDIA CORPORATION nor the names of its | ||
| # contributors may be used to endorse or promote products derived | ||
| # from this software without specific prior written permission. | ||
| # | ||
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY | ||
| # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
| # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
|
||
| name: "tensorrt_llm" | ||
| backend: "python" | ||
|
|
||
| ####################################################### | ||
| # The below config arguments are specific in model.yaml | ||
| # Please don't add it in config.pbtxt | ||
| # | ||
| # max_batch_size: 64 | ||
| # | ||
| # model_transaction_policy { | ||
| # decoupled: False | ||
| # } | ||
| ####################################################### | ||
|
|
||
| instance_group [ | ||
| { | ||
| count: 1 | ||
| kind : KIND_CPU | ||
| } | ||
| ] | ||
|
|
||
| input [ | ||
| { | ||
| name: "text_input" | ||
| data_type: TYPE_STRING | ||
| dims: [ -1 ] | ||
| }, | ||
| { | ||
| name: "image_url" | ||
| data_type: TYPE_STRING | ||
| dims: [ -1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "streaming" | ||
| data_type: TYPE_BOOL | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| ## SamplingParams Arguments for Each Request ## | ||
| { | ||
| name: "sampling_param_best_of" | ||
| data_type: TYPE_INT32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_temperature" | ||
| data_type: TYPE_FP32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_top_k" | ||
| data_type: TYPE_INT32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_top_p" | ||
| data_type: TYPE_FP32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_frequency_penalty" | ||
| data_type: TYPE_FP32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_presence_penalty" | ||
| data_type: TYPE_FP32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_max_tokens" | ||
| data_type: TYPE_INT32 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_stop" | ||
| data_type: TYPE_STRING | ||
| dims: [-1] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_seed" | ||
| data_type: TYPE_UINT64 | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_exclude_input_from_output" | ||
| data_type: TYPE_BOOL | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "sampling_param_return_perf_metrics" | ||
| data_type: TYPE_BOOL | ||
| dims: [ 1 ] | ||
| optional: true | ||
| }, | ||
| ## Arguments for Controlling Response Output Fields ## | ||
| { | ||
| name: "return_finish_reason" | ||
| data_type: TYPE_BOOL | ||
| dims: [1] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "return_stop_reason" | ||
| data_type: TYPE_BOOL | ||
| dims: [1] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "return_cumulative_logprob" | ||
| data_type: TYPE_BOOL | ||
| dims: [1] | ||
| optional: true | ||
| }, | ||
| { | ||
| name: "stop" | ||
| data_type: TYPE_BOOL | ||
| dims: [ 1 ] | ||
| optional: true | ||
| } | ||
| ] | ||
| ################################################################### | ||
| # The below output parameters are arguments from LLM.RequestOutput | ||
| ################################################################### | ||
| output [ | ||
| { | ||
| name: "text_output" | ||
| data_type: TYPE_STRING | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "finish_reason" | ||
| data_type: TYPE_STRING | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "stop_reason" | ||
| data_type: TYPE_STRING | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "cumulative_logprob" | ||
| data_type: TYPE_FP32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "kv_cache_reused_block" | ||
| data_type: TYPE_INT32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "kv_cache_missed_block" | ||
| data_type: TYPE_INT32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "kv_cache_alloc_new_blocks" | ||
| data_type: TYPE_INT32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "kv_cache_alloc_total_blocks" | ||
| data_type: TYPE_INT32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "kv_cache_hit_rate" | ||
| data_type: TYPE_FP32 | ||
| dims: [-1] | ||
| }, | ||
| { | ||
| name: "arrival_time_ns" | ||
| data_type: TYPE_INT64 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "first_scheduled_time_ns" | ||
| data_type: TYPE_INT64 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "first_token_time_ns" | ||
| data_type: TYPE_INT64 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "last_token_time_ns" | ||
| data_type: TYPE_INT64 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "acceptance_rate" | ||
| data_type: TYPE_FP32 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "total_accepted_draft_tokens" | ||
| data_type: TYPE_INT32 | ||
| dims: [ 1 ] | ||
| }, | ||
| { | ||
| name: "total_draft_tokens" | ||
| data_type: TYPE_INT32 | ||
| dims: [ 1 ] | ||
| } | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning says this guide describes
tensorrtllm_backend'sall_models/multimodalpath, but the guide actually builds TensorRT engines itself and serves a tutorial-local repository containing custom Python vision and wrapper models. This gives readers an inaccurate explanation of which deployment architecture reached end of life. Please describe the actual manual-engine, custom-repository path being deprecated or cite the precise upstream component that applies to it.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!