Update README.md
Browse files
README.md
CHANGED
|
@@ -18,25 +18,26 @@ pipeline_tag: visual-document-retrieval
|
|
| 18 |
|
| 19 |

|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
/path/to/
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
-
|
| 39 |
-
-
|
|
|
|
| 40 |
|
| 41 |
## Model
|
| 42 |
This is the model card for `modernvbert`.
|
|
|
|
| 18 |
|
| 19 |

|
| 20 |
|
| 21 |
+
> [!WARNING]
|
| 22 |
+
>🚨 **Migration guide to official `transformers` modeling**
|
| 23 |
+
>
|
| 24 |
+
>ModernVBERT is part of `transformers` since v5.3.0!
|
| 25 |
+
>
|
| 26 |
+
>This becomes the official modeling for the model.
|
| 27 |
+
>
|
| 28 |
+
>If you have a model based on the initial modeling, you can adapt the weigths to the new format supported by `transformers`.
|
| 29 |
+
>We provide a conversion script in this repo, you simply need to run:
|
| 30 |
+
>
|
| 31 |
+
>```bash
|
| 32 |
+
>python convert_model_weights.py \
|
| 33 |
+
> /path/to/legacy-modernvbert \
|
| 34 |
+
> /path/to/converted-modernvbert \
|
| 35 |
+
>```
|
| 36 |
+
>
|
| 37 |
+
>The converted model:
|
| 38 |
+
>- merges the split token embedding tables
|
| 39 |
+
>- rewrites `model.connector.modality_projection.proj.weight`
|
| 40 |
+
>- nests `model.vision_model...` under `model.vision_model.vision_model...`
|
| 41 |
|
| 42 |
## Model
|
| 43 |
This is the model card for `modernvbert`.
|