Instructions to use cardiffnlp/flan-t5-base-tweet-topic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/flan-t5-base-tweet-topic with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/flan-t5-base-tweet-topic") model = AutoModelForSeq2SeqLM.from_pretrained("cardiffnlp/flan-t5-base-tweet-topic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
cardiffnlp/flan-t5-base-tweet-topic
This is google/flan-t5-base fine-tuned on cardiffnlp/super_tweeteval (tweet_topic).
Usage
from transformers import pipeline
pipe = pipeline('text2text-generation', model="cardiffnlp/flan-t5-base-tweet-topic")
output = pipe("The @Clinton_LumberKings beat the @Cedar_Rapids_Kernels 4-0 in Game 1 of the Western Division finals. Evan Edwards hit a 2-run HR. WP Josh Roberson: 5 IP, 3 H, 0 R, 0 BB, 10 K #MWLplayoffs #MWLscoreboard")
- Downloads last month
- 3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support