Instructions to use JayRay5/DIVE-Doc-ARD-LRes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JayRay5/DIVE-Doc-ARD-LRes with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import DIVEdoc model = DIVEdoc.from_pretrained("JayRay5/DIVE-Doc-ARD-LRes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files18 unmodified lines1920212223242518 unmodified linesDIVE-Doc contains a small visual encoder in combination with a large decoder in order to balance model size and performance.It is built by distilling the [SigLIP-400m](https://arxiv.org/abs/2303.15343) visual encoder of [PaliGEMMA]() into a small hierarchical [Swin transformer]() initialized with the weights of [Donut](), while reusing the original [GEMMA]() decoder.This allows DIVE-Doc to keep competitive performance with its teacher while reducing the visual encoder's parameters to one-fifth.Moreover, the model is finetuned using LoRA adapters (in this repo, adapters have been merged into the base model using [unload_and_merge]()).18 unmodified lines1920212223242518 unmodified linesDIVE-Doc contains a small visual encoder in combination with a large decoder in order to balance model size and performance.It is built by distilling the [SigLIP-400m](https://arxiv.org/abs/2303.15343) visual encoder of [PaliGEMMA]() into a small hierarchical [Swin transformer]() initialized with the weights of [Donut](), while reusing the original [GEMMA]() decoder.This allows DIVE-Doc to keep competitive performance with its teacher while reducing the visual encoder's parameters to one-fifth.Moreover, the model is finetuned using LoRA adapters, which have been merged into the base model using [unload_and_merge]()).
README.md+1-1