Fixing watermark.

This commit is contained in:
Nicolas Patry 2023-08-15 21:21:57 +02:00
parent 05dd14fdb9
commit 8666df0f41

View File

@ -19,8 +19,8 @@ import torch
from transformers import LogitsProcessor
from typing import List, Union
GAMMA = os.getenv("WATERMARK_GAMMA", 0.5)
DELTA = os.getenv("WATERMARK_DELTA", 2.0)
GAMMA = float(os.getenv("WATERMARK_GAMMA", 0.5))
DELTA = float(os.getenv("WATERMARK_DELTA", 2.0))
class WatermarkLogitsProcessor(LogitsProcessor):