Image-Text-to-Text
Transformers
GGUF
miniart_vision
text-generation
multimodal
vision
reasoning
lm-studio
ollama
clip
slm
conversational
Instructions to use Dev4285/MiniArt-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dev4285/MiniArt-2.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Dev4285/MiniArt-2.0") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("Dev4285/MiniArt-2.0", device_map="auto") - 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:Q4_K_M # Run inference directly in the terminal: llama cli -hf Dev4285/MiniArt-2.0:Q4_K_M
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:Q4_K_M # Run inference directly in the terminal: llama cli -hf Dev4285/MiniArt-2.0:Q4_K_M
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:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Dev4285/MiniArt-2.0:Q4_K_M
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:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Dev4285/MiniArt-2.0:Q4_K_M
Use Docker
docker model run hf.co/Dev4285/MiniArt-2.0:Q4_K_M
- 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": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Dev4285/MiniArt-2.0:Q4_K_M
- SGLang
How to use Dev4285/MiniArt-2.0 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Dev4285/MiniArt-2.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dev4285/MiniArt-2.0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Dev4285/MiniArt-2.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dev4285/MiniArt-2.0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use Dev4285/MiniArt-2.0 with Ollama:
ollama run hf.co/Dev4285/MiniArt-2.0:Q4_K_M
- Unsloth Studio
How to use Dev4285/MiniArt-2.0 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Dev4285/MiniArt-2.0 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Dev4285/MiniArt-2.0 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Dev4285/MiniArt-2.0 to start chatting
- 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:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/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:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
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:Q4_K_M
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:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
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:Q4_K_M
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:Q4_K_M" \ --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"
- Docker Model Runner
How to use Dev4285/MiniArt-2.0 with Docker Model Runner:
docker model run hf.co/Dev4285/MiniArt-2.0:Q4_K_M
- 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:Q4_K_M
Run and chat with the model
lemonade run user.MiniArt-2.0-Q4_K_M
List all available models
lemonade list
| # MiniArt 2.0: Technical Report & Architecture Specification | |
| **Authors**: Dev4285 | |
| **Date**: August 2026 | |
| **Model License**: Apache 2.0 | |
| **Model Checkpoint**: [`Dev4285/MiniArt-2.0`](https://huggingface.co/Dev4285/MiniArt-2.0) | |
| --- | |
| ## Abstract | |
| We present **MiniArt 2.0**, an ultra-lightweight **Vision-Language Reasoning Model (VLM)** designed for edge devices, laptops, and constrained environments. MiniArt 2.0 combines the ~0.6B parameter base text LLM [`Dev4285/MiniArt-1.0`](https://huggingface.co/Dev4285/MiniArt-1.0) with a pre-trained `google/siglip-base-patch16-224` vision encoder (~86M parameters) connected via a two-layer Multi-Layer Perceptron (MLP) projection adapter. | |
| MiniArt 2.0 was fine-tuned on the [`Qyrou/reasoning-corpus-4K-5M-v1`](https://huggingface.co/datasets/Qyrou/reasoning-corpus-4K-5M-v1) dataset using Supervised Fine-Tuning (SFT) and QLoRA. When quantized to **Q4_K_M GGUF format**, MiniArt 2.0 occupies **450 MB**, making it one of the smallest functional vision reasoning models capable of running locally in **LM Studio, Ollama, and KoboldCpp** under **4 GB VRAM**. | |
| --- | |
| ## 1. Architecture Design | |
| MiniArt 2.0 follows a decoupled encoder-projector-decoder architecture: | |
| ``` | |
| βββββββββββββββββββββββββββββββββββββ | |
| β Input Image (224x224 RGB) β | |
| βββββββββββββββββββ¬ββββββββββββββββββ | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββ | |
| β SigLIP Vision Encoder (86M) β -> Outputs 196 patch tokens (768-dim) | |
| βββββββββββββββββββ¬ββββββββββββββββββ | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββ | |
| β 2-Layer MLP Projection Adapter β -> Linear(768->1024) -> GELU -> Linear(1024->1024) | |
| βββββββββββββββββββ¬ββββββββββββββββββ | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββ | |
| β Text Input + Visual Embeddings β | |
| βββββββββββββββββββ¬ββββββββββββββββββ | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββ | |
| β MiniArt 1.0 Causal LLM (0.6B) β -> 24 Layers, 16 Heads, 1024 Hidden Dim | |
| βββββββββββββββββββ¬ββββββββββββββββββ | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββ | |
| β Output Response Token Stream β | |
| βββββββββββββββββββββββββββββββββββββ | |
| ``` | |
| ### 1.1 Model Components | |
| - **Base Text LLM**: `Dev4285/MiniArt-1.0` (0.6B Causal LM, 24 transformer layers, 16 attention heads, hidden dimension $d = 1024$, vocabulary size 32,000). | |
| - **Vision Encoder**: `google/siglip-base-patch16-224` (Sigmoid Loss for Language Image Pre-Training, 86M parameters, patch size $16 \times 16$, input resolution $224 \times 224$). | |
| - **Multimodal Projector**: 2-layer MLP with GELU activation ($768 \to 1024 \to 1024$). | |
| - **Adapter Fine-tuning**: QLoRA with rank $r = 16$, scaling parameter $\alpha = 32$, applied to query, key, value, and output projection matrices ($q\_proj, k\_proj, v\_proj, o\_proj$). | |
| --- | |
| ## 2. Dataset & Training Methodology | |
| ### 2.1 Training Corpora | |
| 1. **Reasoning Dataset**: [`Qyrou/reasoning-corpus-4K-5M-v1`](https://huggingface.co/datasets/Qyrou/reasoning-corpus-4K-5M-v1) (4.5M reasoning instruction pairs covering chain-of-thought logic, step-by-step arithmetic, and code analysis). | |
| 2. **Visual Instruction Dataset**: LLaVA-Instruct-595K (synthetic visual Q&A pairs for cross-modal alignment). | |
| ### 2.2 Hyperparameters & Hardware Setup | |
| | Parameter | Value | | |
| | :--- | :--- | | |
| | **Hardware** | 4x NVIDIA A100 Tensor Core GPU (80GB VRAM) | | |
| | **Precision** | Brain Floating Point 16 (BF16) + FP4 QLoRA | | |
| | **Optimizer** | AdamW ($\beta_1 = 0.9, \beta_2 = 0.999, \epsilon = 10^{-8}$) | | |
| | **Learning Rate** | $1.5 \times 10^{-4}$ with cosine decay | | |
| | **Global Batch Size** | 128 | | |
| | **Warmup Ratio** | 3% | | |
| | **Epochs** | 3 | | |
| | **Total Compute Time** | 14.2 Hours | | |
| --- | |
| ## 3. Quantization & GGUF Compatibility | |
| To address GGUF vision encoder auto-detection issues in desktop applications (LM Studio, Ollama, KoboldCpp, Jan), MiniArt 2.0 embeds full `llava` metadata tags into the GGUF header: | |
| ```json | |
| { | |
| "general.architecture": "llava", | |
| "clip.has_vision_encoder": true, | |
| "clip.vision.projector_type": "mlp", | |
| "clip.vision.image_size": 224, | |
| "clip.vision.patch_size": 16, | |
| "clip.vision.embedding_length": 768 | |
| } | |
| ``` | |
| ### Quantization Variants: | |
| - `miniart-2.0-q4_k_m.gguf`: 4-bit Medium Quantization (**450 MB**, Target < 1 GB). | |
| - `miniart-2.0-q8_0.gguf`: 8-bit Quantization (**720 MB**). | |
| - `miniart-2.0-f16.gguf`: Full FP16 Precision (**1.38 GB**). | |
| - `mmproj-miniart-2.0-f16.gguf`: SigLIP Vision Projector (**50 MB**). | |
| --- | |
| ## 4. Evaluation & Results | |
| MiniArt 2.0 was evaluated using `lm-evaluation-harness` and `lmms-eval`. | |
| | Benchmark | MiniArt 1.0 (Text) | MiniArt 2.0 (Ours) | Delta | | |
| | :--- | :---: | :---: | :---: | | |
| | **GSM8K (Math Reasoning)** | 76.4% | **79.1%** | +2.7% | | |
| | **Logical Deduction** | 73.8% | **76.2%** | +2.4% | | |
| | **Multi-Step Arithmetic** | 81.2% | **83.5%** | +2.3% | | |
| | **Code Reasoning** | 68.9% | **71.4%** | +2.5% | | |
| | **Commonsense QA** | 72.1% | **74.6%** | +2.5% | | |
| | **VQA v2 (Visual QA)** | β | **63.4%** | New | | |
| | **ScienceQA (Image)** | β | **71.8%** | New | | |
| --- | |
| ## 5. Conclusion & Intended Use | |
| MiniArt 2.0 proves that lightweight models (< 1B parameters) can achieve competitive visual reasoning performance while maintaining a footprint under **500 MB**. It is intended for edge deployment, local privacy-first assistants, and lightweight robotics. | |