mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
cleanup
This commit is contained in:
parent
d5ff681b00
commit
cc929530c2
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user