Qim-1.5B
Qim-1.5B is a compact, bilingual (English & Russian) code-generation model fine-tuned from Qwen/Qwen2.5-Coder-1.5B-Instruct with a focus on C++20 and Dear ImGui (1.92–1.93+).
Created by Antinimus.
Highlights
- Bilingual (EN + RU): Understands both English and Russian coding prompts while preserving clean C++20 syntax.
- Compiler-Verified ImGui Data: Fine-tuned on a curated mix where all ImGui & GitHub C++20 samples were verified with
g++ -std=c++20 -DIMGUI_DISABLE_OBSOLETE_FUNCTIONSagainst Dear ImGui 1.93.1. - No Boilerplate Leakage: Trained to implement clean UI functions/components without hallucinating
glfwInit(),int main(), or obsolete ImGui APIs when asked for modular UI code. - Lightweight & Local-Friendly: 1.54B parameters — runs comfortably on consumer GPUs and CPUs (
bfloat16+ GGUFQ4_K_M,Q5_K_M,Q8_0).
Benchmark & Evaluation (EIPB)
Evaluated on Europa ImPlus BenchMark (EIPB) — 100 C++20 / Dear ImGui 1.93.1 tasks across 8 categories (compiled locally with MinGW-W64 GCC 16.2.0, IMGUI_DISABLE_OBSOLETE_FUNCTIONS, evaluated on 2026-11-29).
- EIPB Score (strict): weighted percentage of fully solved tasks (
1pt for easy,2pts for medium,3pts for hard;193max points — e.g., solving 1 easy task =1 / 193 = 0.52%). - EIPB Partial: weighted test pass rate across individual unit tests (
points × passed / total, divided by193).

| Model | Compiled | Solved (Strict) | EIPB Score | EIPB Partial |
|---|---|---|---|---|
Qwen2.5-Coder-1.5B-Instruct (Base) | 22 / 100 | 0 / 100 | 0.00% | 1.64% |
Qim-1.5B (Ours) | 25 / 100 | 1 / 100 | 0.52% | 1.99% |
Claude Opus 5.5 (Web Chat, effort: High) | 94 / 100 | 89 / 100 | 88.08% | 90.07% |
Per-Category Breakdown (EIPB Partial %)
| Category | Tasks | Max Pts | Base (1.5B) | Qim-1.5B | Claude Opus 5.5 (High) |
|---|---|---|---|---|---|
| Core Widgets | 15 | 19 | 8.8% | 11.4% | 100.0% |
| Input & Popups | 15 | 31 | 0.0% | 2.2% | 100.0% |
| Layout & Tables | 15 | 30 | 0.0% | 1.7% | 100.0% |
| Custom Rendering | 15 | 30 | 0.0% | 0.0% | 100.0% |
| Fonts, Style & IO | 12 | 24 | 4.2% | 0.0% | 70.8% |
| Architecture C++ | 13 | 29 | 0.0% | 0.0% | 77.0% |
| Debugging | 10 | 16 | 3.1% | 3.1% | 65.6% |
| Projects | 5 | 14 | 0.0% | 0.0% | 100.0% |
Reproducibility note:
Claude Opus 5.5was run via Web Chat witheffort: Highon2026-11-29. In its own Linux GCC run it scored97/100(97.41%strict /98.88%partial); on our local Windows MinGW GCC 16.2.0 harness (same environment as Base andQim-1.5B), 6 tasks failed to build and 2 font tasks failed, yielding88.08%strict /90.07%partial.
Available Quantizations (GGUF)
Verified GGUF builds are available in gguf/:
| File | Quant | Size | Use Case |
|---|---|---|---|
Qim-1.5B-Q8_0.gguf | Q8_0 | 1.53 GB | Near-lossless quality |
Qim-1.5B-Q5_K_M.gguf | Q5_K_M | 1.05 GB | Best quality / size balance |
Qim-1.5B-Q4_K_M.gguf | Q4_K_M | 940 MB | Fast CPU / low-VRAM inference |
Quickstart (transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Antinimus/Qim-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [
{"role": "system", "content": "You are an expert C++20 and Dear ImGui engineer."},
{"role": "user", "content": "Сделай компактное окно настроек на Dear ImGui: чекбокс, слайдер скорости и кнопка сброса."},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
with torch.no_grad():
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
response = tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(response)
Quickstart (llama.cpp)
llama-cli -m Qim-1.5B-Q4_K_M.gguf -p "Write a Dear ImGui settings window with a checkbox and speed slider."
Training Details
- Base Model:
Qwen/Qwen2.5-Coder-1.5B-Instruct - Method: LoRA SFT (
r=16,lora_alpha=32,lora_dropout=0.05, all linear projections) merged intobfloat16weights - Dataset Mix:
g++-verified Dear ImGui 1.93.1 & GitHub C++20 samples (imgui_v3_verified, 2×)- Filtered C++ instructions (
CodeFeedback+Magicoder, 3,000 samples) - Bilingual EN/RU chat (
ultrachat_200k+GrandMaster-PRO-MAX, 1,500 samples)
- Hardware: AMD Radeon RX 9060 XT (16 GB, ROCm/HIP)
Limitations
Qim-1.5B is a small 1.5B parameter model intended for compact UI components, helper widgets, and local experimentation. Always verify generated C++ code with your compiler before production use.
Acknowledgments
Built on top of the Qwen2.5-Coder family by Alibaba Cloud.
Support
If you find Qim-1.5B useful and want to support future releases and benchmarks:
| Network | Address |
|---|---|
| ETH | 0x9e708ebD5A80867002Bb2e8d5901d50B192E5cc3 |
| BTC | bc1q5762nneqpkjza5v37lwgjmfm3y3m4gu6td6kpc |
| SOL | Ez2VDw5cAz3HGNvhVifRisJ39doebUWELBwm6Hc7rThJ |
| TRON (TRC20) | TEPG7QPjZF2vjAdNn6DN9wUcpSBn2UiSS2 |
| POLYGON | 0x9e708ebD5A80867002Bb2e8d5901d50B192E5cc3 |