Skip to content
Other

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 moreDetails
Benchmarks: 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.
Discuss Telegram 0

Will it run?

Runs in BF16

Fits without quantisation.

  • BF16weights 18 GB · ready files21 GB
  • FP8 / INT8recommendedweights 9.2 GB11 GB
  • 4-bitweights 5.3 GB6.3 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2080 Ti · BF16 — from RTX 4090

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

This is a LoRA: counted together with its base model Qwen3.5-9B.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # BH-Language-AI/bh-decision-2-9b
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download Qwen/Qwen3.5-9B --local-dir ~/models/Qwen3.5-9B
    hf download BH-Language-AI/bh-decision-2-9b --local-dir ~/models/bh-decision-2-9b
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to Qwen3.5-9B
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b41from November 25, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

Requires the base model

Qwen/Qwen3.5-9B

This model is a LoRA / adapter. Download the base model first, then load this one on top.

  1. Qwen3.5-9B-Basefamily root
  2. Qwen3.5-9B
  3. bh-decision-2-9b

New posts about versions of Qwen3.5-9B-Base (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
LoRAs and adapters 6All on Hugging Face
Merges 1All on Hugging Face

About the model

BH-Language-AI/bh-decision-2-9b
Author
BH-Language-AI
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments