What tasks can the open source model flan-t5 do?

This experiment uses the flan-t5-base model, which does not support Chinese.

from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base", device_map="auto")

1. Translation

2. Emotion recognition

 3. Ask questions

 4. Single Entity Extraction

time entity

place entity

depth entity 

 5. Single question generation

 6. Generate summary

 7. Generate similar questions

 8. Mathematical calculations

 9. Logical relationship

 

Guess you like

Origin blog.csdn.net/wxl781227/article/details/129298848