BH-Decision-2-9B v1
structured decision making in Bosnian and English
2 min readupdated
The BH-Decision-2-9B v1 model is designed to automate decision-making processes, risk classification, request triage, and multi-criteria ranking. Instead of free-form text, it returns a ready-to-use, machine-readable JSON containing the chosen option, alternative rankings, scores, risk assessment, and confidence level. Built on top of Qwen/Qwen3.5-9B using the LoRA/rsLoRA method (r32, 4 epochs) on a dataset of 7,849 examples using the European supercomputer LUMI, it is tailored for integration into business applications and autonomous AI agents.
Key features
- Specialization: fine-tuned to output strict JSON with structured decision results.
- Localization: supports Bosnian Ijekavian and English.
- Results: achieves 18/19 (95%) accuracy on a test dataset while maintaining parity with the base model.
- Advanced training: fine-tuned using rsLoRA on the LUMI supercomputer.
What you can do
- Agent integration: integrate into AI agents to automatically analyze business requests and select priorities.
- Risk classification: set up automated assessment and sorting of incoming tasks by importance.
- Alternative comparison: use for multi-criteria ranking and selecting optimal choices from given options.
Example
Example of generating a structured response using the transformers and peft libraries:
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
from peft import PeftModel
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-9B")
base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.5-9B", torch_dtype=torch.float16)
model = PeftModel.from_pretrained(base, "BH-Language-AI/bh-decision-2-9b")
model.eval()
prompt = 'Stanje: ...\nPitanje: Koji je najbolji odgovor?\no1: ...\no2: ...\no3: ...\nOdgovor (JSON {"decision": ...}):'
ids = tok(prompt, return_tensors="pt")
out = model.generate(**ids, max_new_tokens=128)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))
# {"decision": "o1", "options_ranked": [...], "scores": {...}, ...}
Read more
DetailsBenchmarks: 18/19 (95%) accurate decisions on 20 unseen examples (parity with base stock Qwen3.5-9B, Brier 0.008 vs 0.006).
Limitations: the adapter enforces format discipline but does not exceed the base model in accuracy; free-form text generation is not supported.
Training details: base Qwen/Qwen3.5-9B, LoRA r32/alpha 64, lr 1e-4, 4 epochs, trained on the LUMI supercomputer.










Comments