File size: 369 Bytes
5fa1a76 |
1 2 3 4 5 6 7 |
When set to True, only local files are loaded: from transformers import T5Model model = T5Model.from_pretrained("./path/to/local/directory", local_files_only=True) Fetch models and tokenizers to use offline Another option for using 🤗 Transformers offline is to download the files ahead of time, and then point to their local path when you need to use them offline. |