BH-AgentMujo-1-2B logo

License: Apache-2.0 Lang: bs Status: RELEASED tool 0.80 safety 1.0

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).

benchmark

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

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
Safetensors
Model size
1B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for BH-Language-AI/bh-agentmujo-1-2b

Quantized
(3)
this model

Collection including BH-Language-AI/bh-agentmujo-1-2b