OmniFusion — a multimodal model to communicate using text and images
# Add to your Claude Code skills
git clone https://github.com/FusionBrainLab/OmniFusionOmniFusion is an advanced multimodal AI model designed to extend the capabilities of traditional language processing systems by integrating additional data modalities such as images, and potentially audio, 3D and video content.
[10/04/2024] OmniFusion-1.1 weights are uploaded to Huggingface. Now the model can speak Russian :)
[01/04/2024] Model training source code for OmniFusion-1.1 released
[22/11/2023] OmniFusion weights are available on Huggingface
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.
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.
No comments yet. Be the first to share your thoughts!
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.
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.
| Task | Dataset Source | #Samples | | --------------| ---------------------------------- | --------- | | Caption | ShareGPT4V | 100K | | VQA | COCO, SAM-9K | 20K, 9K | | WebQA | WebData | 1.5K | | OCRQA | TextVQA, OCRVQA | 120K | | Conversation | LL...