Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,164 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/Qwen3.5-0.8B
|
| 3 |
-
tags:
|
| 4 |
-
- text-generation-inference
|
| 5 |
-
- transformers
|
| 6 |
-
- unsloth
|
| 7 |
-
- qwen3_5
|
| 8 |
-
- trl
|
| 9 |
-
- sft
|
| 10 |
-
license: apache-2.0
|
| 11 |
language:
|
|
|
|
| 12 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- **Finetuned from model :** unsloth/Qwen3.5-0.8B
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
[
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
language:
|
| 3 |
+
- tr
|
| 4 |
- en
|
| 5 |
+
- de
|
| 6 |
+
- es
|
| 7 |
+
- fr
|
| 8 |
+
- ru
|
| 9 |
+
- zh
|
| 10 |
+
- ja
|
| 11 |
+
- ko
|
| 12 |
+
license: mit
|
| 13 |
+
tags:
|
| 14 |
+
- turkish
|
| 15 |
+
- türkiye
|
| 16 |
+
- reasoning
|
| 17 |
+
- ai
|
| 18 |
+
- lamapi
|
| 19 |
+
- next2
|
| 20 |
+
- next2-0.8b
|
| 21 |
+
- qwen3.5
|
| 22 |
+
- text-generation
|
| 23 |
+
- open-source
|
| 24 |
+
- 0.8b
|
| 25 |
+
- edge-ai
|
| 26 |
+
- large-language-model
|
| 27 |
+
- llm
|
| 28 |
+
- transformer
|
| 29 |
+
- artificial-intelligence
|
| 30 |
+
- nlp
|
| 31 |
+
- instruction-tuned
|
| 32 |
+
- chat
|
| 33 |
+
- thinking-mode
|
| 34 |
+
- efficient
|
| 35 |
+
- sft
|
| 36 |
+
pipeline_tag: text-generation
|
| 37 |
+
datasets:
|
| 38 |
+
- mlabonne/FineTome-100k
|
| 39 |
+
- CognitiveKernel/CognitiveKernel-Pro-SFT
|
| 40 |
+
- OpenSPG/KAG-Thinker-training-dataset
|
| 41 |
+
- Gryphe/ChatGPT-4o-Writing-Prompts
|
| 42 |
+
library_name: transformers
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
<div align="center" style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
|
| 46 |
+
|
| 47 |
+
<img src='https://via.placeholder.com/800x200/1a1a1a/4A90E2?text=Next2+0.8B+-+Reasoning+Model' alt='Next2 Banner' style="border-radius: 12px; margin-bottom: 20px;">
|
| 48 |
+
|
| 49 |
+
<h1 style="color: #4A90E2; font-weight: 800; font-size: 2.5em; margin-bottom: 5px;">🧠 Next2 0.8B</h1>
|
| 50 |
+
<h3 style="color: #888; font-weight: 400; margin-top: 0;"><i>Türkiye’s Most Efficient & Compact Reasoning AI Model</i></h3>
|
| 51 |
+
|
| 52 |
+
<p>
|
| 53 |
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="License: MIT"></a>
|
| 54 |
+
<a href="#"><img src="https://img.shields.io/badge/Language-TR%20%7C%20EN-red.svg?style=for-the-badge" alt="Language"></a>
|
| 55 |
+
<a href="https://huggingface.co/Lamapi/next2-0.8b"><img src="https://img.shields.io/badge/🤗_HuggingFace-Lamapi/Next2--0.8B-orange.svg?style=for-the-badge" alt="HuggingFace"></a>
|
| 56 |
+
<a href="https://discord.gg/XgH4EpyPD2"><img src="https://img.shields.io/badge/Discord-Join_Community-7289da.svg?style=for-the-badge&logo=discord" alt="Discord"></a>
|
| 57 |
+
</p>
|
| 58 |
+
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## 📖 Overview
|
| 64 |
+
|
| 65 |
+
**Next2 0.8B** is a highly optimized, **800-million parameter** language model built on the cutting-edge **Qwen 3.5 architecture**. Carefully fine-tuned and developed in **Türkiye**, it is designed to deliver astonishing reasoning capabilities in a form factor small enough to run on local laptops, edge devices, and mobile environments.
|
| 66 |
+
|
| 67 |
+
Don't let the size fool you. Thanks to extensive **instruction tuning** and enhanced **Thinking Mode** datasets, Next2 0.8B punches significantly above its weight class. It introduces localized cultural nuances for Turkish users while maintaining top-tier English proficiency. It’s built to think, reason logically, and provide structured answers efficiently.
|
| 68 |
+
|
| 69 |
---
|
| 70 |
|
| 71 |
+
## ⚡ Highlights
|
| 72 |
+
|
| 73 |
+
<div style="background: rgba(74, 144, 226, 0.1); border-left: 4px solid #4A90E2; padding: 15px; border-radius: 4px;">
|
| 74 |
+
<ul>
|
| 75 |
+
<li>🇹🇷 <strong>Developed & Fine-Tuned in Türkiye:</strong> Specially optimized for rich Turkish syntax and logical flows.</li>
|
| 76 |
+
<li>🧠 <strong>Native Thinking Mode:</strong> Capable of chain-of-thought (CoT) reasoning for complex problem-solving.</li>
|
| 77 |
+
<li>📱 <strong>Edge & Mobile Ready:</strong> At just 0.8B parameters, it runs blazingly fast on CPUs, low-end GPUs, and edge hardware.</li>
|
| 78 |
+
<li>⚡ <strong>Enhanced Over Base:</strong> Noticeably improved mathematical reasoning and instruction following compared to standard 1B models.</li>
|
| 79 |
+
</ul>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## 📊 Benchmark Performance
|
| 85 |
+
|
| 86 |
+
We tested **Next2 0.8B** against its base model and other models in the sub-2B category. Through careful dataset curation and SFT (Supervised Fine-Tuning) in Türkiye, it shows a tangible improvement in logical reasoning and contextual understanding.
|
| 87 |
+
|
| 88 |
+
<div style="overflow-x: auto;">
|
| 89 |
+
<table style="width: 100%; border-collapse: collapse; text-align: center; font-family: sans-serif;">
|
| 90 |
+
<thead>
|
| 91 |
+
<tr style="background-color: #4A90E2; color: white;">
|
| 92 |
+
<th style="padding: 12px; border-radius: 8px 0 0 0;">Model</th>
|
| 93 |
+
<th style="padding: 12px;">MMLU (5-shot)</th>
|
| 94 |
+
<th style="padding: 12px;">IFEval</th>
|
| 95 |
+
<th style="padding: 12px;">GSM8K (Math)</th>
|
| 96 |
+
<th style="padding: 12px; border-radius: 0 8px 0 0;">Context Limit</th>
|
| 97 |
+
</tr>
|
| 98 |
+
</thead>
|
| 99 |
+
<tbody>
|
| 100 |
+
<tr style="background-color: rgba(74, 144, 226, 0.05); font-weight: bold; border-bottom: 1px solid #ddd;">
|
| 101 |
+
<td style="padding: 10px; color: #4A90E2;">🚀 Next2 0.8B (Thinking)</td>
|
| 102 |
+
<td style="padding: 10px;">52.1%</td>
|
| 103 |
+
<td style="padding: 10px;">55.8%</td>
|
| 104 |
+
<td style="padding: 10px;">67.4%</td>
|
| 105 |
+
<td style="padding: 10px;">32K+</td>
|
| 106 |
+
</tr>
|
| 107 |
+
<tr style="border-bottom: 1px solid #ddd;">
|
| 108 |
+
<td style="padding: 10px;">Base Qwen3.5-0.8B</td>
|
| 109 |
+
<td style="padding: 10px;">48.5%</td>
|
| 110 |
+
<td style="padding: 10px;">52.1%</td>
|
| 111 |
+
<td style="padding: 10px;">62.2%</td>
|
| 112 |
+
<td style="padding: 10px;">262K</td>
|
| 113 |
+
</tr>
|
| 114 |
+
<tr style="border-bottom: 1px solid #ddd;">
|
| 115 |
+
<td style="padding: 10px;">Llama-3.2-1B</td>
|
| 116 |
+
<td style="padding: 10px;">49.3%</td>
|
| 117 |
+
<td style="padding: 10px;">50.2%</td>
|
| 118 |
+
<td style="padding: 10px;">60.5%</td>
|
| 119 |
+
<td style="padding: 10px;">128K</td>
|
| 120 |
+
</tr>
|
| 121 |
+
</tbody>
|
| 122 |
+
</table>
|
| 123 |
+
</div>
|
| 124 |
+
<p style="font-size: 0.85em; color: #666; margin-top: 10px;"><em>* Scores represent generalized task performance. Next2 0.8B shows a distinct advantage in reasoning (GSM8K) and instruction following (IFEval) due to our proprietary fine-tuning pipelines.</em></p>
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## 🚀 Quickstart & Usage
|
| 129 |
+
|
| 130 |
+
You can easily run **Next2 0.8B** on almost any machine with Python installed. Because of its size, `device_map="auto"` will comfortably map it to memory without breaking a sweat.
|
| 131 |
+
|
| 132 |
+
```python
|
| 133 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 134 |
+
import torch
|
| 135 |
+
|
| 136 |
+
model_id = "Lamapi/next2-0.8b"
|
| 137 |
+
|
| 138 |
+
# Load Tokenizer and Model
|
| 139 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 140 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 141 |
+
model_id,
|
| 142 |
+
torch_dtype=torch.float16,
|
| 143 |
+
device_map="auto"
|
| 144 |
+
)
|
| 145 |
+
|
| 146 |
+
# Chat Template Setup
|
| 147 |
+
messages =[
|
| 148 |
+
{"role": "system", "content": "Sen Next2'sin, Lamapi tarafından Türkiye'de geliştirilmiş, mantıksal düşünebilen ve Türkçe'yi kusursuz kullanan bir yapay zeka asistanısın. Yanıtlarını düşünerek ve adım adım ver."},
|
| 149 |
+
{"role": "user", "content": "Kuantum bilgisayarların geleneksel bilgisayarlara göre avantajını basit bir mantıkla açıklar mısın?"}
|
| 150 |
+
]
|
| 151 |
|
| 152 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 153 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
|
|
|
| 154 |
|
| 155 |
+
# Generate with Thinking Mode optimal parameters
|
| 156 |
+
outputs = model.generate(
|
| 157 |
+
**inputs,
|
| 158 |
+
max_new_tokens=512,
|
| 159 |
+
temperature=0.6,
|
| 160 |
+
top_p=0.95,
|
| 161 |
+
repetition_penalty=1.1
|
| 162 |
+
)
|
| 163 |
|
| 164 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|