Instructions to use Antinimus/Qim-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Antinimus/Qim-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Antinimus/Qim-1.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Antinimus/Qim-1.5B") model = AutoModelForCausalLM.from_pretrained("Antinimus/Qim-1.5B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Antinimus/Qim-1.5B 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 Antinimus/Qim-1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Antinimus/Qim-1.5B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Antinimus/Qim-1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Antinimus/Qim-1.5B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Antinimus/Qim-1.5B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Antinimus/Qim-1.5B:Q4_K_M
Use Docker
docker model run hf.co/Antinimus/Qim-1.5B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Antinimus/Qim-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Antinimus/Qim-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Antinimus/Qim-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Antinimus/Qim-1.5B:Q4_K_M
- SGLang
How to use Antinimus/Qim-1.5B 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 "Antinimus/Qim-1.5B" \ --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": "Antinimus/Qim-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Antinimus/Qim-1.5B" \ --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": "Antinimus/Qim-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Antinimus/Qim-1.5B with Ollama:
ollama run hf.co/Antinimus/Qim-1.5B:Q4_K_M
- Unsloth Desktop
- Pi
How to use Antinimus/Qim-1.5B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Antinimus/Qim-1.5B:Q4_K_M
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Antinimus/Qim-1.5B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Antinimus/Qim-1.5B with Docker Model Runner:
docker model run hf.co/Antinimus/Qim-1.5B:Q4_K_M
- Lemonade
How to use Antinimus/Qim-1.5B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Antinimus/Qim-1.5B:Q4_K_M
Run and chat with the model
lemonade run user.Qim-1.5B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Antinimus/Qim-1.5B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Antinimus/Qim-1.5B: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:9931/v1 hermes config set model.default Antinimus/Qim-1.5B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Antinimus/Qim-1.5B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Antinimus/Qim-1.5B: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:9931/v1 \ --custom-model-id "Antinimus/Qim-1.5B: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"
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.
- Downloads last month
- 420
Model tree for Antinimus/Qim-1.5B
Base model
Qwen/Qwen2.5-1.5B