Skip to content

[TRTLLM-12982][feat] support multi item scoring in LLM.encode - #14693

Merged
ixlmar merged 12 commits into
NVIDIA:mainfrom
ixlmar:feat/multi-item-scoring
Jun 15, 2026
Merged

[TRTLLM-12982][feat] support multi item scoring in LLM.encode#14693
ixlmar merged 12 commits into
NVIDIA:mainfrom
ixlmar:feat/multi-item-scoring

Conversation

@ixlmar

@ixlmar ixlmar commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Description

This exposes the functionality added in flashinfer-ai/flashinfer#1015 via LLM.encode (#12801). SGLang has been supporting this since sgl-project/sglang#10979.

Note: Commit e50c18a is being integrated via #14634 but is required for tests to pass.

Test Coverage

PR includes new tests.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added multi-item scoring capability to the encode API, enabling evaluation of multiple candidate answers within a single batch request.
    • Added batch_indexed_model_output and copy_logits_to_host parameters to the encode method for flexible output formatting and device control.
  • Tests

    • Added comprehensive test coverage for multi-item scoring scenarios, input validation, and API constraints.

Review Change Stack

@ixlmar
ixlmar requested a review from Funatiq May 28, 2026 13:32
@ixlmar ixlmar changed the title [TRTLLM-12982][feat] multi item scoring [TRTLLM-12982][feat] support multi item scoring in LLM.encode May 28, 2026
@ixlmar
ixlmar force-pushed the feat/multi-item-scoring branch 2 times, most recently from 78c8f63 to d0824ae Compare May 28, 2026 14:38
@ixlmar

ixlmar commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50809 [ run ] triggered by Bot. Commit: d0824ae Link to invocation

@ixlmar

ixlmar commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50813 [ run ] triggered by Bot. Commit: d0824ae Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50809 [ run ] completed with state ABORTED. Commit: d0824ae
/LLM/main/L0_MergeRequest_PR pipeline #40280 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@ixlmar
ixlmar force-pushed the feat/multi-item-scoring branch from d0824ae to ccc4520 Compare May 28, 2026 15:26
@ixlmar

ixlmar commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50819 [ run ] triggered by Bot. Commit: ccc4520 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50813 [ run ] completed with state ABORTED. Commit: d0824ae

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50819 [ run ] completed with state FAILURE. Commit: ccc4520
/LLM/main/L0_MergeRequest_PR pipeline #40289 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@ixlmar

ixlmar commented May 29, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@ixlmar ixlmar added the api-compatible Accepted LLM API contract change that is backwards-compatible label May 29, 2026
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51008 [ run ] triggered by Bot. Commit: dc49554 Link to invocation

@ixlmar

ixlmar commented May 29, 2026

Copy link
Copy Markdown
Collaborator Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51021 [ kill ] triggered by Bot. Commit: dc49554 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51008 [ run ] completed with state ABORTED. Commit: dc49554

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51021 [ kill ] completed with state SUCCESS. Commit: dc49554
Successfully killed previous jobs for commit dc49554

Link to invocation

@ixlmar

ixlmar commented May 29, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51029 [ run ] triggered by Bot. Commit: 3b78547 Link to invocation

@ixlmar
ixlmar marked this pull request as ready for review May 29, 2026 14:30
@ixlmar
ixlmar requested review from a team as code owners May 29, 2026 14:30
@ixlmar
ixlmar requested a review from venkywonka May 29, 2026 14:30
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54253 [ run ] triggered by Bot. Commit: 9a8e8ad Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54253 [ run ] completed with state SUCCESS. Commit: 9a8e8ad
/LLM/main/L0_MergeRequest_PR pipeline #43327 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@ixlmar
ixlmar force-pushed the feat/multi-item-scoring branch from 9a8e8ad to a8a17f0 Compare June 15, 2026 09:35
ixlmar added 12 commits June 15, 2026 13:51
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
@ixlmar
ixlmar force-pushed the feat/multi-item-scoring branch from a8a17f0 to 735c68e Compare June 15, 2026 11:51
@ixlmar

ixlmar commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54296 [ run ] triggered by Bot. Commit: 735c68e Link to invocation

@ixlmar

ixlmar commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54326 [ run ] triggered by Bot. Commit: 735c68e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54296 [ run ] completed with state ABORTED. Commit: 735c68e

Link to invocation

@ixlmar
ixlmar enabled auto-merge (squash) June 15, 2026 19:26
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #54326 [ run ] completed with state SUCCESS. Commit: 735c68e
/LLM/main/L0_MergeRequest_PR pipeline #43397 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

CI Report

Link to invocation

@ixlmar
ixlmar merged commit 35c9704 into NVIDIA:main Jun 15, 2026
8 checks passed
@ixlmar
ixlmar deleted the feat/multi-item-scoring branch June 16, 2026 07:09
xinhe-nv pushed a commit to tensorrt-cicd/TensorRT-LLM that referenced this pull request Jun 23, 2026
…#14693)

Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: GitLab CI Bot <gitlab-ci@nvidia.com>
xinhe-nv pushed a commit to tensorrt-cicd/TensorRT-LLM that referenced this pull request Jun 24, 2026
…#14693)

Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
Signed-off-by: GitLab CI Bot <gitlab-ci@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-compatible Accepted LLM API contract change that is backwards-compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants