Update README.md
Browse files
README.md
CHANGED
@@ -19,18 +19,19 @@ license: apache-2.0
|
|
19 |
<img src="https://raw.githubusercontent.com/AIRI-Institute/OmniFusion/main/content/architecture2.png" width="100%">
|
20 |
</p>
|
21 |
|
|
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
To further enhance the model's multimodal capabilities, we employ trainable special tokens to mark the beginning and end of visual data within the text sequence.
|
28 |
|
|
|
29 |
|
30 |
### Training Process consists of two stages
|
31 |
|
32 |
-
1. Pre-training the adapter on Image Captioning tasks (LAION, CC-4M).
|
33 |
-
2. Once the adapter has learned to map
|
|
|
34 |
|
35 |
<p align="left">
|
36 |
<img src="https://raw.githubusercontent.com/AIRI-Institute/OmniFusion/main/content/datasets.png" width="70%">
|
|
|
19 |
<img src="https://raw.githubusercontent.com/AIRI-Institute/OmniFusion/main/content/architecture2.png" width="100%">
|
20 |
</p>
|
21 |
|
22 |
+
The open source OmniFusion core is Mistral-7B. There are two versions of the model: the first uses one visual encoder CLIP-ViT-L, the second uses two encoders (CLIP-ViT-L and Dino V2). Initially focusing on images, we chose CLIP-ViT-L as a visual encoder due to for its efficient information transfer capabilities.
|
23 |
|
24 |
+
The most important component of OmniFusion is its adapter, a mechanism that allows the language model to interpret and incorporate information from different modalities. For the single encoder version, the adapter is a single-layer four-headed transformer layer that has shown superior performance compared to simpler linear layers or MLP structures. The model with two encoders uses an adapter that collects features from all layers of visual encoders, this adapter does not have an attention layer.
|
25 |
|
26 |
+
The adapter takes embeddings from the visual encoder (excluding the CLS token) and maps them to textual embeddings that are compatible with the language model.
|
|
|
|
|
27 |
|
28 |
+
To further enhance the multimodal capabilities of the model, we use learnable custom tokens to mark the beginning and end of visual data in a text sequence.
|
29 |
|
30 |
### Training Process consists of two stages
|
31 |
|
32 |
+
1. Pre-training the adapter on Image Captioning tasks (LAION, CC-4M, etc.).
|
33 |
+
2. Once the adapter has learned to map visual embeddings to the language model's textual space, we proceed to unfreeze Mistral for improved understanding of dialog formats and complex queries.
|
34 |
+
3. The dataset consists of data in English and Russian, the English part has the following structure:
|
35 |
|
36 |
<p align="left">
|
37 |
<img src="https://raw.githubusercontent.com/AIRI-Institute/OmniFusion/main/content/datasets.png" width="70%">
|