mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
Update server/text_generation_server/utils/logits_process.py
Co-authored-by: drbh <david.richard.holtz@gmail.com>
This commit is contained in:
parent
0ba10078e8
commit
82240bf44c
@ -20,8 +20,6 @@ from transformers import (
|
|||||||
TypicalLogitsWarper,
|
TypicalLogitsWarper,
|
||||||
)
|
)
|
||||||
|
|
||||||
from transformers.generation.logits_process import _calc_banned_ngram_tokens
|
|
||||||
|
|
||||||
mempool = torch.cuda.graph_pool_handle() if torch.cuda.is_available() else None
|
mempool = torch.cuda.graph_pool_handle() if torch.cuda.is_available() else None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user