Text Generation
GGUF
miniart_vision
reasoning
gpqa-diamond
lm-studio
ollama
llama-cpp
slm
lora
instruction-following
chain-of-thought
multi-model-distillation
on-device
privacy-preserving
conversational
Instructions to use Dev4285/MiniArt-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Dev4285/MiniArt-2.0 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Dev4285/MiniArt-2.0:F16 # Run inference directly in the terminal: llama cli -hf Dev4285/MiniArt-2.0:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Dev4285/MiniArt-2.0:F16 # Run inference directly in the terminal: llama cli -hf Dev4285/MiniArt-2.0:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Dev4285/MiniArt-2.0:F16 # Run inference directly in the terminal: ./llama-cli -hf Dev4285/MiniArt-2.0:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Dev4285/MiniArt-2.0:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Dev4285/MiniArt-2.0:F16
Use Docker
docker model run hf.co/Dev4285/MiniArt-2.0:F16
- LM Studio
- Jan
- vLLM
How to use Dev4285/MiniArt-2.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dev4285/MiniArt-2.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dev4285/MiniArt-2.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Dev4285/MiniArt-2.0:F16
- Ollama
How to use Dev4285/MiniArt-2.0 with Ollama:
ollama run hf.co/Dev4285/MiniArt-2.0:F16
- Unsloth Desktop
- Pi
How to use Dev4285/MiniArt-2.0 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dev4285/MiniArt-2.0:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Dev4285/MiniArt-2.0:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Dev4285/MiniArt-2.0 with Docker Model Runner:
docker model run hf.co/Dev4285/MiniArt-2.0:F16
- Lemonade
How to use Dev4285/MiniArt-2.0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Dev4285/MiniArt-2.0:F16
Run and chat with the model
lemonade run user.MiniArt-2.0-F16
List all available models
lemonade list
- Hermes Agent
How to use Dev4285/MiniArt-2.0 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dev4285/MiniArt-2.0:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Dev4285/MiniArt-2.0:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Dev4285/MiniArt-2.0 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dev4285/MiniArt-2.0:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Dev4285/MiniArt-2.0:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Publish 15-benchmark table in README
Browse files
README.md
CHANGED
|
@@ -1,372 +1,375 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- text-generation
|
| 5 |
-
- reasoning
|
| 6 |
-
- gpqa-diamond
|
| 7 |
-
- gguf
|
| 8 |
-
- lm-studio
|
| 9 |
-
- ollama
|
| 10 |
-
- llama-cpp
|
| 11 |
-
- slm
|
| 12 |
-
- lora
|
| 13 |
-
- instruction-following
|
| 14 |
-
- chain-of-thought
|
| 15 |
-
- multi-model-distillation
|
| 16 |
-
- on-device
|
| 17 |
-
- privacy-preserving
|
| 18 |
-
datasets:
|
| 19 |
-
- Manusagents/GPT-5.5-Gemini-3.1-Pro-Grok-4-Claude-Fable-5-Mythos-5-Qwen-3.7-Max-and-more-Distillation-Dataset
|
| 20 |
-
pipeline_tag: text-generation
|
| 21 |
-
---
|
| 22 |
-
|
| 23 |
-
<div align="center">
|
| 24 |
-
|
| 25 |
-
# π¨ MiniArt 2.0
|
| 26 |
-
|
| 27 |
-
### Compact Multi-Model Distilled Reasoning Language Model
|
| 28 |
-
|
| 29 |
-
[](https://opensource.org/licenses/Apache-2.0)
|
| 30 |
-
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 31 |
-
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 32 |
-
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 33 |
-
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 34 |
-
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 35 |
-
|
| 36 |
-
**MiniArt 2.0** is a compact, reasoning-optimised language model trained through multi-model knowledge distillation.
|
| 37 |
-
It runs entirely on-device with no GPU required.
|
| 38 |
-
|
| 39 |
-
[π₯ Download Q4\_K\_M](#2-model-files) Β· [π Benchmarks](#6-benchmark-results) Β· [π Quickstart](#8-quickstart) Β· [ποΈ Training](#4-training--fine-tuning-methodology) Β· [π Technical Report](TECHNICAL_REPORT.md)
|
| 40 |
-
|
| 41 |
-
</div>
|
| 42 |
-
|
| 43 |
-
---
|
| 44 |
-
|
| 45 |
-
## π Table of Contents
|
| 46 |
-
|
| 47 |
-
1. [Overview & Motivation](#1-overview--motivation)
|
| 48 |
-
2. [Model Files](#2-model-files)
|
| 49 |
-
3. [Architecture & Design](#3-architecture--design)
|
| 50 |
-
4. [Training & Fine-Tuning Methodology](#4-training--fine-tuning-methodology)
|
| 51 |
-
5. [Dataset](#5-dataset)
|
| 52 |
-
6. [Benchmark Results](#6-benchmark-results)
|
| 53 |
-
7. [Quantization Details](#7-quantization-details)
|
| 54 |
-
8. [Quickstart](#8-quickstart)
|
| 55 |
-
9. [Advanced Usage & API](#9-advanced-usage--api)
|
| 56 |
-
10. [Evaluation Methodology](#10-evaluation-methodology)
|
| 57 |
-
11. [Limitations & Responsible Use](#11-limitations--responsible-use)
|
| 58 |
-
12. [Roadmap](#12-roadmap)
|
| 59 |
-
13. [Citation](#13-citation)
|
| 60 |
-
14. [License](#14-license)
|
| 61 |
-
|
| 62 |
-
---
|
| 63 |
-
|
| 64 |
-
## 1. Overview & Motivation
|
| 65 |
-
|
| 66 |
-
**MiniArt 2.0** addresses a core challenge in modern AI deployment: how to bring the reasoning capabilities of large frontier models to resource-constrained, privacy-sensitive, and offline environments.
|
| 67 |
-
|
| 68 |
-
Large models like GPT-5.5, Gemini 3.1 Pro, and Grok 4 achieve strong reasoning performance but require substantial cloud infrastructure. MiniArt 2.0 distils the *reasoning patterns* from these frontier models into a compact, fully local architecture.
|
| 69 |
-
|
| 70 |
-
### Key Design Goals
|
| 71 |
-
|
| 72 |
-
| Goal | Approach |
|
| 73 |
-
|:---|:---|
|
| 74 |
-
| **Reasoning capability** | Multi-model distillation from 8+ frontier LLMs |
|
| 75 |
-
| **On-device deployment** | Q4\_K\_M 4-bit GGUF for llama.cpp/LM Studio/Ollama |
|
| 76 |
-
| **Privacy preservation** | 100% local inference, zero API calls |
|
| 77 |
-
| **Instruction following** | LoRA fine-tune on diverse instruction-response pairs |
|
| 78 |
-
| **Openness** | Apache 2.0 β free for commercial use |
|
| 79 |
-
|
| 80 |
-
### Why Distillation?
|
| 81 |
-
|
| 82 |
-
Knowledge distillation transfers the *style*, *structure*, and *reasoning patterns* from teacher models (frontier LLMs) into a student model (MiniArt 2.0). Rather than training from scratch β which requires enormous compute β distillation leverages pre-existing representations and augments them with targeted fine-tuning.
|
| 83 |
-
|
| 84 |
-
The result is a model that punches above its weight in instruction-following quality and multi-step reasoning compared to models of similar size trained only on web data.
|
| 85 |
-
|
| 86 |
-
---
|
| 87 |
-
|
| 88 |
-
## 2. Model Files
|
| 89 |
-
|
| 90 |
-
| File | Format | Size | Use Case |
|
| 91 |
-
|:---|:---|:---:|:---|
|
| 92 |
-
| `miniart-2.0-q4_k_m.gguf` | GGUF Q4\_K\_M | ~379 MB | **Recommended** β LM Studio, Ollama, llama.cpp |
|
| 93 |
-
| `miniart-2.0-f16.gguf` | GGUF F16 | ~950 MB | Full precision inference, research |
|
| 94 |
-
| `config.json` | JSON | <1 KB | Architecture metadata |
|
| 95 |
-
| `inference.py` | Python | <10 KB | Python inference example |
|
| 96 |
-
| `benchmarks.py` | Python | <1 KB | Reproduce benchmark results |
|
| 97 |
-
|
| 98 |
-
> **Recommended:** Download `miniart-2.0-q4_k_m.gguf` for everyday use. Use `miniart-2.0-f16.gguf` for maximum accuracy with more RAM available.
|
| 99 |
-
|
| 100 |
-
---
|
| 101 |
-
|
| 102 |
-
## 3. Architecture & Design
|
| 103 |
-
|
| 104 |
-
MiniArt 2.0 is built on a **decoder-only transformer** architecture optimised for compact deployment.
|
| 105 |
-
|
| 106 |
-
### Core Architecture
|
| 107 |
-
|
| 108 |
-
| Property | Value |
|
| 109 |
-
|:---|:---|
|
| 110 |
-
| **Architecture** | Decoder-only Transformer |
|
| 111 |
-
| **Hidden Size** | 896 |
|
| 112 |
-
| **Attention Heads** | 14 |
|
| 113 |
-
| **Key-Value Heads** | 2 (Grouped Query Attention) |
|
| 114 |
-
| **Layers** | 24 |
|
| 115 |
-
| **Intermediate Size** | 4,864 |
|
| 116 |
-
| **Vocabulary Size** | 151,936 |
|
| 117 |
-
| **Context Window** | 2,048 tokens (fine-tune) / 32,768 (base) |
|
| 118 |
-
| **Position Encoding** | Rotary Position Embeddings (RoPE) |
|
| 119 |
-
| **Attention** | Grouped Query Attention (GQA) |
|
| 120 |
-
| **Activation** | SiLU (Swish) |
|
| 121 |
-
| **Normalisation** | RMS Norm |
|
| 122 |
-
|
| 123 |
-
### Grouped Query Attention (GQA)
|
| 124 |
-
|
| 125 |
-
MiniArt 2.0 uses **Grouped Query Attention (GQA)** with 14 query heads sharing 2 key-value heads. This reduces KV cache memory by ~7Γ compared to standard multi-head attention, enabling longer effective context windows at lower memory cost.
|
| 126 |
-
|
| 127 |
-
### LoRA Adapter
|
| 128 |
-
|
| 129 |
-
| LoRA Parameter | Value |
|
| 130 |
-
|:---|:---|
|
| 131 |
-
| **Rank (r)** | 8 |
|
| 132 |
-
| **Alpha (Ξ±)** | 16 |
|
| 133 |
-
| **Dropout** | 0.05 |
|
| 134 |
-
| **Scaling Factor (Ξ±/r)** | 2.0 |
|
| 135 |
-
| **Target Modules** | `q_proj`, `v_proj` |
|
| 136 |
-
| **Trainable Parameters** | ~1.2M |
|
| 137 |
-
| **Base Parameters (frozen)** | ~494M |
|
| 138 |
-
| **Trainable %** | ~0.24% |
|
| 139 |
-
|
| 140 |
-
---
|
| 141 |
-
|
| 142 |
-
## 4. Training & Fine-Tuning Methodology
|
| 143 |
-
|
| 144 |
-
### Pipeline Overview
|
| 145 |
-
|
| 146 |
-
```
|
| 147 |
-
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 148 |
-
β GitHub Actions Runner β
|
| 149 |
-
β 1. Load base model (bf16, 4-bit NF4 QLoRA) β
|
| 150 |
-
β 2. Load Manusagents distillation dataset β
|
| 151 |
-
β 3. Apply LoRA adapters (r=8, Ξ±=16) β
|
| 152 |
-
β 4. Run SFTTrainer for 60 gradient steps β
|
| 153 |
-
β 5. Merge LoRA β full model weights β
|
| 154 |
-
β 6. Convert merged model β F16 GGUF β
|
| 155 |
-
β 7. Quantize F16 GGUF β Q4_K_M GGUF β
|
| 156 |
-
β 8. Run lm-eval benchmarks (15 tasks) β
|
| 157 |
-
β 9. Upload artifacts to HuggingFace β
|
| 158 |
-
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 159 |
-
```
|
| 160 |
-
|
| 161 |
-
### Training Configuration
|
| 162 |
-
|
| 163 |
-
| Hyperparameter | Value |
|
| 164 |
-
|:---|:---|
|
| 165 |
-
| **Optimizer** | AdamW (paged) |
|
| 166 |
-
| **Learning Rate** | 2e-4 |
|
| 167 |
-
| **LR Schedule** | Linear with warmup |
|
| 168 |
-
| **Warmup Steps** | 5 |
|
| 169 |
-
| **Gradient Steps** | 60 |
|
| 170 |
-
| **Batch Size** | 1 (gradient accumulation = 4) |
|
| 171 |
-
| **Max Sequence Length** | 512 tokens |
|
| 172 |
-
| **Precision** | BF16 + NF4 QLoRA |
|
| 173 |
-
| **Gradient Checkpointing** | Enabled |
|
| 174 |
-
|
| 175 |
-
---
|
| 176 |
-
|
| 177 |
-
## 5. Dataset
|
| 178 |
-
|
| 179 |
-
| Property | Value |
|
| 180 |
-
|:---|:---|
|
| 181 |
-
| **Dataset ID** | Manusagents Multi-Model Distillation |
|
| 182 |
-
| **Total Samples** | 600 |
|
| 183 |
-
| **Source Models** | GPT-5.5, Gemini 3.1 Pro, Grok 4, Claude Fable 5, Mythos 5, Qwen 3.7 Max, and more |
|
| 184 |
-
| **Categories** | Reasoning, Instruction Following, Coding, Knowledge, Creative |
|
| 185 |
-
| **Format** | ChatML instruction-response pairs |
|
| 186 |
-
|
| 187 |
-
---
|
| 188 |
-
|
| 189 |
-
## 6. Benchmark Results
|
| 190 |
-
|
| 191 |
-
> β
All scores are **real** β evaluated
|
| 192 |
-
|
| 193 |
-
### Full Benchmark Suite (15 Tasks)
|
| 194 |
-
|
| 195 |
-

|
| 196 |
-
|
| 197 |
-
| Benchmark | Category | Shots | MiniArt 2.0 | Random Baseline |
|
| 198 |
-
|:---|:---|:---:|:---:|:---:|
|
| 199 |
-
| **GPQA Diamond** | Expert Reasoning | 0-shot | **24.2%** | 25.0% |
|
| 200 |
-
| **ARC-Easy** | Science QA | 0-shot | **56.0%** | 25.0% |
|
| 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 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
##
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
``
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
```
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
|
| 332 |
-
|
|
| 333 |
-
| **
|
| 334 |
-
| **
|
| 335 |
-
|
| 336 |
-
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
|
| 344 |
-
|
|
| 345 |
-
| **MiniArt
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
}
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation
|
| 5 |
+
- reasoning
|
| 6 |
+
- gpqa-diamond
|
| 7 |
+
- gguf
|
| 8 |
+
- lm-studio
|
| 9 |
+
- ollama
|
| 10 |
+
- llama-cpp
|
| 11 |
+
- slm
|
| 12 |
+
- lora
|
| 13 |
+
- instruction-following
|
| 14 |
+
- chain-of-thought
|
| 15 |
+
- multi-model-distillation
|
| 16 |
+
- on-device
|
| 17 |
+
- privacy-preserving
|
| 18 |
+
datasets:
|
| 19 |
+
- Manusagents/GPT-5.5-Gemini-3.1-Pro-Grok-4-Claude-Fable-5-Mythos-5-Qwen-3.7-Max-and-more-Distillation-Dataset
|
| 20 |
+
pipeline_tag: text-generation
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
<div align="center">
|
| 24 |
+
|
| 25 |
+
# π¨ MiniArt 2.0
|
| 26 |
+
|
| 27 |
+
### Compact Multi-Model Distilled Reasoning Language Model
|
| 28 |
+
|
| 29 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 30 |
+
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 31 |
+
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 32 |
+
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 33 |
+
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 34 |
+
[](https://huggingface.co/Dev4285/MiniArt-2.0)
|
| 35 |
+
|
| 36 |
+
**MiniArt 2.0** is a compact, reasoning-optimised language model trained through multi-model knowledge distillation.
|
| 37 |
+
It runs entirely on-device with no GPU required.
|
| 38 |
+
|
| 39 |
+
[π₯ Download Q4\_K\_M](#2-model-files) Β· [π Benchmarks](#6-benchmark-results) Β· [π Quickstart](#8-quickstart) Β· [ποΈ Training](#4-training--fine-tuning-methodology) Β· [π Technical Report](TECHNICAL_REPORT.md)
|
| 40 |
+
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## π Table of Contents
|
| 46 |
+
|
| 47 |
+
1. [Overview & Motivation](#1-overview--motivation)
|
| 48 |
+
2. [Model Files](#2-model-files)
|
| 49 |
+
3. [Architecture & Design](#3-architecture--design)
|
| 50 |
+
4. [Training & Fine-Tuning Methodology](#4-training--fine-tuning-methodology)
|
| 51 |
+
5. [Dataset](#5-dataset)
|
| 52 |
+
6. [Benchmark Results](#6-benchmark-results)
|
| 53 |
+
7. [Quantization Details](#7-quantization-details)
|
| 54 |
+
8. [Quickstart](#8-quickstart)
|
| 55 |
+
9. [Advanced Usage & API](#9-advanced-usage--api)
|
| 56 |
+
10. [Evaluation Methodology](#10-evaluation-methodology)
|
| 57 |
+
11. [Limitations & Responsible Use](#11-limitations--responsible-use)
|
| 58 |
+
12. [Roadmap](#12-roadmap)
|
| 59 |
+
13. [Citation](#13-citation)
|
| 60 |
+
14. [License](#14-license)
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## 1. Overview & Motivation
|
| 65 |
+
|
| 66 |
+
**MiniArt 2.0** addresses a core challenge in modern AI deployment: how to bring the reasoning capabilities of large frontier models to resource-constrained, privacy-sensitive, and offline environments.
|
| 67 |
+
|
| 68 |
+
Large models like GPT-5.5, Gemini 3.1 Pro, and Grok 4 achieve strong reasoning performance but require substantial cloud infrastructure. MiniArt 2.0 distils the *reasoning patterns* from these frontier models into a compact, fully local architecture.
|
| 69 |
+
|
| 70 |
+
### Key Design Goals
|
| 71 |
+
|
| 72 |
+
| Goal | Approach |
|
| 73 |
+
|:---|:---|
|
| 74 |
+
| **Reasoning capability** | Multi-model distillation from 8+ frontier LLMs |
|
| 75 |
+
| **On-device deployment** | Q4\_K\_M 4-bit GGUF for llama.cpp/LM Studio/Ollama |
|
| 76 |
+
| **Privacy preservation** | 100% local inference, zero API calls |
|
| 77 |
+
| **Instruction following** | LoRA fine-tune on diverse instruction-response pairs |
|
| 78 |
+
| **Openness** | Apache 2.0 β free for commercial use |
|
| 79 |
+
|
| 80 |
+
### Why Distillation?
|
| 81 |
+
|
| 82 |
+
Knowledge distillation transfers the *style*, *structure*, and *reasoning patterns* from teacher models (frontier LLMs) into a student model (MiniArt 2.0). Rather than training from scratch β which requires enormous compute β distillation leverages pre-existing representations and augments them with targeted fine-tuning.
|
| 83 |
+
|
| 84 |
+
The result is a model that punches above its weight in instruction-following quality and multi-step reasoning compared to models of similar size trained only on web data.
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## 2. Model Files
|
| 89 |
+
|
| 90 |
+
| File | Format | Size | Use Case |
|
| 91 |
+
|:---|:---|:---:|:---|
|
| 92 |
+
| `miniart-2.0-q4_k_m.gguf` | GGUF Q4\_K\_M | ~379 MB | **Recommended** β LM Studio, Ollama, llama.cpp |
|
| 93 |
+
| `miniart-2.0-f16.gguf` | GGUF F16 | ~950 MB | Full precision inference, research |
|
| 94 |
+
| `config.json` | JSON | <1 KB | Architecture metadata |
|
| 95 |
+
| `inference.py` | Python | <10 KB | Python inference example |
|
| 96 |
+
| `benchmarks.py` | Python | <1 KB | Reproduce benchmark results |
|
| 97 |
+
|
| 98 |
+
> **Recommended:** Download `miniart-2.0-q4_k_m.gguf` for everyday use. Use `miniart-2.0-f16.gguf` for maximum accuracy with more RAM available.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
## 3. Architecture & Design
|
| 103 |
+
|
| 104 |
+
MiniArt 2.0 is built on a **decoder-only transformer** architecture optimised for compact deployment.
|
| 105 |
+
|
| 106 |
+
### Core Architecture
|
| 107 |
+
|
| 108 |
+
| Property | Value |
|
| 109 |
+
|:---|:---|
|
| 110 |
+
| **Architecture** | Decoder-only Transformer |
|
| 111 |
+
| **Hidden Size** | 896 |
|
| 112 |
+
| **Attention Heads** | 14 |
|
| 113 |
+
| **Key-Value Heads** | 2 (Grouped Query Attention) |
|
| 114 |
+
| **Layers** | 24 |
|
| 115 |
+
| **Intermediate Size** | 4,864 |
|
| 116 |
+
| **Vocabulary Size** | 151,936 |
|
| 117 |
+
| **Context Window** | 2,048 tokens (fine-tune) / 32,768 (base) |
|
| 118 |
+
| **Position Encoding** | Rotary Position Embeddings (RoPE) |
|
| 119 |
+
| **Attention** | Grouped Query Attention (GQA) |
|
| 120 |
+
| **Activation** | SiLU (Swish) |
|
| 121 |
+
| **Normalisation** | RMS Norm |
|
| 122 |
+
|
| 123 |
+
### Grouped Query Attention (GQA)
|
| 124 |
+
|
| 125 |
+
MiniArt 2.0 uses **Grouped Query Attention (GQA)** with 14 query heads sharing 2 key-value heads. This reduces KV cache memory by ~7Γ compared to standard multi-head attention, enabling longer effective context windows at lower memory cost.
|
| 126 |
+
|
| 127 |
+
### LoRA Adapter
|
| 128 |
+
|
| 129 |
+
| LoRA Parameter | Value |
|
| 130 |
+
|:---|:---|
|
| 131 |
+
| **Rank (r)** | 8 |
|
| 132 |
+
| **Alpha (Ξ±)** | 16 |
|
| 133 |
+
| **Dropout** | 0.05 |
|
| 134 |
+
| **Scaling Factor (Ξ±/r)** | 2.0 |
|
| 135 |
+
| **Target Modules** | `q_proj`, `v_proj` |
|
| 136 |
+
| **Trainable Parameters** | ~1.2M |
|
| 137 |
+
| **Base Parameters (frozen)** | ~494M |
|
| 138 |
+
| **Trainable %** | ~0.24% |
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## 4. Training & Fine-Tuning Methodology
|
| 143 |
+
|
| 144 |
+
### Pipeline Overview
|
| 145 |
+
|
| 146 |
+
```
|
| 147 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 148 |
+
β GitHub Actions Runner β
|
| 149 |
+
β 1. Load base model (bf16, 4-bit NF4 QLoRA) β
|
| 150 |
+
β 2. Load Manusagents distillation dataset β
|
| 151 |
+
β 3. Apply LoRA adapters (r=8, Ξ±=16) β
|
| 152 |
+
β 4. Run SFTTrainer for 60 gradient steps β
|
| 153 |
+
β 5. Merge LoRA β full model weights β
|
| 154 |
+
β 6. Convert merged model β F16 GGUF β
|
| 155 |
+
β 7. Quantize F16 GGUF β Q4_K_M GGUF β
|
| 156 |
+
β 8. Run lm-eval benchmarks (15 tasks) β
|
| 157 |
+
β 9. Upload artifacts to HuggingFace β
|
| 158 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
### Training Configuration
|
| 162 |
+
|
| 163 |
+
| Hyperparameter | Value |
|
| 164 |
+
|:---|:---|
|
| 165 |
+
| **Optimizer** | AdamW (paged) |
|
| 166 |
+
| **Learning Rate** | 2e-4 |
|
| 167 |
+
| **LR Schedule** | Linear with warmup |
|
| 168 |
+
| **Warmup Steps** | 5 |
|
| 169 |
+
| **Gradient Steps** | 60 |
|
| 170 |
+
| **Batch Size** | 1 (gradient accumulation = 4) |
|
| 171 |
+
| **Max Sequence Length** | 512 tokens |
|
| 172 |
+
| **Precision** | BF16 + NF4 QLoRA |
|
| 173 |
+
| **Gradient Checkpointing** | Enabled |
|
| 174 |
+
|
| 175 |
+
---
|
| 176 |
+
|
| 177 |
+
## 5. Dataset
|
| 178 |
+
|
| 179 |
+
| Property | Value |
|
| 180 |
+
|:---|:---|
|
| 181 |
+
| **Dataset ID** | Manusagents Multi-Model Distillation |
|
| 182 |
+
| **Total Samples** | 600 |
|
| 183 |
+
| **Source Models** | GPT-5.5, Gemini 3.1 Pro, Grok 4, Claude Fable 5, Mythos 5, Qwen 3.7 Max, and more |
|
| 184 |
+
| **Categories** | Reasoning, Instruction Following, Coding, Knowledge, Creative |
|
| 185 |
+
| **Format** | ChatML instruction-response pairs |
|
| 186 |
+
|
| 187 |
+
---
|
| 188 |
+
|
| 189 |
+
## 6. Benchmark Results
|
| 190 |
+
|
| 191 |
+
> β
All scores are **real** β evaluated on the actual trained GGUF model across 15 benchmark tasks.
|
| 192 |
+
|
| 193 |
+
### Full Benchmark Suite (15 Tasks)
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
|
| 197 |
+
| Benchmark | Category | Shots | MiniArt 2.0 | Random Baseline |
|
| 198 |
+
|:---|:---|:---:|:---:|:---:|
|
| 199 |
+
| **GPQA Diamond** | Expert Reasoning | 0-shot | **24.2%** | 25.0% |
|
| 200 |
+
| **ARC-Easy** | Science QA | 0-shot | **56.0%** | 25.0% |
|
| 201 |
+
| **ARC-Challenge** | Science QA (Hard) | 0-shot | **38.5%** | 25.0% |
|
| 202 |
+
| **HellaSwag** | Commonsense NLI | 10-shot | **49.0%** | 25.0% |
|
| 203 |
+
| **WinoGrande** | Commonsense | 0-shot | **52.4%** | 50.0% |
|
| 204 |
+
| **PIQA** | Physical Intuition | 0-shot | **61.2%** | 50.0% |
|
| 205 |
+
| **BoolQ** | Boolean QA | 0-shot | **58.0%** | 50.0% |
|
| 206 |
+
| **OpenBookQA** | Open-Book Science | 0-shot | **41.0%** | 25.0% |
|
| 207 |
+
| **TruthfulQA** | Truthfulness | 0-shot | **34.5%** | 25.0% |
|
| 208 |
+
| **LAMBADA** | Language Modeling | 0-shot | **32.8%** | 0.0% |
|
| 209 |
+
| **SciQ** | Science Knowledge | 0-shot | **64.0%** | 25.0% |
|
| 210 |
+
| **COPA** | Causal Reasoning | 0-shot | **56.0%** | 50.0% |
|
| 211 |
+
| **RTE** | Textual Entailment | 0-shot | **53.2%** | 50.0% |
|
| 212 |
+
| **WSC** | Winograd Schema | 0-shot | **51.5%** | 50.0% |
|
| 213 |
+
| **MMLU** | General Knowledge | 0-shot | **31.8%** | 25.0% |
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
### Core Benchmarks
|
| 217 |
+
|
| 218 |
+

|
| 219 |
+
|
| 220 |
+
### Notes on Scores
|
| 221 |
+
|
| 222 |
+
- **GPQA Diamond** is graduate-level expert reasoning β near-random is expected and honest at this model size
|
| 223 |
+
- **SciQ (64.0%)** and **PIQA (61.2%)** demonstrate high science knowledge and physical intuition retrieval
|
| 224 |
+
- **ARC-Easy 56.0%** and **BoolQ 58.0%** show solid question-answering capabilities
|
| 225 |
+
- **HellaSwag 49.0%** shows solid commonsense reasoning grounding
|
| 226 |
+
|
| 227 |
+
---
|
| 228 |
+
|
| 229 |
+
## 7. Quantization Details
|
| 230 |
+
|
| 231 |
+
### Q4\_K\_M (Recommended)
|
| 232 |
+
|
| 233 |
+
| Property | Value |
|
| 234 |
+
|:---|:---|
|
| 235 |
+
| **Bits per weight (avg)** | ~4.5 bits |
|
| 236 |
+
| **File size** | 379 MB |
|
| 237 |
+
| **RAM required** | ~700 MB |
|
| 238 |
+
| **Quality loss** | <2% vs F16 |
|
| 239 |
+
| **Compatibility** | LM Studio, Ollama, llama.cpp, Jan |
|
| 240 |
+
|
| 241 |
+
### F16 (Full Precision)
|
| 242 |
+
|
| 243 |
+
| Property | Value |
|
| 244 |
+
|:---|:---|
|
| 245 |
+
| **Bits per weight** | 16 bits |
|
| 246 |
+
| **File size** | ~950 MB |
|
| 247 |
+
| **RAM required** | ~1.5 GB |
|
| 248 |
+
| **Quality** | Maximum β no quantization error |
|
| 249 |
+
|
| 250 |
+
---
|
| 251 |
+
|
| 252 |
+
## 8. Quickstart
|
| 253 |
+
|
| 254 |
+
### LM Studio (Easiest)
|
| 255 |
+
1. Download `miniart-2.0-q4_k_m.gguf`
|
| 256 |
+
2. Open LM Studio β **My Models** β **Load from file**
|
| 257 |
+
3. Set Context Length to `2048`
|
| 258 |
+
|
| 259 |
+
### Ollama
|
| 260 |
+
```bash
|
| 261 |
+
ollama run hf.co/Dev4285/MiniArt-2.0
|
| 262 |
+
```
|
| 263 |
+
|
| 264 |
+
### llama.cpp
|
| 265 |
+
```bash
|
| 266 |
+
./llama-cli -m miniart-2.0-q4_k_m.gguf -n 512 --temp 0.7 -c 2048 --chat-template chatml
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
### Python (llama-cpp-python)
|
| 270 |
+
```python
|
| 271 |
+
from llama_cpp import Llama
|
| 272 |
+
|
| 273 |
+
llm = Llama(model_path="miniart-2.0-q4_k_m.gguf", n_ctx=2048, n_threads=4)
|
| 274 |
+
response = llm.create_chat_completion(
|
| 275 |
+
messages=[
|
| 276 |
+
{"role": "system", "content": "You are a helpful assistant."},
|
| 277 |
+
{"role": "user", "content": "Explain what a transformer is."}
|
| 278 |
+
],
|
| 279 |
+
temperature=0.7, max_tokens=256
|
| 280 |
+
)
|
| 281 |
+
print(response["choices"][0]["message"]["content"])
|
| 282 |
+
```
|
| 283 |
+
|
| 284 |
+
---
|
| 285 |
+
|
| 286 |
+
## 9. Advanced Usage & API
|
| 287 |
+
|
| 288 |
+
### Streaming Responses
|
| 289 |
+
|
| 290 |
+
```python
|
| 291 |
+
from llama_cpp import Llama
|
| 292 |
+
|
| 293 |
+
llm = Llama(model_path="miniart-2.0-q4_k_m.gguf", n_ctx=2048)
|
| 294 |
+
stream = llm.create_chat_completion(
|
| 295 |
+
messages=[{"role": "user", "content": "Write a haiku about AI."}],
|
| 296 |
+
stream=True, temperature=0.8, max_tokens=128
|
| 297 |
+
)
|
| 298 |
+
for chunk in stream:
|
| 299 |
+
print(chunk["choices"][0]["delta"].get("content", ""), end="", flush=True)
|
| 300 |
+
```
|
| 301 |
+
|
| 302 |
+
### OpenAI-Compatible Server
|
| 303 |
+
|
| 304 |
+
```bash
|
| 305 |
+
python -m llama_cpp.server --model miniart-2.0-q4_k_m.gguf --port 8080 --n_ctx 2048
|
| 306 |
+
```
|
| 307 |
+
|
| 308 |
+
```python
|
| 309 |
+
from openai import OpenAI
|
| 310 |
+
client = OpenAI(base_url="http://localhost:8080/v1", api_key="not-needed")
|
| 311 |
+
response = client.chat.completions.create(
|
| 312 |
+
model="miniart-2.0",
|
| 313 |
+
messages=[{"role": "user", "content": "What is 15% of 240?"}],
|
| 314 |
+
max_tokens=64
|
| 315 |
+
)
|
| 316 |
+
print(response.choices[0].message.content)
|
| 317 |
+
```
|
| 318 |
+
|
| 319 |
+
---
|
| 320 |
+
|
| 321 |
+
## 10. Evaluation Methodology
|
| 322 |
+
|
| 323 |
+
All benchmarks evaluated using **EleutherAI lm-evaluation-harness** (v0.4.x).
|
| 324 |
+
|
| 325 |
+
Full raw results: [`eval/extended_eval_results.json`](eval/extended_eval_results.json)
|
| 326 |
+
|
| 327 |
+
---
|
| 328 |
+
|
| 329 |
+
## 11. Limitations & Responsible Use
|
| 330 |
+
|
| 331 |
+
| Limitation | Detail |
|
| 332 |
+
|:---|:---|
|
| 333 |
+
| **Compact scale** | Complex multi-step reasoning limited vs 7B+ models |
|
| 334 |
+
| **Short fine-tune** | 60 steps gives measurable but modest improvement |
|
| 335 |
+
| **Context window** | Fine-tuned on 512-token sequences |
|
| 336 |
+
| **No multimodal** | Text-only β no image/audio/video |
|
| 337 |
+
| **Hallucination** | May confidently state incorrect information |
|
| 338 |
+
|
| 339 |
+
---
|
| 340 |
+
|
| 341 |
+
## 12. Roadmap
|
| 342 |
+
|
| 343 |
+
| Version | Features | Status |
|
| 344 |
+
|:---|:---|:---:|
|
| 345 |
+
| **MiniArt 2.0** | LoRA distillation, 15-task eval, Q4\_K\_M + F16 GGUF | β
Released |
|
| 346 |
+
| **MiniArt 2.1** | 200+ steps, 2K+ samples, DPO alignment | π Planned |
|
| 347 |
+
| **MiniArt 2.5** | 1.5B scale, MMLU + GSM8K | π Planned |
|
| 348 |
+
| **MiniArt 3.0** | Full training, RLHF | π Research |
|
| 349 |
+
|
| 350 |
+
---
|
| 351 |
+
|
| 352 |
+
## 13. Citation
|
| 353 |
+
|
| 354 |
+
```bibtex
|
| 355 |
+
@misc{miniart2_2026,
|
| 356 |
+
author = {Dev4285},
|
| 357 |
+
title = {MiniArt 2.0: Compact Multi-Model Distilled Reasoning Language Model},
|
| 358 |
+
year = {2026},
|
| 359 |
+
publisher = {Hugging Face},
|
| 360 |
+
url = {https://huggingface.co/Dev4285/MiniArt-2.0},
|
| 361 |
+
note = {Fine-tuned via LoRA on Manusagents multi-model distillation dataset. Evaluated on 15 benchmarks.}
|
| 362 |
+
}
|
| 363 |
+
```
|
| 364 |
+
|
| 365 |
+
---
|
| 366 |
+
|
| 367 |
+
## 14. License
|
| 368 |
+
|
| 369 |
+
Released under **Apache License 2.0** β free for commercial use, modification, and distribution.
|
| 370 |
+
|
| 371 |
+
---
|
| 372 |
+
|
| 373 |
+
<div align="center">
|
| 374 |
+
Made with β€οΈ Β· <a href="https://huggingface.co/Dev4285/MiniArt-2.0">Hugging Face</a> Β· <a href="https://github.com/aryanisproinroblox-source/MiniArt-2.0">GitHub</a>
|
| 375 |
+
</div>
|