Instructions to use cardiffnlp/flan-t5-small-tweet-nerd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/flan-t5-small-tweet-nerd with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/flan-t5-small-tweet-nerd") model = AutoModelForSeq2SeqLM.from_pretrained("cardiffnlp/flan-t5-small-tweet-nerd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
cardiffnlp/flan-t5-small-tweet-nerd
This is google/flan-t5-small fine-tuned on cardiffnlp/super_tweeteval (tweet_nerd).
Usage
from transformers import pipeline
pipe = pipeline('text2text-generation', model="cardiffnlp/flan-t5-small-tweet-nerd")
output = pipe("context: dbh the worst game of all time its awful its terrible i hate it i never even wanted to play it i hope connor jumps off a cliff really, definition: 2018 adventure video game developed by Quantic Dream, target: dbh")
- Downloads last month
- 11
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support