/ Модель

Характеристики

Контекст
262 144 токена
Параметры
4,4 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qim-4B
Библиотека
transformers
Опубликована
3 дек 2026

Qim-5B

Генерация текстаТекст → текст
1 292скачиваний за 30 дней1лайквеса обновлены4 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Двуязычная модель Antinimus на базе Qwen3 для генерации и отладки кода C++20, проектирования интерфейсов Dear ImGui и решения задач по математике и логике.

Qim-5B — двуязычная языковая модель Antinimus для генерации кода, рассуждений и проектирования интерфейсов на C++ с Dear ImGui. Это плотная причинная модель семейства Qwen3 с 44 слоями и примерно 4,8 млрд параметров; она создана на основе Antinimus/Qim-4B и Qwen/Qwen3-4B-Instruct-2507 с расширением архитектуры, дообучением и выравниванием предпочтений. Модель ориентирована на C++20, Dear ImGui 1.93.1, проектирование UI, математику и пошаговую логику, а также поддерживает диалог на русском и английском языках.

Заявленное нативное контекстное окно составляет 262 144 токена. Доступны объединённые веса BF16 и квантованные сборки GGUF Q4_K_M, Q5_K_M и Q8_0; для GGUF не требуется отдельно загружать LoRA-адаптер. Лицензия — Apache-2.0.

В опубликованной оценке на 100 задачах C++20 и Dear ImGui модель решила 8 задач, но результаты показывают ограниченное качество на этом наборе. Сложная пользовательская отрисовка через ImDrawList, динамические текстуры атласа шрифтов и крупные многокомпонентные проекты остаются трудными; знания API ориентированы на Dear ImGui 1.93.1.

Сценарии применения

  • написание кода C++20 для Dear ImGui
  • проектирование архитектуры интерфейса на C++
  • поиск и исправление ошибок в коде C++
  • создание виджетов и пользовательских стилей Dear ImGui
  • пошаговое решение математических и логических задач
  • диалоговые ответы на русском и английском языках

Ограничения

На опубликованном бенчмарке из 100 задач C++20 и Dear ImGui модель решила 8; сложная отрисовка ImDrawList, динамические текстуры шрифтов и крупные многокомпонентные проекты остаются трудными. Знания API ориентированы на Dear ImGui 1.93.1.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qim-5B

Qim-5B is a 4.83B (44-layer) bilingual (English & Russian) coding, reasoning, and UI architecture model scaled from Antinimus/Qim-4B / Qwen/Qwen3-4B-Instruct-2507 with a focus on C++20, Dear ImGui (1.93.1, IMGUI_DISABLE_OBSOLETE_FUNCTIONS), C++ UI design & architecture, mathematics & step-by-step logic, and on-demand <think>...</think> reasoning.

Created by Antinimus.

  • Architecture & Scaling: Expanded from 36 to 44 transformer layers (4.83B parameters, GQA 32Q / 8KV, hidden size 2560) via identity-preserving block expansion (8 zero-initialized residual layers) followed by multi-stage SFT and preference alignment.
  • Weights Format: Standalone merged BF16 weights (model.safetensors, with the LoRA adapters and calibrated <think> / </think> embedding & LM-head rows already merged — no separate LoRA loading required). All GGUF files are quantized directly from these merged BF16 weights.
  • Context Length: 262,144 tokens (256K) native context window (max_position_embeddings: 262144, rope_theta: 5,000,000 in config.json; SFT training sequence cutoff: 1,536 tokens; benchmark evaluation generation limit: 1,024 tokens).

Highlights

  • New Best Score in the Qim Series on Europa ImPlus BenchMark (EIPB): Achieves 8 / 100 solved (8.0% pass@1), 5.18% Strict EIPB Score, and 7.94% Partial EIPB Score, surpassing Antinimus/Qim-4B (7 / 100 solved, 4.66% Strict, 7.69% Partial) and Qwen/Qwen3-4B-Instruct-2507 (4 / 100 solved, 2.59% Strict, 5.79% Partial).
  • 3× Improvement in Architecture C++ & 2× in Debugging: Solved [073] RAII wrappers with correct Begin/End semantics (2/2) and improved Architecture C++ partial score from 2.3% to 6.9%, Debugging from 3.1% to 6.2%, and Input & Popups from 7.5% to 10.8%.
  • Balanced 30/30/30/10 Capability Mix: Trained on a curated 20,000-sample mix (30% Dear ImGui 1.93.1 UI & custom styles, 30% math & step-by-step logic, 30% C++20 & architecture/bug-fix, 10% bilingual RU/EN chat) plus compiler-verified preference alignment, preserving Russian & English fluency without catastrophic forgetting.
  • Verified GGUF Quantizations: Standalone merged Q4_K_M, Q5_K_M, and Q8_0 GGUF builds tested end-to-end with llama.cpp b12843 (llama-cli -ngl 99 -st).

