Instructions to use zotowata/bonsai2-dflash2-fastfork 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 zotowata/bonsai2-dflash2-fastfork 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 zotowata/bonsai2-dflash2-fastfork # Run inference directly in the terminal: llama cli -hf zotowata/bonsai2-dflash2-fastfork
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf zotowata/bonsai2-dflash2-fastfork # Run inference directly in the terminal: llama cli -hf zotowata/bonsai2-dflash2-fastfork
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 zotowata/bonsai2-dflash2-fastfork # Run inference directly in the terminal: ./build/bin/llama cli -hf zotowata/bonsai2-dflash2-fastfork
Use Docker
docker model run hf.co/zotowata/bonsai2-dflash2-fastfork
- Llama new
- LM Studio
- Jan
- Ollama
How to use zotowata/bonsai2-dflash2-fastfork with Ollama:
ollama run hf.co/zotowata/bonsai2-dflash2-fastfork
- Unsloth Desktop
- Pi
How to use zotowata/bonsai2-dflash2-fastfork with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zotowata/bonsai2-dflash2-fastfork
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": "zotowata/bonsai2-dflash2-fastfork" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use zotowata/bonsai2-dflash2-fastfork with Docker Model Runner:
docker model run hf.co/zotowata/bonsai2-dflash2-fastfork
- Lemonade
How to use zotowata/bonsai2-dflash2-fastfork with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zotowata/bonsai2-dflash2-fastfork
Run and chat with the model
lemonade run user.bonsai2-dflash2-fastfork-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use zotowata/bonsai2-dflash2-fastfork with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zotowata/bonsai2-dflash2-fastfork
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 zotowata/bonsai2-dflash2-fastfork
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use zotowata/bonsai2-dflash2-fastfork with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zotowata/bonsai2-dflash2-fastfork
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 "zotowata/bonsai2-dflash2-fastfork" \ --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"
Download scripts/ab_final.sh from zotowata/bonsai2-dflash2-fastfork: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/zotowata/bonsai2-dflash2-fastfork/resolve/main/scripts/ab_final.sh
- Command line
-
hf download hf://zotowata/bonsai2-dflash2-fastfork/scripts/ab_final.sh
-
curl -L -o ab_final.sh https://huggingface.co/zotowata/bonsai2-dflash2-fastfork/resolve/main/scripts/ab_final.sh
1.25 kB
| # Round 11 final A/B: bitwise-verified SoA (matched geometry) vs AoS. | |
| # Warm interleaved, graphs ON (production-like), tg128 + tg512, 3 reps each, | |
| # discard-first discipline. Plus one graphs-off arm for kernel-only view. | |
| set -u | |
| BIN=/root/models/bonsai-dflash2/dflash2-src/llama/build-graphs/bin | |
| export LD_LIBRARY_PATH="$BIN:/usr/local/cuda-13.3/lib64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | |
| M=/root/models/bonsai2-crack/Bonsai-2-27B-PQ2_0-CRACK.gguf | |
| echo "=== WARMUP (discarded) ===" | |
| $BIN/llama-bench -m $M -p 1 -n 8 -r 1 -ngl 999 > /dev/null 2>&1 | |
| echo "=== graphs ON, interleaved, PQ2_SOA 1/0 x3 ===" | |
| for i in 1 2 3; do | |
| for v in 1 0; do | |
| R=$(GGML_CUDA_PQ2_SOA=$v $BIN/llama-bench -m $M -p 1 -n 128 -r 1 -ngl 999 2>/dev/null | grep 'tg128') | |
| echo "tg128 soa=$v rep$i: $R" | |
| done | |
| done | |
| for i in 1 2 3; do | |
| for v in 1 0; do | |
| R=$(GGML_CUDA_PQ2_SOA=$v $BIN/llama-bench -m $M -p 1 -n 512 -r 1 -ngl 999 2>/dev/null | grep 'tg512') | |
| echo "tg512 soa=$v rep$i: $R" | |
| done | |
| done | |
| echo "=== graphs OFF (kernel view), PQ2_SOA 1/0 ===" | |
| for v in 1 0; do | |
| R=$(GGML_CUDA_DISABLE_GRAPHS=1 GGML_CUDA_PQ2_SOA=$v $BIN/llama-bench -m $M -p 1 -n 128 -r 3 -ngl 999 2>/dev/null | grep 'tg128') | |
| echo "tg128 graphs-off soa=$v: $R" | |
| done | |
| echo AB-DONE | |