YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Bonsai-8B (GGUF) – Run in 30 Seconds πŸš€

⚑ Quick Start

πŸ”§ Setup (run once)

import os
import tarfile

print("πŸ“¦ Installing dependencies...")
!pip install -q huggingface_hub

from huggingface_hub import hf_hub_download

HF_REPO = "Zlib2/bonsai-8b-colab-prebuilt"

print("\nπŸ“₯ 1/3 Downloading pre-built llama.cpp (Fast)...")
llama_zip = hf_hub_download(repo_id=HF_REPO, filename="llama_cpp_prebuilt.tar.gz")

print("πŸ“₯ 2/3 Downloading Bonsai-8B.gguf model (Large file)...")
model_path = hf_hub_download(repo_id=HF_REPO, filename="Bonsai-8B.gguf")

print("πŸ“¦ 3/3 Extracting files...")
!mkdir -p /content/llama.cpp

with tarfile.open(llama_zip, "r:gz") as tar:
    tar.extractall(path="/content/llama.cpp")

!chmod +x /content/llama.cpp/build/bin/llama-cli

print("\nπŸŽ‰ Setup complete!")

πŸ€– Run Inference

USER_PROMPT = "Explain quantum computing in simple terms."
SYSTEM_PROMPT = "You are a helpful assistant"

!/content/llama.cpp/build/bin/llama-cli \
    -m "{model_path}" \
    --system-prompt "{SYSTEM_PROMPT}" \
    -p "{USER_PROMPT}" \
    -n 4096 \
    --temp 0.5 \
    --top-p 0.85 \
    --top-k 20 \
    -ngl 99
Downloads last month
12
GGUF
Model size
8B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support