Ogledala / mirrors: GitCode (AtomGit), CSDN i slični sajtovi automatski miroruju ovaj repo. Zvanična i jedina ažurirana verzija je ovdje na Hugging Face-u; kartice na ogledalima se ne ažuriraju (pa ispravke, npr. tokenizer od 2026-12-05, tamo mogu izostati).

BH-AgentMujo-1-4B logo

License: Apache-2.0 Lang: bs Status: PUBLISHED tool 0.733 safety 0.857

BH-AgentMujo-1-4B β€” Bosnian AI agent, 4B class βœ… PUBLISHED

BH-AgentMujo-1-4B is the released Bosnian agent model of the medium class from the BH-AgentMujo family: base alphaedge-ai/Qwen3.5-4B-bos-32768 + LoRA SFT (4b-jt31-thunder, eval 0.84) + LoRA DPO (4b-dpo03-thunder, 160 pairs, SFT→DPO order), two-stage merge. It is intended for users for whom the 2B class is not enough and the 9B is too heavy — it covers the same Linux agent tasks (services, logs, packages, files, multi-step operations) with more capacity than the 2B model. The repository contains the full bf16 weights (model.safetensors, 7.3 GB) and the production GGUF Q8 build v0.5 (model-q8.gguf, 3.9 GB). Like the whole series, it returns a machine-readable tool call and is executed exclusively through the AgentMujo Policy Engine (MODEL → TOOL → POLICY ENGINE → LINUX).

Other models in the series: bh-agentmujo-1-2b (lightweight class, Q8 v0.5) Β· bh-agentmujo-1-9b (strongest class, PRODUCTION gold06).

Evaluation

AgentMujo-Bench v0.5, 48 cases, full bf16, T4, temp 0, non-thinking, 2026-11-12:

Metric v05 full (this)
tool_selection 0.733
json_validity 1.0
safety 0.857
refusal_correctness 0.8
confirmation_behavior 0.4
high_level_preference 0.6
no_tool_correctness 0.25 (known limitation)
ijekavica_dialect 1.0
argument_accuracy 0.0 β€” FORMAT, not capability (see the note)

Note on argument_accuracy: the model picks the correct tool and the correct values, but wraps them in newlines ("\nnginx\n" vs "nginx") and adds optional arguments β€” the strict == scorer breaks on all of that. The proposed solution is a normalized scorer (bench v0.6) + rescoring of all historical baselines with the same scorer. Until then the v05 args figure is not used to compare models. Full report: Kaggle kernel admiragic/bh-v05-4b-eval-merged-full.

evaluacija

Usage

Full bf16 (transformers):

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("BH-Language-AI/bh-agentmujo-1-4b", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("BH-Language-AI/bh-agentmujo-1-4b",
    torch_dtype="auto", device_map="auto", trust_remote_code=True)

Q8 (Ollama, recommended for deployment):

ollama create agentmujo-1-4b -f Modelfile   # GGUF: ./model-q8.gguf
ollama run agentmujo-1-4b "Radi li nginx servis?"

The terminal is a fallback β€” the Policy Engine is mandatory.

Training

  • Base: alphaedge-ai/Qwen3.5-4B-bos-32768 @ 34a62191 (Apache-2.0)
  • Adapters: shaban2024/agentmujo-adapters β€” 4b-jt31-thunder (SFT, eval 0.84) + 4b-dpo03-thunder (DPO, 160 pairs), SFTβ†’DPO order, two-stage merge
  • Quantization: llama.cpp convert_hf_to_gguf.py --no-mtp + Q8_0 (3.9 GB)
  • Framework: agentmujo-training Β· predecessors: bs-qwen35-4b-agent-nonthink-v05 (full) + bs-qwen35-4b-agent-nonthink-v04-q8 (Q8, deprecated)

Limitations

  • no-tool answers 0.25 (trigger-happy on chitchat β€” the policy layer rewards excess); confirmation 0.4 β€” the model prefers to check and then ask rather than act blindly (intentional, safer).
  • For maximum accuracy take bh-agentmujo-1-9b (gold06, PRODUCTION).
  • 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"
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
1,392
Safetensors
Model size
4B 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-4b

Quantized
(4)
this model

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