Benchmark & Evaluation — Europa ImPlus BenchMark (EIPB)

Evaluated on Europa ImPlus BenchMark (EIPB): 100 executable C++20 / Dear ImGui 1.93.1 (docking, IMGUI_DISABLE_OBSOLETE_FUNCTIONS) tasks across 8 categories (31 easy, 45 medium, 24 hard).

Qim-5B EIPB Benchmark

How EIPB Scoring Works

  • Difficulty Weights: Each task is weighted by difficulty (1 for easy, 2 for medium, 3 for hard), summing to 193 max points.
  • Strict Score (EIPB Score): Percentage of the 193 points awarded only for tasks where 100% of hidden headless UI unit tests pass.
  • Partial Score (EIPB Partial): Percentage of the 193 points giving fractional credit (passed_tests / total_tests) * task_points, reflecting compiling solutions and partial test passes.
  • Local Testbed: Windows 11, MinGW-W64 WinLibs g++ 16.2.0 (UCRT, -std=c++20). Local Qwen/Qim models were evaluated with greedy decoding (temperature=0.0).

Overall Comparison (Local WinLibs GCC 16.2.0 Harness)

ModelProtocol / NotesCompiledSolved (pass@1)Strict (EIPB Score)Partial (EIPB Partial)
Antinimus/Qim-1.5BLocal BF16 (temp=0.0, WinLibs GCC 16.2.0)25 / 1001 / 100 (1.0%)0.52%1.99%
Qwen/Qwen3-4B-Instruct-2507 (Base)Local BF16 (temp=0.0, WinLibs GCC 16.2.0)28 / 1004 / 100 (4.0%)2.59%5.79%
Antinimus/Qim-4BLocal BF16 (temp=0.0, WinLibs GCC 16.2.0)42 / 1007 / 100 (7.0%)4.66%7.69%
Qim-5B (Ours)Local BF16 (temp=0.0, WinLibs GCC 16.2.0)30 / 1008 / 100 (8.0%)5.18%7.94%
Claude Opus 5.5 (Reference)Web Chat (effort: High, 2026-11-29, WinLibs GCC 16.2.0)94 / 10089 / 100 (89.0%)88.08%90.07%

Reproducibility note: All local models and the Claude Opus 5.5 reference were graded on the exact same Windows 11 / WinLibs GCC 16.2.0 harness shown above (on its separate Linux GCC + ASan/TSan run, those same Claude Opus 5.5 answers scored 100/100 compiled, 97/100 solved, 97.41% strict, 98.88% partial).

Per-Category Breakdown (Partial% (Strict%, Solved))

Category (Tasks / Max Pts)Qim-1.5BQwen3-4B-Instruct-2507 (Base)Qim-4BQim-5B (Ours)Claude Opus 5.5 (High, WinLibs)
Core Widgets (15 / 19)11.4% (5.3%, 1/15)27.2% (21.1%, 3/15)49.1% (31.6%, 5/15)36.8% (26.3%, 5/15)100.0% (100.0%, 15/15)
Input & Popups (15 / 31)2.2% (0.0%, 0/15)12.4% (3.2%, 1/15)7.5% (3.2%, 1/15)10.8% (3.2%, 1/15)100.0% (100.0%, 15/15)
Layout & Tables (15 / 30)1.7% (0.0%, 0/15)1.7% (0.0%, 0/15)6.7% (6.7%, 1/15)6.7% (6.7%, 1/15)100.0% (100.0%, 15/15)
Custom Rendering (15 / 30)0.0% (0.0%, 0/15)0.0% (0.0%, 0/15)0.0% (0.0%, 0/15)0.0% (0.0%, 0/15)100.0% (100.0%, 15/15)
Fonts, Style & IO (12 / 24)0.0% (0.0%, 0/12)0.0% (0.0%, 0/12)0.0% (0.0%, 0/12)0.0% (0.0%, 0/12)70.8% (66.7%, 9/12)
Architecture C++ (13 / 29)0.0% (0.0%, 0/13)2.3% (0.0%, 0/13)2.3% (0.0%, 0/13)6.9% (6.9%, 1/13)77.0% (69.0%, 9/13)
Debugging (10 / 16)3.1% (0.0%, 0/10)6.2% (0.0%, 0/10)3.1% (0.0%, 0/10)6.2% (0.0%, 0/10)65.6% (62.5%, 6/10)
Projects (5 / 14)0.0% (0.0%, 0/5)0.0% (0.0%, 0/5)0.0% (0.0%, 0/5)0.0% (0.0%, 0/5)100.0% (100.0%, 5/5)

