vllm.v1.worker.gpu.sample.output ¶
Classes:
-
SamplingMaskTensors–Bit-packed device-side sampling mask data pending async D2H.
SamplingMaskTensors ¶
Bases: NamedTuple
Bit-packed device-side sampling mask data pending async D2H.
Methods:
-
from_logits–Pack the finite-logit support for requests that sampled tokens.
-
tolists–Convert the packed masks to the scheduler's CSR representation.
Source code in vllm/v1/worker/gpu/sample/output.py
from_logits(logits, num_sampled_tokens) classmethod ¶
Pack the finite-logit support for requests that sampled tokens.
Source code in vllm/v1/worker/gpu/sample/output.py
tolists(num_sampled_tokens) ¶
Convert the packed masks to the scheduler's CSR representation.