Instructions to use empulse/KiCAD-MCP-Qwen3.5-4B-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 empulse/KiCAD-MCP-Qwen3.5-4B-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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
Use Docker
docker model run hf.co/empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "empulse/KiCAD-MCP-Qwen3.5-4B-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": "empulse/KiCAD-MCP-Qwen3.5-4B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
- Ollama
How to use empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with Ollama:
ollama run hf.co/empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
- Unsloth Studio
How to use empulse/KiCAD-MCP-Qwen3.5-4B-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 empulse/KiCAD-MCP-Qwen3.5-4B-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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for empulse/KiCAD-MCP-Qwen3.5-4B-GGUF to start chatting
- Pi
How to use empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
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": "empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
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 "empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16" \ --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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with Docker Model Runner:
docker model run hf.co/empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
- Lemonade
How to use empulse/KiCAD-MCP-Qwen3.5-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
Run and chat with the model
lemonade run user.KiCAD-MCP-Qwen3.5-4B-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use empulse/KiCAD-MCP-Qwen3.5-4B-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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
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 empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
KiCAD-MCP-Qwen3.5-4B
A fine-tuned Qwen3.5-4B model specialized for KiCAD PCB design assistance via the Model Context Protocol (MCP). Trained to select and invoke the correct tools from a 159-tool KiCAD MCP server covering schematic capture, PCB layout, DRC, export, library management, and more.
Capabilities
- Tool Selection: Correctly identifies which of 159 KiCAD MCP tools to call based on natural language requests
- Parameter Extraction: Extracts component references, coordinates, net names, and other parameters from user requests
- Multi-Step Reasoning: Plans sequences of tool calls for complex PCB design tasks
- Error Handling: Interprets tool error responses and suggests fixes
- Refusal: Declines off-topic or destructive requests appropriately
- Domain Knowledge: Understands PCB design concepts (DRC rules, clearances, layer stacks, component placement)
Tool Categories
The model was trained on a KiCAD MCP server with tools across these categories:
| Category | Tools | Examples |
|---|---|---|
| Project | 5 | create_project, open_project, save_project |
| Schematic | 22+ | add_schematic_component, add_wire, connect_to_net, annotate_schematic |
| Board | 12 | set_board_size, add_layer, add_board_outline, get_board_2d_view |
| Component | 17 | place_component, move_component, rotate_component, find_component |
| DRC | 8 | run_drc, set_design_rules, get_drc_violations, check_clearance |
| Export | 8 | export_gerber, export_pdf, export_bom, export_3d |
| Routing | 14 | route_trace, add_via, add_copper_pour, route_differential_pair |
| Library | 8 | search_footprints, get_footprint_info, list_libraries |
| And more | ... | Symbol creation, JLCPCB integration, freerouting, UI management |
See tool_schema.json for the complete 159-tool schema with descriptions and parameter definitions.
Usage
With llama.cpp
# Download the model
huggingface-cli download empulse/KiCAD-MCP-Qwen3.5-4B-GGUF --local-dir ./model
# Run with llama-server (requires Qwen3.5 support — llama.cpp build from Feb 2026+)
llama-server \
-m model/kicad-mcp-4b-sft-v3-bf16.gguf \
-ngl 99 \
--cache-type-k bf16 --cache-type-v bf16 \
-c 4096 \
--port 8080
# Query via OpenAI-compatible API
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are a KiCAD PCB design assistant with MCP tools."},
{"role": "user", "content": "Run a DRC check on the board"}
],
"temperature": 0.1
}'
Important Notes
- GGUF format: bf16 (full precision, 8.4GB). Quantize with
llama-quantizeif needed. - KV cache must be bf16: Use
--cache-type-k bf16 --cache-type-v bf16with llama.cpp. The Gated Delta Network architecture produces incorrect results with f16 cache. - Qwen3.5 support required: llama.cpp builds from February 2026+ include Qwen3.5 GDN support (PR #19435).
- Thinking mode: The model uses
<think>...</think>blocks for reasoning by default. Use/nothinkprefix to disable.
Training
- Base model: Qwen/Qwen3.5-4B
- Architecture: Gated Delta Network (GDN) — hybrid attention, not standard transformer
- Method: LoRA (rank 32, alpha 64) with two-phase training
- Phase 1: Continual Pre-Training on domain-specific corpora (MCP protocol, KiCAD documentation, PCB design knowledge)
- Phase 2: Supervised Fine-Tuning on tool-calling examples
- Framework: ms-swift 4.0.2 with DeepSpeed ZeRO-2
- Hardware: 2x NVIDIA RTX 3090 (48GB total)
- Precision: bfloat16 throughout (required for GDN architecture)
Evaluation
| Category | Score |
|---|---|
| Tool Selection (10 tests) | 10/10 |
| No-Tool Response (2 tests) | 2/2 |
| Refusal (1 test) | 1/1 |
| Domain Knowledge (1 test) | 1/1 |
| Total | 14/14 (100%) |
Limitations
- Trained primarily on a specific KiCAD MCP server implementation — tool names and schemas may differ from other servers
- 4B parameter model — complex multi-step reasoning chains may be less reliable than larger models
- Domain knowledge is focused on KiCAD v10 and common PCB design patterns
- Not trained for vision/image tasks despite Qwen3.5's multimodal capabilities
License
Apache 2.0
- Downloads last month
- 214
16-bit
Model tree for empulse/KiCAD-MCP-Qwen3.5-4B-GGUF
Evaluation results
- Accuracyself-reported100.000
ollama run hf.co/empulse/KiCAD-MCP-Qwen3.5-4B-GGUF:BF16