Instructions to use neugi-com/smar-zero 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 neugi-com/smar-zero 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 neugi-com/smar-zero:Q2_K # Run inference directly in the terminal: llama cli -hf neugi-com/smar-zero:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf neugi-com/smar-zero:Q2_K # Run inference directly in the terminal: llama cli -hf neugi-com/smar-zero:Q2_K
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 neugi-com/smar-zero:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf neugi-com/smar-zero:Q2_K
Use Docker
docker model run hf.co/neugi-com/smar-zero:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use neugi-com/smar-zero with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "neugi-com/smar-zero" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "neugi-com/smar-zero", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/neugi-com/smar-zero:Q2_K
- Ollama
How to use neugi-com/smar-zero with Ollama:
ollama run hf.co/neugi-com/smar-zero:Q2_K
- Unsloth Desktop
- Pi
How to use neugi-com/smar-zero with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf neugi-com/smar-zero:Q2_K
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": "neugi-com/smar-zero:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use neugi-com/smar-zero with Docker Model Runner:
docker model run hf.co/neugi-com/smar-zero:Q2_K
- Lemonade
How to use neugi-com/smar-zero with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull neugi-com/smar-zero:Q2_K
Run and chat with the model
lemonade run user.smar-zero-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use neugi-com/smar-zero with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf neugi-com/smar-zero:Q2_K
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 neugi-com/smar-zero:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use neugi-com/smar-zero with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf neugi-com/smar-zero:Q2_K
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 "neugi-com/smar-zero:Q2_K" \ --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"
atharia.agi commited on
release: add README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201---license: apache-2.0base_model: prism-ml/Bonsai-8B-unpackedlanguage:- id- enpipeline_tag: text-generationlibrary_name: gguf---
# SMAR Zero
**SMAR Zero** is an agentic edge variant of SMAR, fine-tuned from**Bonsai-8B** (PrismML, based on dense Qwen3-8B, 8.19 billionparameters) for tool-using work on your own device. It runs **100% onyour hardware** β no server of ours, no inference cost, no account.Download once, run forever.
> **Units β read first.** Every size in this card is written in **two> units**: GiB (1 GiB = 1,073,741,824 bytes) and decimal GB> (1 GB = 1,000,000,000 bytes). Do not confuse them.
## Files (two files, not one)
| File | Exact bytes | GiB | Decimal GB | SHA256 ||---|---|---|---|---|| `Bonsai-8B-base-Q2_K.gguf` (base) | 3,280,470,720 | 3.06 GiB | 3.28 GB | `f3e9bd7f7291cfcb17e3733ae797765707cd1c5715d2cfe387200dd8d877ec97` || `smar-zero-v9-lora.gguf` (LoRA adapter) | 174,622,688 | 166.5 MiB | 0.17 GB | `f2f8d8c6269e709253364326d7168cda9904b1887d1becf78eee1bedf78619fe` || **Total** | **3,455,093,408** | **3.22 GiB** | **3.46 GB** | β |
## Why two files (not one merged file)?
Every merge-then-quantize attempt failed the same way: the adapter(LoRA) was trained on binary weights, then merged and quantized β andthe LoRA signal was erased (Q4_K_M, IQ1_M twice, HQQ 2-bit, naivemerged Q2_K). The only configuration that passed: **the base quantizedby itself from the same binary snapshot the adapter was trained on, andthe adapter attached at runtime without ever passing through aquantizer**. That is this release.
Consequence: the LoRA file **must** be attached at runtime with scale1.0 (`--lora-scaled smar-zero-v9-lora.gguf:1.0`). Do not merge base +LoRA and re-quantize; do not change the scale (sweeps at 0.75 and 1.25were both worse).
## How to run
### Option A β helper runner (easiest)
```bashpython3 run_smar_zero.py```
Then open **http://127.0.0.1:8765** in your browser. The first rundownloads an official llama.cpp binary if needed, then starts a localserver. Terminal mode and self-check:
```bashpython3 run_smar_zero.py --clipython3 run_smar_zero.py --smoke```
With the GGUF files in another location:
```bashpython3 run_smar_zero.py --base /path/to/Bonsai-8B-base-Q2_K.gguf --lora /path/to/smar-zero-v9-lora.gguf```
### Option B β llama.cpp directly
```bashllama-server -m Bonsai-8B-base-Q2_K.gguf \ --lora-scaled smar-zero-v9-lora.gguf:1.0 \ -c 4096 --port 8080```
The GGUF files are standard: they also open in **LM Studio** or**Ollama** (`ollama create`), as long as the LoRA is attached atruntime with scale 1.0, not merged.
## Requirements
- Python 3.10+ for the runner (stdlib only, no `pip install` needed)- ~5 GB free RAM for comfort (measured RSS: ~2.5 GiB after load, peak ~4.4 GB while generating, mostly mmap file-backed), ~4 GB disk, 4+ CPU cores. Minimum proven to run: a VM with ~2.8 GB usable (slow, ~1β2 tok/s).- GPU optional (the runner is CPU-only by default; it still runs without one). Measured VRAM on NVIDIA L4: peak **3.70 GB at ctx 512** and **4.23 GB at ctx 4096** β a **6 GB GPU is the minimum**, and **8 GB is recommended for agentic use above 16k context**.- Context: declared maximum **65,536 tokens** (from the model file metadata); **tested up to 4,096**. Quality above 4,096 is unproven β training used sequence length 4,096.- Windows / macOS / Linux. No internet needed after both files are present (except weather/stocks β see below).
## What it can do
Eight local tools (the model picks the tool and its arguments; therunner executes them):
| Tool | Example | Note ||---|---|---|| Calculator | "What is 17 * 8 + 5?" | Safe local evaluation || Unit conversion | "Convert 5 kilometers to meters." | km/m, kg/g, Β°C/Β°F, time units || Timer | "Set a timer for 10 minutes." | Rings in the terminal || Calendar | "Add meeting tomorrow 10:00" | Saved locally || Notes search | "Cari catatan tentang ..." | Local `.txt` notes || Word translation | "Translate 'kucing' to English." | Small offline dictionary (~60 words) || Weather | "What is the weather in Jakarta?" | **Offline: not available** || Stock prices | "Harga saham BBCA?" | **Offline: not available** |
General Q&A also works: "Siapa kamu?", "What is AQI?", "Who is thefounder of Atharia AGI?".
## Evaluation β honest scores (1 December 2026)
### This release: Q2_K base + LoRA at runtime (llama-server b12870, L4 GPU, temp 0)
| Test | Score ||---|---|| Identity ("Siapa kamu?") | **2/2** || Founder (8 questions) | **8/8** || Topics (SMAR, AQI, DIGDAIA, neugi.com, webiz.id, ...) | **18/18** || STRICT knowledge probes (12 questions) | **11/12** || Serving (SMAR Zero system prompt) | **2/2** || Tool-use smoke, native format (5 tasks) | **5/5 arguments correct** || Tool-use smoke, JSON format (5 tasks) | **5/5 arguments correct** || BFCL-200 | **107/200 = 53.5%** β simple 80%, multiple 86%, parallel 48%, irrelevance 0% |
The single STRICT miss: "Apa kepanjangan SMAR?" was answered withgarbled text. The expansion of SMAR has never been officiallyexplained β the correct answer is to say so.
**Methodology note (BFCL-200):** this is **not the official BFCLharness**. Prompt format is our own TOOL_SYS style, ground truth isthe official BFCL v4 `possible_answer`, scoring follows official ASTsemantics. One post-run correction (multiple_26 false β true) movedthe score from 106/200 (53.0%) to 107/200 (53.5%).
### Reference: same base + identity, FP16 merged (evaluated by Reto)
| Test | Score ||---|---|| BFCL-200 (Reto's harness) | **118/200 = 59.0%** β simple 88%, multiple 76%, parallel 72%, irrelevance 0% || Proxy N=40 (tool accuracy / task success) | **90.0% / 87.5%** (control model: 85.0% / 75.0%) || Pack-150, Indonesian | **42.00%** || Pack-150, English | **82.69%** |
Caution: Reto's prompt format is unknown, so the 59.0% vs 53.5%comparison is only valid if the formats match. The Pack-150Indonesian score (42.00%) shows this model is strong at identity andtool use, and weak at general Indonesian knowledge.
## Limitations β read before judging
1. **Size 3.46 GB decimal (3.22 GiB).** Not 1 GB, not 2 GB. A 2.00 GB decimal target was proven impossible for an 8.19B-parameter model with llama.cpp: the smallest quantization (IQ1_S) of the base alone is already 2.11 GB decimal, and that base failed evaluation. The files **do not fit on a phone** (about 5 GB free RAM is needed for comfort); they are for laptop/PC.2. **Indonesian general knowledge 42%** (Pack-150 ID) β strong at identity + tool use, weak at general Indonesian knowledge. `translate_word` is only a small dictionary, not a general translator.3. **The model cannot abstain on its own** (0/50 on the irrelevance probe: it always calls a tool even when none fits). Abstention is handled by a serving-side gate in official serving only β **not in these weights**. The local runner has a simple overlap gate that blocks a tool call when no tool is relevant, but that is not a replacement for the full gate.4. **Weather and stocks are offline.** The runner answers honestly "not available" instead of inventing numbers.5. **BFCL-200 53.5% is a non-official harness** (see methodology above).6. **Known small flaws:** one English founder answer adds a wrong "II, Jr." suffix (the name itself is still correct); one serving answer mentions "AI berbasis JavaScript untuk tugas agenticut" (2-bit quantization noise, not lost knowledge).7. **No hosted demo.** There is no inference hosting for this model.
## Provenance
- Base: `prism-ml/Bonsai-8B-unpacked` β dense Qwen3-8B, 8.19B parameters, 1-bit weights.- Fine-tuning: SFT run A2, 3,066 steps, 32,704-row dataset, LoRA r16 / alpha 32, learning rate 1e-4 cosine, 3 epochs, sequence length 4,096. Identity adapter (identity-v9) verified 2/2 identity, 8/8 founder, 18/18 topics, 12/12 STRICT in FP16.- The product base was quantized in-house from the F16 base-only snapshot with `llama-quantize` (b12870). The LoRA adapter was converted to GGUF unquantized. The proven principle: **an adapter must never pass through a quantizer.**- Developed by Atharia AGI. Founder: Rangga Prayoga Hermawan.- License: Apache 2.0.
## License
Apache License 2.0 β see `LICENSE`.README.mdAdded+201