mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Fixing watermark.
This commit is contained in:
parent
05dd14fdb9
commit
8666df0f41
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user