Safetensors
matveymih commited on
Commit
1c29548
1 Parent(s): e8d59fd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -6
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
- OmniFusion open source version core is Mistral-7B. Initially focusing on images, we selected the CLIP-ViT-L as the visual encoder for its efficient information transfer capabilities. The most important component of OmniFusion is its adapter, a mechanism allowing the language model to interpret and incorporate information from different modalities. The adapter is a single-layer, four-headed transformer, which has shown superior performance compared to simpler linear layers or MLP structures.
24
 
25
- This adapter takes embeddings from the visual encoder (excluding the CLS token) and maps them into textual embeddings compatible with the language model.
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 ViT's visual embeddings to the language model's textual space, we proceed to unfreeze Mistral for improved understanding of dialog formats and complex queries.
 
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%">