Instructions to use BH-Language-AI/bh-agentmujo-1-2b 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-2b 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-2b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-agentmujo-1-2b
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-2b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-agentmujo-1-2b
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-2b # Run inference directly in the terminal: ./build/bin/llama cli -hf BH-Language-AI/bh-agentmujo-1-2b
Use Docker
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-2b
- Llama new
- LM Studio
- Jan
- vLLM
How to use BH-Language-AI/bh-agentmujo-1-2b 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-2b" # 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-2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-2b
- Ollama
How to use BH-Language-AI/bh-agentmujo-1-2b with Ollama:
ollama run hf.co/BH-Language-AI/bh-agentmujo-1-2b
- Unsloth Desktop
- Pi
How to use BH-Language-AI/bh-agentmujo-1-2b 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-2b
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-2b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use BH-Language-AI/bh-agentmujo-1-2b with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bh-agentmujo-1-2b
- Lemonade
How to use BH-Language-AI/bh-agentmujo-1-2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BH-Language-AI/bh-agentmujo-1-2b
Run and chat with the model
lemonade run user.bh-agentmujo-1-2b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use BH-Language-AI/bh-agentmujo-1-2b 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-2b
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-2b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use BH-Language-AI/bh-agentmujo-1-2b 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-2b
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-2b" \ --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-2B β Bosnian AI agent, 2B class β RELEASED
BH-AgentMujo-1-2B is the released Bosnian agent model from the BH-AgentMujo family, intended for users who need a small, fast AI agent for Linux operations in Bosnian. Instead of free text it returns a machine-readable tool call (service_*, disk/memory/cpu, process_list, network_status, port_check, package_*, file_*, terminal as a fallback), so it integrates directly into the AgentMujo policy loop (MODEL β TOOL β POLICY ENGINE β LINUX). It can be used for checking service status, reading logs, managing packages, files and multi-step operational tasks β with the mandatory Policy Engine that decides allow / confirmation_required / deny. The model was developed on top of alphaedge-ai/Qwen3.5-2B-bos-32768 (Apache-2.0, 1.77B, vocabulary 32k) with the LoRA additional-training method (phase 1 function-calling β phase 2 agentic β rebalance) and a two-stage merge. On the AgentMujo-Bench v0.5 set (48 cases, Q8, temp 0) it achieved tool_selection 0.800 and argument_accuracy 0.808, compared to 0.143 / 0.0 of the base Qwen3.5 Q8 model. The repository contains the full bf16 weights (model.safetensors, 2.9 GB) and the production GGUF Q8 build v0.5 (model-q8.gguf, 1.53 GB, a single file for both profiles think: true/false). BH-AgentMujo-1-2B represents a lightweight, locally runnable brain of the AgentMujo agent β it runs on a CPU as well, without any mandatory sending of data to external AI services.
Other models in the series: bh-agentmujo-1-4b (middle class, full v05) Β· bh-agentmujo-1-9b (strongest class, PRODUCTION gold06).
Benchmark
AgentMujo-Bench v0.5, 48 cases, Q8, Ollama, temp 0, non-thinking production prompt β v0.5 vs v0.4 vs base:
| Metric | Base Q8 | v0.4 | v0.5 (this) |
|---|---|---|---|
| tool_selection | 0.143 | 0.667 | 0.800 |
| argument_accuracy | 0.0 | 0.731 | 0.808 |
| confirmation_behavior | 0.6 | 0.6 | 0.8 |
| high_level_preference | 0.8 | 0.8 | 1.0 |
| no_tool_correctness | 0.75 | 0.75 | 1.0 |
| refusal_correctness | 1.0 | 1.0 | 0.8 |
| safety | 1.0 | 1.0 | 1.0 |
| ijekavica / json_validity | 1.0 | 1.0 | 1.0 |
Agent loop: task_success 0.917, safety 1.0. The think profile stays at v0.4 (the gate did not clearly pass).
Usage
Full bf16 (transformers):
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("BH-Language-AI/bh-agentmujo-1-2b", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("BH-Language-AI/bh-agentmujo-1-2b",
torch_dtype="auto", device_map="auto", trust_remote_code=True)
Q8 (Ollama, recommended for deployment):
ollama create agentmujo-1-2b -f Modelfile # GGUF: ./model-q8.gguf
ollama run agentmujo-1-2b "Radi li nginx servis?"
Tool format: <tool_call><function=ime><parameter=arg>vrijednost</parameter></function></tool_call>. Terminal is a fallback β the Policy Engine is mandatory.
Training
- Base:
alphaedge-ai/Qwen3.5-2B-bos-32768@2f89b833(Apache-2.0, 1.77B, vocab 32768) - Method: LoRA r16/alpha32 (7 modules), bf16, Kaggle T4; FC 147 samples β agentic 105 β rebalance 100; mix v0.21 (eval-loss 1.067 β 0.937)
- Quantization: llama.cpp
convert_hf_to_gguf.py --no-mtp+Q8_0(1.53 GB, 320 tensors,qwen35.block_count=24) - Framework: agentmujo-training Β· predecessor:
bs-qwen35-2b-agent-nonthink-v01(+Q8, deprecated)
Limitations
- Generative prose is weaker than in the larger classes; for serious use take bh-agentmujo-1-4b or bh-agentmujo-1-9b.
- Refusals sometimes lack the canonical phrase (the behaviour is correct, the scorer is stricter). Bosnian knowledge is weak outside operational tasks.
- 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-2b"
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-4b-8q
- 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
- 847
Model tree for BH-Language-AI/bh-agentmujo-1-2b
Base model
alphaedge-ai/Qwen3.5-2B-bos-32768
