Instructions to use OFA-Sys/ofa-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OFA-Sys/ofa-large with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OFA-Sys/ofa-large", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
f9c8e7a
1
Parent(s): 5549641
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ To use it in transformers, please refer to https://github.com/OFA-Sys/OFA/tree/f
|
|
| 11 |
```
|
| 12 |
git clone --single-branch --branch feature/add_transformers https://github.com/OFA-Sys/OFA.git
|
| 13 |
pip install OFA/transformers/
|
| 14 |
-
|
| 15 |
```
|
| 16 |
After, refer the path to OFA-large to `ckpt_dir`, and prepare an image for the testing example below. Also, ensure that you have pillow and torchvision in your environment.
|
| 17 |
|
|
|
|
| 11 |
```
|
| 12 |
git clone --single-branch --branch feature/add_transformers https://github.com/OFA-Sys/OFA.git
|
| 13 |
pip install OFA/transformers/
|
| 14 |
+
git clone https://huggingface.co/OFA-Sys/OFA-large
|
| 15 |
```
|
| 16 |
After, refer the path to OFA-large to `ckpt_dir`, and prepare an image for the testing example below. Also, ensure that you have pillow and torchvision in your environment.
|
| 17 |
|