Spaces:
Runtime error
Runtime error
ChihChiu29
commited on
Commit
·
d557d40
1
Parent(s):
3d24e16
switch back to large
Browse files
main.py
CHANGED
@@ -18,10 +18,12 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
18 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")
|
19 |
# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")
|
20 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
25 |
|
26 |
token_size_limit = 128
|
27 |
|
|
|
18 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")
|
19 |
# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")
|
20 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
|
21 |
+
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")
|
22 |
+
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")
|
23 |
+
|
24 |
+
# Too large for 16GB
|
25 |
+
# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
|
26 |
+
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl")
|
27 |
|
28 |
token_size_limit = 128
|
29 |
|