Files
vLLM/vllm/v1/watermarking/prfs/__init__.py
T
Raphaël RiallandOpenAI Codexmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ea40bb9e90 [feature] Watermarked generation and detection (Gumbel-max algorithm) (#54053)
Signed-off-by: Raphael Rialland <raphael.rialland@mistral.ai>
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2026-09-09 21:00:15 -07:00

20 lines
522 B
Python

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from vllm.config.watermarking import WatermarkPRFName
from vllm.v1.watermarking.prfs.base import WatermarkPRF
from vllm.v1.watermarking.prfs.philox import PhiloxPRF
def create_prf(name: WatermarkPRFName, key: int) -> WatermarkPRF:
if name == "philox":
return PhiloxPRF(key)
raise ValueError(f"Unknown watermark PRF: {name}")
__all__ = [
"PhiloxPRF",
"WatermarkPRF",
"create_prf",
]