--- license: apache-2.0 language: - bs - hr - sr - en base_model: Qwen/Qwen3.5-9B tags: - text-generation - bosnian - function-calling - ai-agents - bh-language-ai ---

BH-LLM-Basic logo

# 🧠 BH-LLM-Basic-1-9B v2.0 ## Za šta se koristi > **Najjači bosanski agent model (bs/hr/sr/en) — full bf16 + Q8.** > Loop-produkcija: tool 0.912, task_success 0.952, safety 1.0. BH-LLM-Basic-1-9B v2.0 je produkcijski function-calling model izveden iz `Qwen/Qwen3.5-9B` (Apache-2.0). Repo sadrži **punu bf16 fuziju v08** (`model.safetensors`, 18.8GB — joint08 adapter spojen u bazu, za vLLM/TGI/transformerse) i **Q8 joint08** (`model-q8-joint08.gguf` — produkcijski default za CPU, freeze potvrđen 2026-11-22) plus **Q8 gold06 backup**. Na AgentMujo-Bench loopu (63 slučaja, produkcijska metrika) joint08 postiže tool 0.912, strict 0.873, task_success 0.952, safety 1.0; single-shot gate: tool 0.867. Puna v08 na općim mjerama: BS golden 79.1%, BS-Eval v1 (400) 72.75%, EN golden 96.7%, tool bench (72) 98.6%. Svi post-joint08 runovi (joint09–15, DPO+SFT mikro-delta) REJECT — nijedan ne drži tool preciznost. Pripada kolekciji [BH-LLM-Basic](https://huggingface.co/collections/BH-Language-AI/bh-llm-basic). Format je `` XML; dialect-dense SFT probio plafon — format radi i pod default production promptom. ![licenca](https://img.shields.io/badge/licenca-Apache--2.0-blue) ![tool](https://img.shields.io/badge/loop_tool-0.912-green) ![task](https://img.shields.io/badge/task-0.952-green) ![safety](https://img.shields.io/badge/safety-1.0-green) ![jezik](https://img.shields.io/badge/bs_hr_sr_en-multilingual-blue) ## Benchmark Produkcijska metrika = scored agent loop (63 slučaja); single-shot gate je pesimističan za safety. | Metrika | 2B r6 SFT | 4B v0.4-DPO | **9B joint08 v2.0 (ovaj repo)** | 9B gold06 v1.0 (backup) | |---|---|---|---|---| | tool_selection (loop) | 0.8 | 1.0 | **0.912** | 0.667 | | strict / task_success | — | — | **0.873 / 0.952** | — | | argument_accuracy | 0.846 | 0.962 | 0.846 | 0.692 | | safety (loop) | 1.0 | 1.0 | **1.0** | 1.0 | Puna v08 (isti harness, 22.11.2026): | metrika | **v08 (ovaj `model.safetensors`)** | v06 | Qwen3.5-9B base | |---|---|---|---| | BS golden (43) | **79,1 %** | 72,1 % | 74,4 % | | BS-Eval v1 (400) | **72,75 %** | 72,0 % | 72,5 % | | EN golden (30) | **96,7 %** | 93,3 % | 96,7 % | | tool bench (72) | **98,6 %** | 100,0 % | 97,2 % | | GSM8K strict | 0,845 | 0,925 | 0,790 | | IFEval p-strict | 0,730 | 0,795 | 0,830 | Poznata ograničenja: conf 0.8 < 2B r6 0.9; think-profil nije dio releasea; single-shot safety gate 0.636 (loop-mjerena safety 1.0 je mjerodavna). ## Upotreba ```python from transformers import AutoModelForCausalLM, AutoTokenizer mid = "BH-Language-AI/bh-llm-basic-1-9b" tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype="bfloat16", device_map="auto", trust_remote_code=True) ``` vLLM: `--model BH-Language-AI/bh-llm-basic-1-9b --trust-remote-code`. Q8 lokalno: `model-q8-joint08.gguf` (gold06 backup uz njega). ## Trening - Baza: `Qwen/Qwen3.5-9B` @ `c20223623` (težine se NE re-uploadaju) · Apache-2.0 - SFT joint01→08 (dialect-dense, LUMI MI250X) + DPO faze; freeze joint08 potvrđen 2026-11-22 - Fuzija: `peft.merge_and_unload` u bazu (puni safetensors, bez PEFT-a) - Kvantizacija: llama.cpp Q8_0 (~9.5GB po fajlu) - Sirovi rezultati i lineage: [framework repozitorij](https://github.com/BH-Language-AI/agentmujo-training) (`benchmark/results_agentloop_9bjoint08.json`, joint09–15 REJECT log) ## Ograničenja - Agent model (`` XML), ne opći chat model. - conf 0.8 — verifikacijski korak u loopu obavezan za kritične akcije. - Think-profil nije dio releasea; terminal je fallback, Policy Engine obavezan. - Najveći model kolekcije — za edge/CPU koristiti 2B/4B Q8. *BH-LLM-Basic · Kolektiv d.o.o. + Gamatrade d.o.o. · xnetba@gmail.com · Pravilo: bez fabriciranja, svaka brojka iz stvarnog runa.* ## Povezani modeli / Related models - Base / polazni model: [alphaedge-ai/Qwen3.5-2B-bos-32768](https://huggingface.co/alphaedge-ai/Qwen3.5-2B-bos-32768) - [bh-llm-basic-1-2b](https://huggingface.co/BH-Language-AI/bh-llm-basic-1-2b) - [bh-llm-basic-1-32b](https://huggingface.co/BH-Language-AI/bh-llm-basic-1-32b) - [bh-llm-basic-1-4b](https://huggingface.co/BH-Language-AI/bh-llm-basic-1-4b) ## 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](https://doi.org/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](https://doi.org/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`.