[Chore][V0 Deprecation] Move LogProb to a separate file (#24055)

Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
Woosuk Kwon
2025-09-01 12:07:53 -07:00
committed by GitHub
parent a0e0efd6bd
commit 5685370271
14 changed files with 49 additions and 42 deletions
+2 -2
View File
@@ -13,14 +13,14 @@ import torch
import torch.nn as nn
import vllm.envs as envs
from vllm.logprobs import Logprob, PromptLogprobs, SampleLogprobs
from vllm.model_executor.layers.utils import apply_penalties
from vllm.model_executor.sampling_metadata import (SamplingMetadata,
SamplingTensors,
SequenceGroupToSample)
from vllm.sampling_params import SamplingType
from vllm.sequence import (VLLM_INVALID_TOKEN_ID,
CompletionSequenceGroupOutput, Logprob,
PromptLogprobs, SampleLogprobs, SequenceOutput)
CompletionSequenceGroupOutput, SequenceOutput)
if envs.VLLM_USE_FLASHINFER_SAMPLER and find_spec("flashinfer"):
# yapf: disable