Instructions to use cmndcntrlcyber/qwen14b-code-trainer-gguf 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 cmndcntrlcyber/qwen14b-code-trainer-gguf 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 cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Use Docker
docker model run hf.co/cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cmndcntrlcyber/qwen14b-code-trainer-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cmndcntrlcyber/qwen14b-code-trainer-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
- Ollama
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Ollama:
ollama run hf.co/cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
- Unsloth Studio
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cmndcntrlcyber/qwen14b-code-trainer-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cmndcntrlcyber/qwen14b-code-trainer-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cmndcntrlcyber/qwen14b-code-trainer-gguf to start chatting
- Pi
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf cmndcntrlcyber/qwen14b-code-trainer-gguf: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:8080/v1 \ --custom-model-id "cmndcntrlcyber/qwen14b-code-trainer-gguf: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"
- Docker Model Runner
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Docker Model Runner:
docker model run hf.co/cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
- Lemonade
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen14b-code-trainer-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use cmndcntrlcyber/qwen14b-code-trainer-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf cmndcntrlcyber/qwen14b-code-trainer-gguf: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:8080/v1 hermes config set model.default cmndcntrlcyber/qwen14b-code-trainer-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
Code-Trainer V9 โ Qwen2.5-Coder-14B GGUF
LoRA adapter from cmndcntrlcyber/qwen14b-code-trainer-v9_mixed merged into Qwen/Qwen2.5-Coder-14B-Instruct and quantized via llama.cpp.
Designed for local deployment on consumer GPUs (RTX 5060 Ti 16GB target). Optimized for agentic code generation with structured <tool_call> tool calling.
Part of the RTPI (Real-Time Pipeline Intelligence) project.
Files
| File | Quant | Size | Description |
|---|---|---|---|
Qwen2.5-Coder-14B-Instruct-Q5_K_M.gguf |
Q5_K_M | 10.5 GB | Recommended. Higher weight fidelity preserves <tool_call> tag patterns better. |
Qwen2.5-Coder-14B-Instruct-Q4_K_M.gguf |
Q4_K_M | 9.0 GB | Fallback for tighter VRAM budgets. Slightly weaker tag emission reliability. |
VRAM Requirements
| Quant | Model Size | 4K Context | 8K Context |
|---|---|---|---|
| Q5_K_M | 10.5 GB | ~12.5 GB | ~14.5 GB |
| Q4_K_M | 9.0 GB | ~11.0 GB | ~13.0 GB |
Both fit on an RTX 5060 Ti 16GB, RTX 4090 24GB, or any GPU with 16GB+ VRAM.
Quick Start
Ollama
# Create a model from the GGUF
ollama create code-trainer-v9 -f <(cat <<'EOF'
FROM hf.co/cmndcntrlcyber/qwen14b-code-trainer-gguf/Qwen2.5-Coder-14B-Instruct-Q5_K_M.gguf
PARAMETER num_ctx 8192
PARAMETER temperature 0.7
EOF
)
# Run
ollama run code-trainer-v9 "List the files in /tmp"
llama.cpp (llama-server)
llama-server \
-m Qwen2.5-Coder-14B-Instruct-Q5_K_M.gguf \
--host 0.0.0.0 --port 8080 \
--ctx-size 8192 \
--n-gpu-layers 99
llama.cpp (llama-cli)
llama-cli \
-m Qwen2.5-Coder-14B-Instruct-Q5_K_M.gguf \
--ctx-size 4096 \
-p "List all Python files in the project" \
--n-gpu-layers 99
LM Studio
- Download the Q5_K_M GGUF file
- Import into LM Studio
- Select Qwen2.5 chat template
- Set context length to 8192
Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="Qwen2.5-Coder-14B-Instruct-Q5_K_M.gguf",
n_ctx=8192,
n_gpu_layers=-1,
)
output = llm.create_chat_completion(
messages=[
{"role": "system", "content": "You are a coding assistant with access to tools."},
{"role": "user", "content": "Read the file main.py"},
],
max_tokens=256,
)
print(output["choices"][0]["message"]["content"])
Tool Calling Format
The model uses Hermes-style XML tags for tool calls:
<tool_call>
{"name": "Read", "arguments": {"file_path": "main.py"}}
</tool_call>
Multiple tool calls in a single turn:
<tool_call>
{"name": "Grep", "arguments": {"pattern": "TODO", "path": "src/"}}
</tool_call>
<tool_call>
{"name": "LS", "arguments": {"path": "src/"}}
</tool_call>
Tool responses are wrapped in <tool_response> tags in user messages:
<tool_response>
{"content": "file contents here"}
</tool_response>
Supported Tools
The model was trained on these tools from the nexus-harness tool set:
| Tool | Description |
|---|---|
| Read | Read file contents |
| Write | Write/create files |
| Edit | Search-and-replace edits |
| LS | List directory contents |
| Bash | Execute shell commands |
| Grep | Search for patterns in files |
| Glob | Find files by glob pattern |
| WebFetch | Fetch URL contents |
| TodoWrite | Track task lists |
| Skill | Invoke named skills |
| Task | Delegate to subagents |
| ScopeCheck | Verify target is in scope |
Evaluation Results
Evaluated on the LoRA adapter before GGUF conversion:
| Eval | Score | Target | Status |
|---|---|---|---|
| Tool Call (14 scenarios) | 92.9% (13/14) | 80% | Pass |
| Agent Behavior (7 multi-turn) | 100% (7/7) | 5/7 | Pass |
| Final eval_loss | 0.4551 | < 0.50 | Pass |
V9 Improvements Over V8
| Change | V8 | V9 |
|---|---|---|
| Tool-call dataset density | 31% (12K/38K) | 42% (19K/45K) |
| Multi-tool-call examples | None | ~2K synthetic |
| Stop-after-tag training | Partial (trailing text leaked) | Enforced (all assistant turns clean) |
| Training curriculum | Single pass | Two-phase (80% full + 20% tool-only polish) |
| Default quantization | Q4_K_M (9 GB) | Q5_K_M (10.5 GB) |
| SFTConfig packing | Default | Disabled (prevents cross-example bleed) |
Conversion Pipeline
LoRA Adapter (BF16, 551 MB)
|
v
Merge with Qwen2.5-Coder-14B-Instruct (BF16, ~28 GB)
|
v
Convert to GGUF F16 (llama.cpp convert_hf_to_gguf.py)
|
v
Quantize (llama-quantize)
|
+--> Q5_K_M (10.5 GB) โ recommended
+--> Q4_K_M (9.0 GB) โ fallback
Conversion runs on HuggingFace Jobs (A100-large, 144 GB system RAM for the merge step).
Known Limitations
- Tag variant: Some responses emit
<toolcall>instead of<tool_call>(missing underscore). The nexus-harness fallback parser handles both. - Multilingual artifacts: Occasional Unicode characters at sequence boundaries from the Qwen2.5 multilingual tokenizer.
- Tool-call eagerness: The model may hallucinate a tool call when a plain text response would be appropriate (1/14 eval failure).
- Q4_K_M tag degradation: Q4_K_M quantization loses more
<tool_call>tag fidelity than Q5_K_M. Use Q5_K_M when VRAM allows.
Next Steps for Optimization
- Special token registration: Register
<tool_call>and</tool_call>as single special tokens in the tokenizer before training, making them quantization-proof and eliminating the<toolcall>variant entirely. - Negative examples: Add 1-2K "no tool needed" training examples (knowledge questions with plain text answers) to reduce tool-call hallucination.
- 3-epoch curriculum: Current V9 is 1-epoch. A 3-epoch run with per-epoch curriculum (Phase A/B each epoch) should further reduce eval_loss below 0.45.
- DPO alignment: Use tool-call eval pass/fail pairs as preference data for a DPO pass to sharpen the tool-use decision boundary.
- Ollama Modelfile tuning: Experiment with
stopparameters in the Ollama Modelfile to force generation stop at</tool_call>at inference time. - GGUF imatrix quantization: Use importance-matrix-aware quantization (llama.cpp
--imatrix) to preserve tool-call-critical weight regions during quantization. - Context scaling: Test at 8192-16K context with YaRN/NTK-aware RoPE scaling for longer multi-turn agent sessions.
Project Links
- LoRA adapter: cmndcntrlcyber/qwen14b-code-trainer-v9_mixed
- Dataset: cmndcntrlcyber/code-trainer-v9-mixed
- Pipeline repo: cmndcntrlcyber/code-trainer-pipeline
- Inference harness: cmndcntrlcyber/nexus-harness
- Downloads last month
- 286
4-bit
5-bit
Model tree for cmndcntrlcyber/qwen14b-code-trainer-gguf
Base model
Qwen/Qwen2.5-14B