GGUF Quantizations

All GGUF builds were exported from the standalone merged BF16 weights (llama.cpp b12843) — no separate LoRA adapter is required — and verified on AMD Vulkan (RX 9060 XT) using llama-cli -ngl 99 -st:

FileQuantSizeVerified Speed (RX 9060 XT Vulkan)Notes
gguf/Qim-5B-Q4_K_M.ggufQ4_K_M2.78 GiB (2,980,006,816 B)~78.5 t/sCompact 4-bit build for fast local inference
gguf/Qim-5B-Q5_K_M.ggufQ5_K_M3.22 GiB (3,459,402,656 B)~73.8 t/sRecommended balance of speed and coding/reasoning quality
gguf/Qim-5B-Q8_0.ggufQ8_04.79 GiB (5,138,447,776 B)~53.3 t/sNear-lossless 8-bit quantization

Quickstart

transformers (Standalone Merged BF16)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "Antinimus/Qim-5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    dtype="auto",
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are Qim. Think concisely inside <think>...</think> when helpful."},
    {"role": "user", "content": "Implement a clean Dear ImGui 1.93.1 settings panel with RAII style guards."},
]
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,
        temperature=0.7,
        top_p=0.8,
        top_k=20,
        do_sample=True,
    )

response = tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)
print(response)

llama.cpp (GGUF — llama-cli & llama-server)

Install prebuilt binaries or build from source via ggml-org/llama.cpp (Releases).

CLI single-turn inference:

llama-cli -m Qim-5B-Q5_K_M.gguf -ngl 99 --temp 0.7 --top-p 0.8 --top-k 20 -st -p "Напиши короткий виджет Dear ImGui 1.93.1 с чекбоксом VSync и слайдером Scale."

OpenAI-compatible API server:

llama-server -hf Antinimus/Qim-5B:Q5_K_M --port 9931 -ngl 99 --temp 0.7 --top-p 0.8 --top-k 20

vLLM (BF16 OpenAI-Compatible Server)

vllm serve Antinimus/Qim-5B --port 9931

Docker Model Runner (GGUF)

docker model run hf.co/Antinimus/Qim-5B:Q5_K_M

Training Details

  • Architecture Scaling: Expanded from 36 layers (4.06B) to 44 layers (4.83B) via identity-preserving block expansion (zero-initialized o_proj / down_proj on 8 inserted blocks).
  • Method & Merging: Multi-stage LoRA (r=32, alpha=64, rslora, 80,740,352 trainable params / 1.6442%) with focal token weighting, anti-forgetting replay, and compiler-verified preference alignment, merged directly into bfloat16 (model.safetensors).
  • Data Curation:
    • AST-parsed & MinHash-deduplicated Dear ImGui UI/styling components upgraded to 1.93.1 + compiler-error self-correction trajectories, ocornut/imgui bug-fix commits, and interface.h → impl.cpp architectural tasks.
    • Balanced 30/30/30/10 mix across Dear ImGui 1.93.1, math/logic (gsm8k-ru, gsm8k, structured <think> levels), C++20/architecture, and bilingual RU/EN chat (GrandMaster-PRO-MAX, ultrachat_200k).
  • Hardware & Runtime: AMD Radeon RX 9060 XT (16 GiB VRAM), Windows 11, PyTorch 2.9.1+rocm7.13 with layer streaming and AOTriton efficient SDPA attention.

Limitations

  • Complex ImDrawList custom rendering, dynamic font-atlas textures, and large multi-component projects remain challenging at 5B scale.
  • Target Dear ImGui API knowledge is aligned with 1.93.1 (IMGUI_DISABLE_OBSOLETE_FUNCTIONS).

Acknowledgments

Built on top of Antinimus/Qim-4B, Qwen/Qwen3-4B-Instruct-2507, and the Europa ImPlus BenchMark (EIPB) / Dear ImGui (1.93.1) ecosystem.

Support

If you find Qim-5B useful and want to support future releases and benchmarks:

NetworkAddress
ETH0x9e708ebD5A80867002Bb2e8d5901d50B192E5cc3
BTCbc1q5762nneqpkjza5v37lwgjmfm3y3m4gu6td6kpc
SOLEz2VDw5cAz3HGNvhVifRisJ39doebUWELBwm6Hc7rThJ
TRON (TRC20)TEPG7QPjZF2vjAdNn6DN9wUcpSBn2UiSS2
POLYGON0x9e708ebD5A80867002Bb2e8d5901d50B192E5cc3

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
7a9c0d6

0 моделей