vllm.v1.watermarking.watermarker
¶
Classes:
-
SupportsSpeculativeDecoding–A watermarker compatible with standard speculative rejection sampling.
-
Watermarker–
SupportsSpeculativeDecoding
¶
Bases: Protocol
A watermarker compatible with standard speculative rejection sampling.
Source code in vllm/v1/watermarking/watermarker.py
Watermarker
¶
Bases: ABC
Source code in vllm/v1/watermarking/watermarker.py
_try_sample_block(logits, num_steps, random_sampler, state)
¶
Sample a (request, step) draft block in one fused pass.
Returns None when there is no fused implementation, in which case the caller samples the block one step at a time.