Instructions to use google/flan-t5-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/flan-t5-large with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-large") model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large") - Notebooks
- Google Colab
- Kaggle
I asked it how many R in strawberry
#29
by SomePersonAlt - opened
It answered 'rhododendron'. what?
lol What... try to play with these # Generate response
with torch.no_grad():
outputs = model.generate(inputs["input_ids"], max_length=200, temperature=0.7, top_k=50, top_p=0.95)
im on mobile using hf inference widget :/