Improve the imports
This commit is contained in:
parent
364529d0c7
commit
7224343a70
10 changed files with 30 additions and 29 deletions
|
@ -4,9 +4,11 @@ This code was copied from
|
|||
https://github.com/PygmalionAI/gradio-ui/
|
||||
|
||||
'''
|
||||
|
||||
import torch
|
||||
import transformers
|
||||
|
||||
|
||||
class _SentinelTokenStoppingCriteria(transformers.StoppingCriteria):
|
||||
|
||||
def __init__(self, sentinel_token_ids: torch.LongTensor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue