Skip to content

vllm.v1.watermarking.watermarker

Classes:

SupportsSpeculativeDecoding

Bases: Protocol

A watermarker compatible with standard speculative rejection sampling.

Watermarker

Bases: ABC

_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.