File size: 7,691 Bytes
17c5794 c8ac8c4 d9cbb32 c8ac8c4 17c5794 c8ac8c4 17c5794 c8ac8c4 17c5794 c8ac8c4 17c5794 c8ac8c4 | 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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | ---
language:
- en
- tr
- de
- fr
- es
- it
- pt
- ru
- zh
- ja
- ko
- hi
- ar
- nl
- pl
- uk
- vi
- th
- id
- cs
license: mit
tags:
- global-ai
- multilingual
- vision-language-model
- multimodal
- lamapi
- next-2-fast
- next-series
- 4b
- efficient
- gemma-3
- transformer
- text-generation
- reasoning
- artificial-intelligence
- nlp
pipeline_tag: image-text-to-text
datasets:
- mlabonne/FineTome-100k
- ITCL/FineTomeOs
- Gryphe/ChatGPT-4o-Writing-Prompts
- dongguanting/ARPO-SFT-54K
- OpenSPG/KAG-Thinker-training-dataset
- uclanlp/Brief-Pro
- CognitiveKernel/CognitiveKernel-Pro-SFT
- QuixiAI/dolphin-r1
library_name: transformers
---

[](https://discord.gg/XgH4EpyPD2)
# β‘ Next 2 Fast (4B)
### *Global Speed, Multimodal Intelligence β Engineered by Lamapi*
[](https://opensource.org/licenses/MIT)
[]()
[](https://huggingface.co/Lamapi/next-2-fast)
---
## π Overview
**Next 2 Fast** is a state-of-the-art **4-billion parameter Multimodal Vision-Language Model (VLM)** designed for high-performance reasoning across languages and modalities.
Developed by **Lamapi**, a leading AI research lab in TΓΌrkiye, this model represents a leap in efficiency, bridging the gap between massive commercial models and accessible, open-source intelligence. Built upon the **Gemma 3** architecture and refined with our proprietary SFT and DPO techniques, **Next 2 Fast** is not just a language modelβit is a global reasoning engine that sees, understands, and communicates fluently in **English, Turkish, German, French, Spanish, and 25+ other languages.**
**Why Next 2 Fast?**
* β‘ **Global Performance:** Tuned for complex reasoning in English and multilingual contexts, outperforming larger models.
* ποΈ **Vision & Text:** Seamlessly processes images and text to generate code, descriptions, and analysis.
* π **Unmatched Speed:** Optimized for low-latency inference, making it ~2x faster than previous generations.
* π **Efficient Deployment:** Runs smoothly on consumer hardware (8GB VRAM) using 4-bit/8-bit quantization.
---
# π Benchmark Performance
**Next 2 Fast** delivers flagship-level performance in a compact 4B size, proving that efficiency does not require sacrificing intelligence.
<table>
<thead>
<tr>
<th>Model</th>
<th>Params</th>
<th>MMLU (5-shot) %</th>
<th>MMLU-Pro %</th>
<th>GSM8K %</th>
<th>MATH %</th>
</tr>
</thead>
<tbody>
<tr class="next" style="background-color: #e6f3ff; font-weight: bold;">
<td data-label="Model">β‘ Next 2 Fast</td>
<td>4B</td>
<td data-label="MMLU (5-shot) %">85.1</td>
<td data-label="MMLU-Pro %">67.4</td>
<td data-label="GSM8K %">83.5</td>
<td data-label="MATH %"><strong>71.2</strong></td>
</tr>
<tr>
<td data-label="Model">Gemma 3 4B</td>
<td>4B</td>
<td data-label="MMLU (5-shot) %">82.0</td>
<td data-label="MMLU-Pro %">64.5</td>
<td data-label="GSM8K %">80.1</td>
<td data-label="MATH %">68.0</td>
</tr>
<tr>
<td data-label="Model">Llama 3.2 3B</td>
<td>3B</td>
<td data-label="MMLU (5-shot) %">63.4</td>
<td data-label="MMLU-Pro %">52.1</td>
<td data-label="GSM8K %">45.2</td>
<td data-label="MATH %">42.8</td>
</tr>
<tr>
<td data-label="Model">Phi-3.5 Mini</td>
<td>3.8B</td>
<td data-label="MMLU (5-shot) %">84.0</td>
<td data-label="MMLU-Pro %">66.0</td>
<td data-label="GSM8K %">82.0</td>
<td data-label="MATH %">69.5</td>
</tr>
</tbody>
</table>
---
## π Quick Start
**Next 2 Fast** is fully compatible with the Hugging Face `transformers` library.
### πΌοΈ Multimodal Inference (Vision + Text):
```python
from transformers import AutoTokenizer, AutoModelForCausalLM, AutoProcessor
from PIL import Image
import torch
model_id = "thelamapi/next2-fast"
# Load Model & Processor
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
processor = AutoProcessor.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
# Load Image
image = Image.open("image.jpg")
# Create Multimodal Prompt
messages = [
{
"role": "system",
"content": [{"type": "text", "text": "You are Next-2, an AI assistant created by Lamapi. Provide concise and accurate analysis."}]
},
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Analyze this image and explain in English."}
]
}
]
# Process & Generate
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=prompt, images=[image], return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(output[0], skip_special_tokens=True))
```
### π¬ Text-Only Chat (Global Reasoning):
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "Lamapi/next-2-fast"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are Next 2 Fast, an advanced AI assistant."},
{"role": "user", "content": "Explain the concept of entropy in thermodynamics simply."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))
```
---
## π Key Features
| Feature | Description |
| :--- | :--- |
| **π True Multilingualism** | Fluent in English, Turkish, German, French, Spanish, and more. No "translation-ese." |
| **π§ Visual Intelligence** | Can read charts, identify objects, and reason about visual scenes effectively. |
| **β‘ High Efficiency** | Designed for speed. Ideal for edge devices, local deployment, and real-time apps. |
| **π» Code & Math** | Strong capabilities in Python coding, debugging, and solving mathematical problems. |
| **π‘οΈ Global Alignment** | Fine-tuned with a diverse dataset to ensure safety and neutrality across cultures. |
---
## π― Mission
At **Lamapi**, our mission is to build the **Next** generation of intelligence that is accessible to everyone, everywhere.
**Next 2 Fast** proves that world-class AI innovation isn't limited to Silicon Valley. By combining efficient architecture with high-quality global datasets, we provide a powerful tool for researchers, developers, and businesses worldwide.
---
## π License
This model is open-sourced under the **MIT License**. It is free for academic and commercial use.
---
## π Contact & Ecosystem
We are **Lamapi**.
* π§ **Contact:** [Mail](mailto:lamapicontact@gmail.com)
* π€ **HuggingFace:** [Company Page](https://huggingface.co/thelamapi)
---
> **Next 2 Fast** β *Global Intelligence. Lightning Speed. Powered by Lamapi.*
[](https://huggingface.co/Lamapi) |