Mimanus-VLM-M1_v1

Mimanus-VLM-M1_v1 is a compact, high-resolution Vision-Language Model (VLM) developed for grounded Visual Question Answering (VQA) and multi-turn visual dialogue.

It connects a frozen Google SigLIP 2 Large (384px) visual encoder to Meta Llama 3.2 1B Instruct through a lightweight, high-fidelity 1:1 MergeMLP connector (6.3M parameters) that preserves all 576 spatial patch tokens without lossy downsampling.


Model Architecture

Component Architecture & Dimensions Status
Visual Encoder Google SigLIP 2 Large (patch16-384), 23 ViT blocks executed (layer -2 cut), 1024-dim Frozen (~435M params)
Visual Connector 1:1 MergeMLP: LayerNorm(1024) -> Linear(1024, 2048) -> GELU -> Linear(2048, 2048) Trained (6,297,600 params)
Visual Tokens 576 tokens ($24 \times 24$ patch grid) projected to width 2048 Direct 1:1 patch fidelity
Language Backbone Meta Llama 3.2 1B Instruct (16 layers, GQA 32:8 heads, SwiGLU, 2048 context window) Fine-Tuned (~1.23B params)

Quickstart & Usage

1. Installation

git clone https://huggingface.co/ankushthakurr09/Mimanus-VLM-M1_v1
cd Mimanus-VLM-M1_v1
pip install -r requirements.txt

2. Python API

from PIL import Image
from modeling_mimanus import MimanusVLM

# Load model from Hugging Face Hub (or local directory)
model = MimanusVLM.from_pretrained("ankushthakurr09/Mimanus-VLM-M1_v1")

# Load your image
image = Image.open("sample.jpg")

# Generate grounded answer
answer = model.generate(image, "What is happening in this image?")
print("Answer:", answer)

3. Command Line Interface

# Single question
python inference.py --image test.jpg --question "What color is the car?"

# Interactive terminal conversation
python inference.py --image test.jpg

Two-Stage Training Recipe

  1. Stage 1 (Feature Alignment):
    • Trained connector on 558,128 LLaVA pre-training image-caption pairs (pretrain.jsonl).
    • Converged to a final loss of 2.3747.
  2. Stage 2 (Instruction Tuning):
    • Fine-tuned connector + full Llama 3.2 1B on 1,400,520 multimodal instruction samples across VQA v2, GQA, TextVQA, and Visual Genome.
    • Cross-entropy loss computed strictly on assistant response tokens.

Grounding & Evaluation Framework

To prevent reliance on textual language shortcuts, Mimanus-VLM-M1_v1 is benchmarked against rigorous groundedness diagnostics:

  • Blind Twin Baseline: Verifies significant accuracy collapse when image features are ablated.
  • Image Swap Sensitivity: Measures prediction divergence when input images are replaced with random images.
  • Complementary Pairs: Dual-image questions testing visual disambiguation.
  • GroundProbe & POPE: Object existence, counting, and spatial relation hallucination checks.

Citation & Credits

Final Completed Training Metrics (Stage 2)

  • Status: Completed Successfully (100% finished)
  • Final Cross-Entropy Loss: 0.9093
  • Total Training Duration: 1507.2 minutes (~25.1 hours)
  • Total Updates: 10942 updates
  • Total Instruction Samples: 1,400,520 samples
  • Hardware: NVIDIA GeForce RTX 5090 (32 GB)
Downloads last month
65
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for MiamnusAI/Mimanus-VLM-M1_v1

Finetuned
(4)
this model