Update README.md
Browse filesAdd instructions to build transformers from source.
After transformers will create a new version with the desired changes, we can remove this line and just add a minimal version requirement.
README.md
CHANGED
@@ -52,6 +52,12 @@ Granite Vision model is supported natively `transformers` from the `main` branch
|
|
52 |
|
53 |
### Usage with `transformers`
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
```python
|
56 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
57 |
from huggingface_hub import hf_hub_download
|
|
|
52 |
|
53 |
### Usage with `transformers`
|
54 |
|
55 |
+
First, make sure to build transormers from source following instructions [here](https://huggingface.co/docs/transformers/v4.48.2/en/installation#install-from-source):
|
56 |
+
```shell
|
57 |
+
pip install git+https://github.com/huggingface/transformers
|
58 |
+
```
|
59 |
+
|
60 |
+
Then run the code:
|
61 |
```python
|
62 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
63 |
from huggingface_hub import hf_hub_download
|