code: def __init__(
      self,
      gamma: float = GAMMA,
      delta: float = DELTA,
      hash_key: int = 15485863,  # just a large prime number to create a rng seed with sufficient bit width
      device: str = "cpu",
  ):
      # watermarking parameters
      self.gamma = gamma
      self.delta = delta
      self.rng = torch.Generator(device=device)
      self.hash_key = hash_key
  
file_path: text-generation-inference/server/text_generation_server/utils/watermark.py
imports: import os
  import torch
  from transformers import LogitsProcessor
  from typing import List, Union
label_desc: Use image node_id 1 to create a new WatermarkLogitsProcessor object from inherited base classes: LogitsProcessor with example: obj = WatermarkLogitsProcessor(gamma, delta, hash_key, device)