Instructions to use Trivnpk/Qwen-Compiler-Mind-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Trivnpk/Qwen-Compiler-Mind-4B 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 Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B: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 Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
Use Docker
docker model run hf.co/Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Trivnpk/Qwen-Compiler-Mind-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Trivnpk/Qwen-Compiler-Mind-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Trivnpk/Qwen-Compiler-Mind-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
- Ollama
How to use Trivnpk/Qwen-Compiler-Mind-4B with Ollama:
ollama run hf.co/Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
- Unsloth Desktop
- Pi
How to use Trivnpk/Qwen-Compiler-Mind-4B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B: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": "Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Trivnpk/Qwen-Compiler-Mind-4B with Docker Model Runner:
docker model run hf.co/Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
- Lemonade
How to use Trivnpk/Qwen-Compiler-Mind-4B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
Run and chat with the model
lemonade run user.Qwen-Compiler-Mind-4B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Trivnpk/Qwen-Compiler-Mind-4B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B: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 Trivnpk/Qwen-Compiler-Mind-4B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Trivnpk/Qwen-Compiler-Mind-4B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B: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 "Trivnpk/Qwen-Compiler-Mind-4B: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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B:# Run inference directly in the terminal:
llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B: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 Trivnpk/Qwen-Compiler-Mind-4B:# Run inference directly in the terminal:
./build/bin/llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B:Use Docker
docker model run hf.co/Trivnpk/Qwen-Compiler-Mind-4B:Qwen-Compiler-Mind-4B v3.2.3 (Clean Reset Edition)
Qwen-Compiler-Mind-4B v3.2.3 resets the fine-tuning lineage cleanly back to commit 0ebb9b2418 (v1.0 A100 Clean Base), eliminating 8 generations (v2.0..v3.2.2) of cumulative merge_and_unload() drift, template overfitting, stub hallucinations, and <|im_end / <lim_end> EOS leaks.
Key v3.2.3 Fixes & Engineering Invariants
- Clean Base Anchor (
0ebb9b2418) & Anti-Overfit LoRA: Single-stage SFT withr=16,lora_alpha=32,lr=8e-5,1.5epochs, cosine schedule,effective_batch_size=32, evaluated every15steps (best_eval_loss = 0.4170at checkpoint 135). - Assistant-Only Loss Masking (
train_on_prompt=False): Masked all tokens up to and including the last<|im_start|>assistant\n(labels = -100) and verified clean<|im_end|>(151645) termination across all 3,200 samples (2,880train /320stratified eval). - Zero-Leakage & Multi-Turn Curriculum (
qwen_v3_2_3_curriculum.json, 3,200 samples):600Fast-Path Vietnamese conversational & short technical Q&A samples900Clean Action-Oriented Code & Systems Engineering samples (0 stub placeholders, 0SystemsUnittemplates, 0 HumanEval test leakage)800Formal CS, Logic & STEM Reasoning samples (0 MMLUtestsplit leakage)820GSM8K Arithmetic & Symbolic Reasoning samples80Multi-Turn (2–3 turns) Code Debugging & Self-Correction Dialogues
- Verified on NVIDIA A100-SXM4-80GB.
🏆 Benchmark Scorecard (Evaluated on NVIDIA A100)
| Metric / Benchmark | v3.2.2 | v3.2.3 (A100 Verified) | Notes |
|---|---|---|---|
| Behavioral & EOS Hygiene Probe | Fail (<lim_end>, stub/persona leaks) |
3 / 3 (100%) ✅ | Clean 151645 EOS on greetings, capabilities, and multi-turn debug |
| Open-Ended VN HumanEval (10 tasks, uncleaned) | 6/10 Strict (60.0%), 8/10 Hygiene |
8 / 10 Strict (80.0%), 10 / 10 Hygiene (100%) 🚀 | No English signatures/docstrings; no regex stub/garbage cleanup |
| HumanEval (Pass@1, 50 tasks) | 40/50 (80.0%) |
43 / 50 (86.0%) 🏆 | New All-Time High (+6.0%) |
| GSM8K (Batched CoT, 100 tasks) | 72/100 (72.0%) |
75 / 100 (75.0%) ⚡ | +3.0% even with 80 GSM8K samples swapped for multi-turn debug |
| MMLU (College CS & Formal Logic, 101 tasks) | 57/101 (56.44%) (leaked test split) |
51 / 101 (50.50%) | Honest zero-leakage score (MMLU test purged from curriculum) |
📦 Quantized GGUF Triplet (v3.2.3 Available Now)
Compiled natively with CMake AVX2/SIMD (-DGGML_CUDA=OFF):
| File Name | Precision | File Size | Recommended Target |
|---|---|---|---|
qwen-compiler-mind-v3.2.3-Q8_0.gguf |
8-bit | ~4.48 GB | Reference accuracy, server inference, benchmarking |
qwen-compiler-mind-v3.2.3-Q6_K.gguf |
6-bit | ~3.46 GB | Sweet spot: Laptop CPU / integrated GPU |
qwen-compiler-mind-v3.2.3-Q4_K_M.gguf |
4-bit | ~2.59 GB | Low-memory edge devices, mobile RAM |
🚀 Running with Ollama
# 1. Download Modelfile and Q6_K GGUF
ollama create qwen-compiler-mind-v3.2.3 -f Modelfile
# 2. Run interactively
ollama run qwen-compiler-mind-v3.2.3
📜 Citations & Architecture Credits
- Architects: Ritmada (@RitmadaPrompt) & Tri (@Trivnpk)
- Base Anchor:
Trivnpk/Qwen-Compiler-Mind-4B@0ebb9b2418(Qwen3ForCausalLM) - License: Apache 2.0
- Downloads last month
- 8,386
Model tree for Trivnpk/Qwen-Compiler-Mind-4B
Unable to build the model tree, the base model loops to the model itself. Learn more.
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Trivnpk/Qwen-Compiler-Mind-4B:# Run inference directly in the terminal: llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B: