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
dynamo
Commits
008bb1e6
Unverified
Commit
008bb1e6
authored
Jul 02, 2025
by
Indrajit Bhosale
Committed by
GitHub
Jul 02, 2025
Browse files
fix: Add handling for ignore_eos sampling param in trtllm example base engine (#1726)
parent
45f0e424
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
examples/tensorrt_llm/common/base_engine.py
examples/tensorrt_llm/common/base_engine.py
+4
-0
No files found.
examples/tensorrt_llm/common/base_engine.py
View file @
008bb1e6
...
@@ -345,6 +345,10 @@ class BaseTensorrtLLMEngine:
...
@@ -345,6 +345,10 @@ class BaseTensorrtLLMEngine:
if
max_tokens
:
if
max_tokens
:
sampling_params
.
max_tokens
=
max_tokens
sampling_params
.
max_tokens
=
max_tokens
ignore_eos
=
request
.
stop_conditions
.
ignore_eos
if
ignore_eos
:
sampling_params
.
ignore_eos
=
ignore_eos
# TODO: Disable streaming for context only requests when adding disagg support
# TODO: Disable streaming for context only requests when adding disagg support
async
for
res
in
self
.
_llm_engine
.
llm
.
generate_async
(
async
for
res
in
self
.
_llm_engine
.
llm
.
generate_async
(
inputs
=
inputs
,
inputs
=
inputs
,
...
...
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