Instructions to use google/flan-ul2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/flan-ul2 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2") model = AutoModelForMultimodalLM.from_pretrained("google/flan-ul2") - Notebooks
- Google Colab
- Kaggle
Set tokenizer model_max_length to 2048
#10
by joaogante - opened
As described in the FLAN-UL2 blog, the receptive field of the model was increased from 512 to 2048.
There is also a n_positions in the model config, set to 512, but I can't see its use in transformers 🤔
thanks for fixing!
ybelkada changed pull request status to merged