vllm.v1.watermarking.gumbel
¶
Gumbel-max watermark generation and detection primitives.
Classes:
-
DualKeyGumbelWatermarkDetector–Detect a dual-key watermark with weighted early fusion.
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.
Source code in vllm/v1/watermarking/gumbel.py
_gamma_survival_integer_shape(score, shape)
¶
Return the survival probability of a Gamma(shape, 1) variable.