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-Vision-1-8B logo

BH-Vision banner

License: Apache-2.0 Lang: bs Status: PUBLISHED val 93.5% held-out 58.6%

BH-Vision-1-8B — Bosnian visual AI, 8B class ✅ PUBLISHED

BH-Vision-1-8B is the released Bosnian multimodal AI model intended for reading and understanding documents, tables, charts and other visual content in Bosnian. It is based on the Qwen2.5-VL-7B-Instruct model, with a QLoRA adapter trained on 3.015 examples that include synthetic data and real documents of the Agency for Statistics of BiH. On the test set of 217 examples it achieved 93,5% accuracy with the system instruction, while on an independent set of 87 real documents it reached 58,6%. This gives it the best result on independent testing among the previous BH-Vision models: compared with the 4B version, which achieves 54,8% with the system instruction, the 8B version shows a better result on real documents. The model is released as an Apache-2.0 adapter and is intended primarily for short, precise answers to questions about the content of images and documents, not for free-form conversation.

Other models in the series: bh-vision-1-2b (lightweight class, experimental adapter) · bh-vision-1-4b (90,3%/54,8% sys).

Series charts (measured, not promised)

v03-val held-out

Usage (recommended with the system instruction)

from transformers import AutoModelForImageTextToText, AutoProcessor
from peft import PeftModel
proc = AutoProcessor.from_pretrained("BH-Language-AI/bh-vision-1-8b")
base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct")
model = PeftModel.from_pretrained(base, "BH-Language-AI/bh-vision-1-8b")
msgs = [{"role": "system", "content": [{"type": "text", "text": "Odgovaraj iskljucivo kratko: samo trazeni broj, naziv ili Da/Ne. Bez objasnjenja i bez dodanih rijeci."}]},
        {"role": "user", "content": [{"type": "image"}, {"type": "text", "text": pitanje}]}]

Requires transformers==5.22.2, peft==0.21.2. Held-out sets were NEVER used in training.

License and rules

  • Adapter: Apache-2.0. Base model: the card claims Apache-2.0 (the Qwen family was previously approved).
  • Collection: BH-Vision · schema bh-vision-{generacija}-{velicina} (generation, size)
  • Evidence: bh-vision docs/TRAINING.md.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

mid = "BH-Language-AI/bh-vision-1-8b"
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

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for BH-Language-AI/bh-vision-1-8b

Finetuned
(1,301)
this model

Collection including BH-Language-AI/bh-vision-1-8b