BH-AgentMujo-1-4B-8Q logo

License: Apache-2.0 Lang: bs Status: PUBLISHED tool 1.0 gate 13W-25T-0L

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.

benchmark

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

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
GGUF
Model size
4B params
Architecture
qwen35
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

Model tree for BH-Language-AI/bh-agentmujo-1-4b-8q

Quantized
(4)
this model

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