Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,38 +1,78 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
#
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
|
| 17 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
```
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
##
|
|
|
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- code-generation
|
| 7 |
+
- nextjs
|
| 8 |
+
- react
|
| 9 |
+
- typescript
|
| 10 |
+
- vision
|
| 11 |
+
- multimodal
|
| 12 |
+
- mindi
|
| 13 |
+
- mindigenous
|
| 14 |
+
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# MINDI 1.5 Vision-Coder
|
| 18 |
|
| 19 |
+
**Built by MINDIGENOUS.AI β Faaz, Mumbai, India**
|
| 20 |
|
| 21 |
+
## Model Description
|
| 22 |
+
MINDI 1.5 is a multimodal agentic AI coding model that generates frontend code
|
| 23 |
+
(HTML/CSS/JS, Next.js, React, Tailwind) from text prompts and UI screenshots.
|
| 24 |
|
| 25 |
+
## Architecture
|
| 26 |
+
| Component | Details |
|
| 27 |
+
|-----------|---------|
|
| 28 |
+
| Base LLM | Qwen/Qwen2.5-Coder-7B-Instruct (7.62B params) |
|
| 29 |
+
| Vision Encoder | CLIP ViT-L/14 (frozen, 304M params) |
|
| 30 |
+
| LoRA Adapters | r=64, alpha=128 (161.5M trainable params) |
|
| 31 |
+
| Fusion | VisionLanguageFusion with text_gate (16.8M params) |
|
| 32 |
+
| Total | 8.1B params, 182.5M trainable (2.25%) |
|
| 33 |
|
| 34 |
+
## Training
|
| 35 |
+
- **3-Phase Progressive Training** on AMD MI300X 192GB + Modal A100 40GB
|
| 36 |
+
- **Dataset**: 1.45M examples, 860M tokens
|
| 37 |
+
- **Final loss**: 0.25β0.40 range
|
| 38 |
|
| 39 |
+
## Checkpoint Structure
|
| 40 |
+
```
|
| 41 |
+
checkpoints/
|
| 42 |
+
βββ phase3_final/ β Best checkpoint for inference
|
| 43 |
+
β βββ lora/ β LoRA adapter weights
|
| 44 |
+
β βββ vision/ β Vision projection weights
|
| 45 |
+
β βββ fusion/ β Fusion layer weights
|
| 46 |
+
βββ phase3_all_step2500_final/
|
| 47 |
+
βββ phase3_all_step2000/
|
| 48 |
+
βββ phase3_all_step1500/
|
| 49 |
+
βββ ... (earlier phases)
|
| 50 |
```
|
| 51 |
|
| 52 |
+
## Usage
|
| 53 |
+
```python
|
| 54 |
+
from src.model.mindi_model import MINDI15
|
| 55 |
+
import torch
|
| 56 |
|
| 57 |
+
model = MINDI15(
|
| 58 |
+
model_name="Qwen/Qwen2.5-Coder-7B-Instruct",
|
| 59 |
+
clip_model="openai/clip-vit-large-patch14",
|
| 60 |
+
hidden_size=3584,
|
| 61 |
+
num_visual_tokens=256,
|
| 62 |
+
torch_dtype=torch.bfloat16,
|
| 63 |
+
)
|
| 64 |
+
model.load("checkpoints/phase3_final")
|
| 65 |
+
model.eval()
|
| 66 |
|
| 67 |
+
response = model.generate(
|
| 68 |
+
prompt="Build a Next.js landing page",
|
| 69 |
+
max_new_tokens=2048,
|
| 70 |
+
temperature=0.7,
|
| 71 |
+
)
|
| 72 |
+
```
|
| 73 |
|
| 74 |
+
## Special Tokens (22 total, 11 pairs)
|
| 75 |
+
think, code, file, critique, suggest, search, error, fix, vision, sandbox, context
|
| 76 |
|
| 77 |
+
## Built By
|
| 78 |
+
Faaz β MINDIGENOUS.AI | Mumbai, India | AprilβMay 2026
|