Remove adapter migration section and script
Browse files
README.md
CHANGED
|
@@ -17,27 +17,6 @@ pipeline_tag: visual-document-retrieval
|
|
| 17 |
<img src="bg.png" width="100%" alt="ModernVBERT" />
|
| 18 |
</div>
|
| 19 |
|
| 20 |
-
## 🚨 Migration guide to official `transformers` modeling
|
| 21 |
-
|
| 22 |
-
ModernVBERT is part of transformers since v5.3.0!
|
| 23 |
-
|
| 24 |
-
This becomes the official modeling for the model.
|
| 25 |
-
|
| 26 |
-
If you have the legacy adapter from [`paultltc/colmodernvbert`](https://huggingface.co/paultltc/colmodernvbert), you will need to adapt the weights to the new official format used by [`ModernVBERT/colmodernvbert`](https://huggingface.co/ModernVBERT/colmodernvbert).
|
| 27 |
-
We provide a conversion script in this repo, you simply need to run:
|
| 28 |
-
|
| 29 |
-
```bash
|
| 30 |
-
python convert_adapter_weights.py \
|
| 31 |
-
/path/to/legacy-colmodernvbert \
|
| 32 |
-
/path/to/converted-colmodernvbert \
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
The converted adapter rewrites the LoRA tensors to:
|
| 36 |
-
- `model.text_model...`
|
| 37 |
-
- `model.custom_text_proj...`
|
| 38 |
-
|
| 39 |
-
This script only converts the adapter weights. If you also need to migrate legacy base model weights, use [`ModernVBERT/modernvbert`](https://huggingface.co/ModernVBERT/modernvbert)'s `convert_model_weights.py` separately.
|
| 40 |
-
|
| 41 |
## Model
|
| 42 |
This is the model card for `ColModernVBERT`, the late-interaction version of ModernVBERT that is fine-tuned for visual document retrieval tasks, our most performant model on this task.
|
| 43 |
|
|
|
|
| 17 |
<img src="bg.png" width="100%" alt="ModernVBERT" />
|
| 18 |
</div>
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
## Model
|
| 21 |
This is the model card for `ColModernVBERT`, the late-interaction version of ModernVBERT that is fine-tuned for visual document retrieval tasks, our most performant model on this task.
|
| 22 |
|