ChihChiu29 commited on
Commit
d557d40
·
1 Parent(s): 3d24e16

switch back to large

Browse files
Files changed (1) hide show
  1. main.py +6 -4
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
- # tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")
22
- # model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")
23
- tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
24
- model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl")
 
 
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