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
Download coreml/text2text-generation/encoder_float32_model.mlpackage/Manifest.json from google/flan-t5-base: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/google/flan-t5-base/resolve/refs%2Fpr%2F24/coreml/text2text-generation/encoder_float32_model.mlpackage/Manifest.json
- Command line
-
hf download hf://google/flan-t5-base@refs/pr/24/coreml/text2text-generation/encoder_float32_model.mlpackage/Manifest.json
-
curl -L -o Manifest.json https://huggingface.co/google/flan-t5-base/resolve/refs%2Fpr%2F24/coreml/text2text-generation/encoder_float32_model.mlpackage/Manifest.json
617 Bytes
| { | |
| "fileFormatVersion": "1.0.0", | |
| "itemInfoEntries": { | |
| "C807FDA4-E181-4F1C-A67A-EF5E04505748": { | |
| "author": "com.apple.CoreML", | |
| "description": "CoreML Model Weights", | |
| "name": "weights", | |
| "path": "com.apple.CoreML/weights" | |
| }, | |
| "F0DABA26-CFA5-4828-8CA3-DBB37429ADBD": { | |
| "author": "com.apple.CoreML", | |
| "description": "CoreML Model Specification", | |
| "name": "model.mlmodel", | |
| "path": "com.apple.CoreML/model.mlmodel" | |
| } | |
| }, | |
| "rootModelIdentifier": "F0DABA26-CFA5-4828-8CA3-DBB37429ADBD" | |
| } | |