---
id: pr-vllm-22387
repo: vllm-project/vllm
pr: 22387
title: '[Sampler] Support returning final logprobs'
author: 22quinn
date: '2025-08-21'
url: https://github.com/vllm-project/vllm/pull/22387
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: f571ff8eb6d9117c6a418f7f925921968dff8ac8
inclusion_reason: include
changed_paths:
- docs/usage/v1_guide.md
- tests/v1/sample/test_logprobs.py
- vllm/config/__init__.py
- vllm/engine/arg_utils.py
- vllm/v1/sample/ops/topk_topp_sampler.py
- vllm/v1/sample/sampler.py
- vllm/v1/sample/tpu/sampler.py
artifact_dir: evidence/pull-bundles/vllm/gh-22387
head_ref_oid: 22e694b09117f9b201088bedac7e359e6233a5ad
---
# [Sampler] Support returning final logprobs

- Repository: `vllm-project/vllm`
- PR: [22387](https://github.com/vllm-project/vllm/pull/22387)
- Decision: `include`
- Reason: include

## Changed Paths

- `docs/usage/v1_guide.md`
- `tests/v1/sample/test_logprobs.py`
- `vllm/config/__init__.py`
- `vllm/engine/arg_utils.py`
- `vllm/v1/sample/ops/topk_topp_sampler.py`
- `vllm/v1/sample/sampler.py`
- `vllm/v1/sample/tpu/sampler.py`

## Evidence Bundle

`evidence/pull-bundles/vllm/gh-22387`
