Skip to content

vllm.v1.watermarking.gumbel

Gumbel-max watermark generation and detection primitives.

Classes:

DualKeyGumbelWatermarkDetector

Bases: GumbelWatermarkDetector

Detect a dual-key watermark with weighted early fusion.

alpha is the weight assigned to key B; key A receives 1 - alpha.

_gamma_survival_integer_shape(score, shape)

Return the survival probability of a Gamma(shape, 1) variable.