Spaces:
Runtime error
Runtime error
ChihChiu29
commited on
Commit
•
4990d4a
1
Parent(s):
8569dd4
400m
Browse files
main.py
CHANGED
@@ -12,10 +12,10 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
12 |
token_size_limit = None
|
13 |
|
14 |
# FROM: https://huggingface.co/facebook/blenderbot-400M-distill?text=Hey+my+name+is+Thomas%21+How+are+you%3F
|
15 |
-
|
16 |
-
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-1B-distill")
|
18 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-1B-distill")
|
19 |
# token_size_limit = 128
|
20 |
|
21 |
# T5 model can use "any" sequence lenghth, but memory usage is O(L^2).
|
|
|
12 |
token_size_limit = None
|
13 |
|
14 |
# FROM: https://huggingface.co/facebook/blenderbot-400M-distill?text=Hey+my+name+is+Thomas%21+How+are+you%3F
|
15 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")
|
16 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-400M-distill")
|
17 |
+
# tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-1B-distill")
|
18 |
+
# model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-1B-distill")
|
19 |
# token_size_limit = 128
|
20 |
|
21 |
# T5 model can use "any" sequence lenghth, but memory usage is O(L^2).
|