Instructions to use google/flan-t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/flan-t5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update correct `gelu` function
related discussion: https://huggingface.co/google/flan-t5-xxl/discussions/11 The previous config file was using `gelu` function instead of `gated-gelu` that is automatically set when forcing `is_gated_act`to `True`, more specifically [here](https://github.com/huggingface/transformers/blob/a00b7e85ea4b3e3185440f1f82a6b58e3660b01d/src/transformers/models/t5/configuration_t5.py#L132) This is not a breaking change since it fixes only for inference. Users that trained a model with `gelu` instead of `gated-gelu` should not be affected by this change.d767322
-
Update README.md (#7)
- Update README.md (6159cc00953eb17571f41840fd0a590cacd727f7)c5674dc
-
Update README.md (#3)
- Update README.md (eaf5c16955459b3c599a94c806187ce7e4df0ae8)98d1823
-
Fix model name (#1)
- Fix model name (e7833bc34c6907231c404663e4d4546212d4ec07) Co-authored-by: Manuel Romero <mrm8488@users.noreply.huggingface.co>d2de2da -
Update README.md
fa5c922 -
Update README.md
caf3164 -
Create README.md
bef8395 -
add tf model
3c27a5f -
add tokenizer
1eae274 -
add pytorch weights
616dc34 -
Update config.json
72a2f2f -
add flax weights
ybelkada122b317 -
initial commit
Younes Belkadaf1efd95