Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
Thanks to @kaczmarj for pointing out the wrong info about loading hibou-L
  • Loading branch information
megavaz authored Oct 23, 2024
1 parent d31873c commit c453bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ model = AutoModel.from_pretrained("histai/hibou-b", trust_remote_code=True)
OR

```python
from transformers import HibouImageProcessor, HibouModel
from transformers import AutoImageProcessor, AutoModel

processor = HibouImageProcessor.from_pretrained("histai/hibou-L", trust_remote_code=True)
model = HibouModel.from_pretrained("histai/hibou-L", trust_remote_code=True)
processor = AutoImageProcessor.from_pretrained("histai/hibou-L", trust_remote_code=True)
model = AutoModel.from_pretrained("histai/hibou-L", trust_remote_code=True)
```

We use a customized implementation of the DINOv2 architecture from the transformers library to add support for registers, which requires the `trust_remote_code=True` flag.
Expand Down

0 comments on commit c453bbe

Please sign in to comment.