How to use from
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:
# Run inference directly in the terminal:
llama cli -hf Trivnpk/Qwen-Compiler-Mind-4B:
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:
Quick Links

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

  1. Clean Base Anchor (0ebb9b2418) & Anti-Overfit LoRA: Single-stage SFT with r=16, lora_alpha=32, lr=8e-5, 1.5 epochs, cosine schedule, effective_batch_size=32, evaluated every 15 steps (best_eval_loss = 0.4170 at checkpoint 135).
  2. 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,880 train / 320 stratified eval).
  3. Zero-Leakage & Multi-Turn Curriculum (qwen_v3_2_3_curriculum.json, 3,200 samples):
    • 600 Fast-Path Vietnamese conversational & short technical Q&A samples
    • 900 Clean Action-Oriented Code & Systems Engineering samples (0 stub placeholders, 0 SystemsUnit templates, 0 HumanEval test leakage)
    • 800 Formal CS, Logic & STEM Reasoning samples (0 MMLU test split leakage)
    • 820 GSM8K Arithmetic & Symbolic Reasoning samples
    • 80 Multi-Turn (2–3 turns) Code Debugging & Self-Correction Dialogues
  4. 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
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Trivnpk/Qwen-Compiler-Mind-4B

Unable to build the model tree, the base model loops to the model itself. Learn more.