vllm.config.watermarking ¶
Classes:
-
WatermarkConfig–Configuration for text watermark generation.
WatermarkConfig ¶
Configuration for text watermark generation.
Attributes:
-
algorithm(WatermarkingAlgorithm) –Algorithm used to watermark generated text.
-
context_width(int) –Number of prior output tokens used by the watermark PRF.
-
key(int) –Secret key used to watermark generated text.
-
prf(WatermarkPRFName) –Pseudorandom function used by the watermarking algorithm.
Source code in vllm/config/watermarking.py
algorithm = 'gumbel' class-attribute instance-attribute ¶
Algorithm used to watermark generated text.
context_width = Field(default=4, ge=1) class-attribute instance-attribute ¶
Number of prior output tokens used by the watermark PRF.
key = Field(ge=0, repr=False, exclude=True) class-attribute instance-attribute ¶
Secret key used to watermark generated text.
prf = 'philox' class-attribute instance-attribute ¶
Pseudorandom function used by the watermarking algorithm.