Instructions to use abdelhayali91/pcbgo-v1 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 abdelhayali91/pcbgo-v1 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 abdelhayali91/pcbgo-v1:Q4_K_M # Run inference directly in the terminal: llama cli -hf abdelhayali91/pcbgo-v1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf abdelhayali91/pcbgo-v1:Q4_K_M # Run inference directly in the terminal: llama cli -hf abdelhayali91/pcbgo-v1: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 abdelhayali91/pcbgo-v1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf abdelhayali91/pcbgo-v1:Q4_K_M
Use Docker
docker model run hf.co/abdelhayali91/pcbgo-v1:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use abdelhayali91/pcbgo-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abdelhayali91/pcbgo-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abdelhayali91/pcbgo-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/abdelhayali91/pcbgo-v1:Q4_K_M
- Ollama
How to use abdelhayali91/pcbgo-v1 with Ollama:
ollama run hf.co/abdelhayali91/pcbgo-v1:Q4_K_M
- Unsloth Desktop
- Pi
How to use abdelhayali91/pcbgo-v1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abdelhayali91/pcbgo-v1: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": "abdelhayali91/pcbgo-v1:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use abdelhayali91/pcbgo-v1 with Docker Model Runner:
docker model run hf.co/abdelhayali91/pcbgo-v1:Q4_K_M
- Lemonade
How to use abdelhayali91/pcbgo-v1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull abdelhayali91/pcbgo-v1:Q4_K_M
Run and chat with the model
lemonade run user.pcbgo-v1-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use abdelhayali91/pcbgo-v1 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abdelhayali91/pcbgo-v1: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 abdelhayali91/pcbgo-v1:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use abdelhayali91/pcbgo-v1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf abdelhayali91/pcbgo-v1: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 "abdelhayali91/pcbgo-v1: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"
pcbgo v1
pcbgo v1 is a small (4B) model that designs circuit boards in pcbgo.site (CircuitPilot): you
describe a circuit, it adds the parts, wires the schematic, checks it, lays out and routes the PCB, adds pours and
holes, and fixes DRC problems โ all through the app's tools. It is
Qwen3.5-4B fine-tuned (LoRA) on tool-use conversations made by running
CircuitPilot's real design engine, and it is small enough for a laptop GPU, Ollama on any PC, or a free Google Colab GPU.
note: This model is too small to generate new schematics from scratch based on novel ideas. However, it is efficient at PCB routing and generating schematics from user-provided inputs.
File: pcbgo-v1-Q4_K_M.gguf (2.8 GB, 4-bit). Run it with thinking off (it was trained that way).
How well it works
CircuitPilot PCB Bench: 14 tasks (8 boards from a description, 6 broken boards to repair), the design the model leaves behind is scored 0โ100; scores averaged over the runs.
| Score | Design | Repair | Placement | Routing | DRC clean | Fully routed | Tokens / task (in ยท out) | |
|---|---|---|---|---|---|---|---|---|
| pcbgo v1 (4B) | 80.4 | 72.2 | 91.4 | 82 % | 82 % | 25/33 | 32/33 | 97k ยท 1.0k |
| Qwen3.8-27B | 78.6 | 62.5 | 100 | 79 % | 73 % | 8/11 | 9/11 | 143k ยท 0.9k |
| Qwen3.6-27B | 77.7 | 61.0 | 100 | 76 % | 73 % | 8/11 | 11/11 | 181k ยท 2.4k |
| Qwen3.5-4B (base) | 65.1 | 38.9 | 100 | 57 % | 52 % | 17/33 | 21/33 | 185k ยท 1.8k |
All local models: llama.cpp, Q4_K_M, thinking off, the same compact tool set; pcbgo v1 and the base 3 ร 14 tasks, the 27B models 1 ร 14. pcbgo v1 is on par with the 27B models (slightly ahead, within run-to-run noise) at 1/7 of their size, and uses about half the tokens.
Strong: LED / regulator / sensor / relay / op-amp boards from one request, routing to the end, DRC clean-up. Weak: larger multi-block boards (e.g. a regulator + sensor + LED node) and some 555 designs; it can repeat a failing tool call. Always check the result (ERC / DRC run in the app) before ordering a board.
Use it with pcbgo.site
Free on Google Colab (works with pcbgo.site directly)
- In pcbgo.site: ๐ Connect AI โ Run pcbgo-v1 free on Google Colab โ Open the notebook in Google Colab (or open the notebook directly).
- In Colab: Runtime โ Run all on the free T4 GPU. It installs Ollama and pulls this model (about 5โ8 minutes; the first call warms the GPU up for 2โ3 minutes, later answers take seconds). 64k context.
- The last cell shows Open pcbgo.site connected to this model and the
https://โฆ.trycloudflare.comaddress: click it, or paste the address in pcbgo.site's Colab panel โ Connect. Then describe your circuit.
Offline in the CircuitPilot Windows app โ no internet, no key: ๐ Connect AI โ Run pcbgo-v1 on this PC โ Download (this file, once, SHA-256 checked) โ Start and connect. The app runs it with its bundled llama.cpp server on your graphics card (NVIDIA, AMD, Intel via Vulkan) or the processor. download windows app: https://github.com/Abdelhayali/CircuitPilot/releases/tag/v2026.11.24.1
On your own PC (Ollama) โ best with the CircuitPilot desktop app:
ollama create pcbgo-v1 -f Modelfile # the Modelfile in this repo pulls the GGUF from here
Then in CircuitPilot: Use your own API โ Base URL http://localhost:11434/v1, key ollama, model pcbgo-v1.
To use it from the pcbgo.site web page instead, allow the site in Ollama first (OLLAMA_ORIGINS=https://pcbgo.site,
then restart Ollama); some browsers still block web pages from reaching localhost โ the desktop app always works.
llama.cpp
llama-server -m pcbgo-v1-Q4_K_M.gguf --jinja --chat-template-kwargs '{"enable_thinking":false}' -c 32768 -ngl 99
Base URL http://localhost:8080/v1.
CircuitPilot switches to its compact tool set for models named pcbgoโฆ by itself (30 core tools, short prompt,
thinking off) โ the format the model was trained on.
be
Best method to use
Break the workflow into small, modular steps:
Prompt block-by-block. Ask it to first build the power supply (e.g., 3.3V LDO regulator), then add the BLE MCU block, and finally add the ECG sensor front-end.
Training
- Data: ~4,000 conversations generated by running CircuitPilot's engine (every tool result is real): circuits from real JLCPCB parts, edits, PCB layout steps, questions, plans, whole jobs in one request, requests with typos. Only designs that pass ERC / DRC were kept. No user data.
- QLoRA (r 32, all linear layers) on the assistant turns; 25 + 125 steps on one 16โ20 GB GPU.
- Code: finetune/.
License
The model weights are released under Apache-2.0, like the base model
Qwen/Qwen3.5-4B (its license is included as LICENSE). Changes: LoRA
fine-tune for CircuitPilot tool use, merged and quantized to Q4_K_M. The CircuitPilot / pcbgo.site application has its
own license (see its repository).
- Downloads last month
- 263
4-bit


