Text Generation
Safetensors
GGUF
Rust
English
Portuguese
qwen3
code
python
bash
weight-surgery
memit
conversational
Instructions to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 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 zerolimites/Qwen3-0.6B-Code-Surgery-v2 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 zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16 # Run inference directly in the terminal: llama cli -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16 # Run inference directly in the terminal: llama cli -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
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 zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
Use Docker
docker model run hf.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zerolimites/Qwen3-0.6B-Code-Surgery-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zerolimites/Qwen3-0.6B-Code-Surgery-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
- Ollama
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with Ollama:
ollama run hf.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
- Unsloth Desktop
- Pi
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
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": "zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with Docker Model Runner:
docker model run hf.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
- Lemonade
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
Run and chat with the model
lemonade run user.Qwen3-0.6B-Code-Surgery-v2-F16
List all available models
lemonade list
- Hermes Agent
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
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 zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use zerolimites/Qwen3-0.6B-Code-Surgery-v2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16
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 "zerolimites/Qwen3-0.6B-Code-Surgery-v2:F16" \ --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"
Upload Qwen3-0.6B-Code-Surgery-v2 (96.43% Pass@1 - Safetensors + GGUF Q8_0 & F16 + JSONs)
f10f49d verified Download compare_code_results.py from zerolimites/Qwen3-0.6B-Code-Surgery-v2: direct link, hf CLI and curl.
- Browser
- Download file 2.55 kB
-
https://huggingface.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2/resolve/main/compare_code_results.py
- Command line
-
hf download hf://zerolimites/Qwen3-0.6B-Code-Surgery-v2/compare_code_results.py
-
curl -L -o compare_code_results.py https://huggingface.co/zerolimites/Qwen3-0.6B-Code-Surgery-v2/resolve/main/compare_code_results.py
2.55 kB
| import json | |
| from collections import defaultdict | |
| with open("/home/user/code_baseline_results.json") as f: | |
| base = json.load(f) | |
| with open("/home/user/code_modified_results.json") as f: | |
| mod = json.load(f) | |
| print("=" * 100) | |
| print("QWEN3-0.6B EXECUTABLE MULTI-LANGUAGE CODE BENCHMARK: NORMAL (BASELINE) VS WEIGHT-EDITED") | |
| print("=" * 100) | |
| print(f"Normal (Baseline) Qwen3-0.6B : {base['passed']:2d}/{base['total']} ({base['accuracy']:5.2f}%) | Avg Tokens: {base['avg_tokens']:4.1f} | Time: {base['elapsed_sec']:6.2f}s") | |
| print(f"Weight-Edited Code Surgery : {mod['passed']:2d}/{mod['total']} ({mod['accuracy']:5.2f}%) | Avg Tokens: {mod['avg_tokens']:4.1f} | Time: {mod['elapsed_sec']:6.2f}s") | |
| print(f"Net Improvement : +{mod['passed'] - base['passed']} tasks (+{mod['accuracy'] - base['accuracy']:.2f}% absolute accuracy gain, 0 regressions)") | |
| print("-" * 100) | |
| cats = defaultdict(lambda: {"total": 0, "base": 0, "mod": 0, "base_toks": 0, "mod_toks": 0}) | |
| for rb, rm in zip(base["results"], mod["results"]): | |
| c = rb["category"] | |
| cats[c]["total"] += 1 | |
| cats[c]["base"] += int(rb["passed"]) | |
| cats[c]["mod"] += int(rm["passed"]) | |
| cats[c]["base_toks"] += rb["num_tokens"] | |
| cats[c]["mod_toks"] += rm["num_tokens"] | |
| print(f"{'Category':20s} | {'Normal (Base)':16s} | {'Code Surgery':16s} | {'Delta':10s} | {'Base Toks':10s} | {'Edited Toks':10s}") | |
| print("-" * 100) | |
| for c, st in cats.items(): | |
| t = st["total"] | |
| bp = 100.0 * st["base"] / t | |
| mp = 100.0 * st["mod"] / t | |
| bt = st["base_toks"] / t | |
| mt = st["mod_toks"] / t | |
| print(f"{c:20s} | {st['base']}/{t} ({bp:6.2f}%) | {st['mod']}/{t} ({mp:6.2f}%) | +{st['mod']-st['base']} (+{mp-bp:5.2f}%) | {bt:8.1f} | {mt:8.1f}") | |
| print("-" * 100) | |
| print(f"{'ID':9s} | {'Category':16s} | {'Base':6s} | {'Edited':6s} | {'Toks (B->E)':11s} | {'Transition & Verification Detail'}") | |
| print("-" * 100) | |
| gains, regs = 0, 0 | |
| for rb, rm in zip(base["results"], mod["results"]): | |
| bs = "PASS" if rb["passed"] else "FAIL" | |
| ms = "PASS" if rm["passed"] else "FAIL" | |
| if not rb["passed"] and rm["passed"]: | |
| gains += 1 | |
| tag = "[+GAIN]" | |
| elif rb["passed"] and not rm["passed"]: | |
| regs += 1 | |
| tag = "[-REGR]" | |
| else: | |
| tag = " " | |
| tok_s = f"{rb['num_tokens']:2d} -> {rm['num_tokens']:2d}" | |
| print(f"{rb['id']:9s} | {rb['category']:16s} | {bs:6s} | {ms:6s} | {tok_s:11s} | {tag} {rm['detail']}") | |
| print("=" * 100) | |
| print(f"Total Flipped FAIL -> PASS: +{gains} | Total Regressions PASS -> FAIL: {regs}") | |
| print("=" * 100) | |