This commit is contained in:
Joel Lamy-Poirier 2023-05-03 14:28:49 -04:00
parent d5ff681b00
commit cc929530c2
No known key found for this signature in database
GPG Key ID: 82EE2141E842DFCF

View File

@ -1,6 +1,5 @@
import re
import torch
from loguru import logger
from transformers import (
@ -49,7 +48,6 @@ class NextTokenChooser:
seed=0,
device="cpu",
):
#logger.info(f"AAAA {watermark} {temperature} {repetition_penalty} {top_k} {top_p} {typical_p} {do_sample} {seed} {device}")
warpers = LogitsProcessorList()
# the following idea is largely copied from this PR: https://github.com/huggingface/transformers/pull/5420/files
# all samplers can be found in `generation_utils_samplers.py`