Skip to content

[None][feat] Add per-request stream_interval_ms support#5

Merged
Thachnh merged 6 commits intodeep-main-v1.3.0rc5-eagle3-k25visionfrom
interval-ms
Apr 7, 2026
Merged

[None][feat] Add per-request stream_interval_ms support#5
Thachnh merged 6 commits intodeep-main-v1.3.0rc5-eagle3-k25visionfrom
interval-ms

Conversation

@quan-deepinfra
Copy link
Copy Markdown

No description provided.

Comment thread tensorrt_llm/llmapi/llm_args.py
Comment thread tensorrt_llm/llmapi/llm_args.py Outdated
@@ -3225,10 +3227,6 @@ def validate_stream_interval(self):
if self.stream_interval <= 0:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then you can remove this

Comment thread tensorrt_llm/_torch/pyexecutor/py_executor.py
# Check triggers
token_triggered = request.py_last_stream_emit_iter >= token_interval
time_triggered = (
time_interval_ms > 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reformat

quan-deepinfra and others added 3 commits April 5, 2026 23:57
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Quan Truong <quan@deepinfra.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Quan Truong <quan@deepinfra.com>
…dd type annotation

Replace model_validator with ge=1 on Field for stream_interval.
Add Optional[float] type annotation to py_last_stream_emit_time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Quan Truong <quan@deepinfra.com>
@Thachnh Thachnh merged commit 6e969e2 into deep-main-v1.3.0rc5-eagle3-k25vision Apr 7, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants