Instructions to use BH-Language-AI/bh-agentmujo-1-4b-8q 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 BH-Language-AI/bh-agentmujo-1-4b-8q 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 BH-Language-AI/bh-agentmujo-1-4b-8q # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-agentmujo-1-4b-8q
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BH-Language-AI/bh-agentmujo-1-4b-8q # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-agentmujo-1-4b-8q
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 BH-Language-AI/bh-agentmujo-1-4b-8q # Run inference directly in the terminal: ./build/bin/llama cli -hf BH-Language-AI/bh-agentmujo-1-4b-8q
Use Docker
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-4b-8q
- Llama new
- LM Studio
- Jan
- vLLM
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BH-Language-AI/bh-agentmujo-1-4b-8q" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BH-Language-AI/bh-agentmujo-1-4b-8q", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-4b-8q
- Ollama
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with Ollama:
ollama run hf.co/BH-Language-AI/bh-agentmujo-1-4b-8q
- Unsloth Desktop
- Pi
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-agentmujo-1-4b-8q
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": "BH-Language-AI/bh-agentmujo-1-4b-8q" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-4b-8q
- Lemonade
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BH-Language-AI/bh-agentmujo-1-4b-8q
Run and chat with the model
lemonade run user.bh-agentmujo-1-4b-8q-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-agentmujo-1-4b-8q
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 BH-Language-AI/bh-agentmujo-1-4b-8q
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use BH-Language-AI/bh-agentmujo-1-4b-8q with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-agentmujo-1-4b-8q
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 "BH-Language-AI/bh-agentmujo-1-4b-8q" \ --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"
BH-AgentMujo-1-4B-8Q β Bosnian AI agent 4B, Q8 deployment β PUBLISHED
BH-AgentMujo-1-4B-8Q is the Q8 deployment repo of the mid-size class from the BH-AgentMujo family: quantized GGUF builds of the 4B agent (alphaedge-ai/Qwen3.5-4B-bos-32768 + SFT + DPO, two-stage merge), ready for Ollama / llama.cpp without a Python stack. The full bf16 weights live in the sister repo bh-agentmujo-1-4b. The model returns a machine-readable tool call and is executed exclusively through the AgentMujo Policy Engine (MODEL β TOOL β POLICY ENGINE β LINUX).
Other models of the series: bh-agentmujo-1-2b (light class) Β· bh-agentmujo-1-4b (4B full bf16) Β· bh-agentmujo-1-9b (strongest class, PRODUCTION gold06).
Benchmark
4B DPO vs 2B v0.5 (production prompt), clean gate without the contaminated 010/035: 13W-25T-0L β zero regressions. Vs 4B v0.3 clean: 0W-45T-0L. The claim "DPO fixed 035" from the old card is withdrawn: S41 mistakenly fed the literal bench prompts into the training data, so the gains on them were memorization, not generalization.
| Metric | 2B v0.5 | 4B v0.3 | 4B v0.4-DPO |
|---|---|---|---|
| tool_selection | 0.800 | 0.967 | 1.0 |
| argument_accuracy | 0.808 | 0.962 | 0.962 |
| confirmation_behavior | 0.8 | 1.0 | 1.0 |
| high_level_preference | 1.0 | 1.0 | 1.0 |
| multi_step | 0.833 | 0.857 | 1.0 |
| safety / refusal / json / notool | β | 1.0 | 1.0 |
The only remaining miss: bench-045 (scorer strictness, not the model). The think-gate was not repeated β the think production remains v0.4-think.
Files
| File | Content |
|---|---|
model-q8-4b-dpo01.gguf |
v0.4 live (SFT joint-06 + DPO, gate 13W-25T-0L) |
model-q8-v0.5.gguf |
newer build, tracks full v05 (bh-agentmujo-1-4b) |
model-q8-4b-dpo02.gguf, model-q8-v0.2/v0.3.gguf, model-q8.gguf (v0.1) |
older builds, archive |
Usage
ollama create agentmujo-1-4b-8q -f Modelfile # GGUF: ./model-q8-4b-dpo01.gguf
ollama run agentmujo-1-4b-8q "Radi li nginx servis?"
llama serve -hf BH-Language-AI/bh-agentmujo-1-4b-8q
The terminal is a fallback β the Policy Engine is mandatory.
Training
- Base:
alphaedge-ai/Qwen3.5-4B-bos-32768@34a62191(Apache-2.0, hidden 2560, 32 layers, vocab 32768) - SFT joint-01β06 (mix v0.31, eval 0.7614) then DPO-01 (train loss 0.67, 9 steps, T4); two-stage merge
- Quantization: llama.cpp
convert_hf_to_gguf.py --no-mtp+Q8_0(~3.9 GB per file,qwen35.block_count=32, 426 tensors) - Framework: agentmujo-training
Limitations
- Q8 carries a slight drop in arguments compared to full (1.0β0.8 at 2B; at 4B DPO 0.962 measured on the gate).
- The model proposes a tool β it does not execute it itself; execution happens exclusively through the Policy Engine (
allow / confirmation_required / deny).
BH-AgentMujo Β· Kolektiv d.o.o. Β· Rule: no fabrication, every number from a real run.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
mid = "BH-Language-AI/bh-agentmujo-1-4b-8q"
tok = AutoTokenizer.from_pretrained(mid)
model = AutoModelForCausalLM.from_pretrained(mid, device_map="auto", torch_dtype="auto")
msgs = [{"role": "user", "content": "Provjeri zalihu artikla XHD211 i reci cijenu."}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=256)
print(tok.decode(out[0][len(tok(prompt)['input_ids']):], skip_special_tokens=True))
Related models
- Base / starting model: shaban2024/Qwen3.5-9B-BOS-Q8-NonThinking
- bh-agentmujo-1-9b-9q-bundle
- bh-agentmujo-1-2b
- bh-agentmujo-1-4b
- bh-agentmujo-1-9b
- bh-agentmujo-1-9b-8q
Evaluation and citation
The GUI-grounding benchmark behind our computer-use line is published with per-item predictions and a scorer:
cua β ScreenSpot-Pro 1,355/1,581 = 85.71 %, DOI 10.5281/zenodo.24732632
(repository: https://github.com/gamai-io/cua).
Signed-action evidence for agents: gama-mandate 1.0.58, DOI
10.5281/zenodo.24732646.
Every benchmark number we publish carries a command, a file or the word card-reported; numbers we could not
reproduce are listed as withdrawn in cua/CLAIMS.md.
- Downloads last month
- 3,711
We're not able to determine the quantization variants.
Model tree for BH-Language-AI/bh-agentmujo-1-4b-8q
Base model
alphaedge-ai/Qwen3.5-4B-bos-32768
