Skip to content

fix(vllm): pool embedding worker output via PoolingParams(task="embed") (#10248) [cherry-pick → release/1.3.0] - #11555

Merged
nv-nmailhot merged 1 commit into
release/1.3.0from
tzulingk/cherrypick-10248-embedding-pooling
Jul 11, 2026
Merged

fix(vllm): pool embedding worker output via PoolingParams(task="embed") (#10248) [cherry-pick → release/1.3.0]#11555
nv-nmailhot merged 1 commit into
release/1.3.0from
tzulingk/cherrypick-10248-embedding-pooling

Conversation

@tzulingk

@tzulingk tzulingk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Overview:

Cherry-pick of #10248 into release/1.3.0.

Details:

Backports fix(vllm): pool embedding worker output via PoolingParams(task="embed") (#10248). The vLLM embedding worker now requests the pooled sentence embedding via PoolingParams(task="embed") instead of relying on vLLM's default (per-token) encode output, and forwards the OpenAI dimensions (Matryoshka) parameter to vLLM's pooler — which truncates + re-normalizes and validates model support — rather than slicing the vector in Python. Adds unit tests, an agg_embed.sh launch example, and a serve-test tweak.

Cleanly cherry-picked (no conflicts) from merge commit 0b973594e2.

Where should the reviewer start?

  • components/src/dynamo/vllm/handlers.pyEmbeddingWorkerHandler.generate now builds PoolingParams(task="embed", dimensions=...) and drops the post-hoc Python embedding[:dimensions] truncation.
  • components/src/dynamo/vllm/tests/test_vllm_worker_handler.pytest_dimensions_forwarded_to_pooling_params, test_no_dimensions_omits_pooling_dimensions, test_oversized_dimensions_raises.

🤖 Generated with Claude Code


Open in Devin Review

…") (#10248)

Signed-off-by: Tzu-Ling <tzulingk@nvidia.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Tzu-Ling <tzulingk@nvidia.com>
@tzulingk
tzulingk requested a review from a team as a code owner July 10, 2026 22:43
@tzulingk
tzulingk requested a review from a team July 10, 2026 22:43
@tzulingk
tzulingk requested review from a team as code owners July 10, 2026 22:43
@github-actions github-actions Bot added fix backend::vllm Relates to the vllm backend labels Jul 10, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@nv-nmailhot
nv-nmailhot merged commit 30e3bdd into release/1.3.0 Jul 11, 2026
93 of 96 checks passed
@nv-nmailhot
nv-nmailhot deleted the tzulingk/cherrypick-10248-embedding-pooling branch July 11, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::vllm Relates to the vllm backend fix size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants