vllm.v1.watermarking
¶
Modules:
-
gpu_sampler– -
gumbel–Gumbel-max watermark generation and detection primitives.
-
prfs– -
spec_decode– -
watermarker–
Classes:
-
DualKeyGumbelWatermarkDetector–Detect a dual-key watermark with weighted early fusion.
-
PhiloxPRF–Accelerator-friendly Philox4x32-10 watermark PRF.
-
SupportsSpeculativeDecoding–A watermarker compatible with standard speculative rejection sampling.
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
PhiloxPRF
¶
Bases: WatermarkPRF
Accelerator-friendly Philox4x32-10 watermark PRF.