Spaces:
Runtime error
Runtime error
Commit ·
b0bfe18
1
Parent(s): dbbf724
t5 large
Browse files11 unmodified lines1213141516171819203 unmodified lines242526272829303111 unmodified linestoken_size_limit = None# FROM: https://huggingface.co/facebook/blenderbot-400M-distill?text=Hey+my+name+is+Thomas%21+How+are+you%3Ftokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-400M-distill")# tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-1B-distill")# model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-1B-distill")# token_size_limit = 1283 unmodified lines# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")token_size_limit = 512# Too large for 16GB11 unmodified lines12131415161718193 unmodified lines232425262728293011 unmodified linestoken_size_limit = None# FROM: https://huggingface.co/facebook/blenderbot-400M-distill?text=Hey+my+name+is+Thomas%21+How+are+you%3F# tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")# model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-400M-distill")# tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-1B-distill")# model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-1B-distill")# token_size_limit = 1283 unmodified lines# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")token_size_limit = 512# Too large for 16GB
main.py+4-5