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_FUNCTIONS against 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 + GGUF Q4_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 (1 pt for easy, 2 pts for medium, 3 pts for hard; 193 max 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 by 193).

Qim-1.5B EIPB Benchmark

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.5 was run via Web Chat with effort: High on 2026-11-29. In its own Linux GCC run it scored 97/100 (97.41% strict / 98.88% partial); on our local Windows MinGW GCC 16.2.0 harness (same environment as Base and Qim-1.5B), 6 tasks failed to build and 2 font tasks failed, yielding 88.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 into bfloat16 weights
  • 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.

Downloads last month
420
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Antinimus/Qim-1.5B

Finetuned
(253)
this model