
ποΈ BH-Vision-1-2B β light class (experimental adapter v3)
BH-Vision-1-2B represents a light class of multimodal AI models within the BH-Language-AI initiative, intended for understanding images and textual content in Bosnian. Its planned application covers OCR, reading and understanding documents, extracting information from tables, chart analysis, and answering questions about visual content. The base model is Hugging Face's SmolVLM2-2.2B-Instruct, and adaptation is carried out with the QLoRA method, with a frozen vision encoder in the first development iteration. During experimental development, version v3 achieved 46,1% accuracy on the development set of 217 samples, compared with 37,3% for the untrained base model. That represents an improvement of 8,8 percentage points, i.e. approximately 23,6% relative increase in accuracy. However, on an independent set of 73 real Bosnian documents, the model achieved 23,3%, versus 21,9% for the base model, which shows that the progress on the development set has not yet transferred to real documents to a sufficient degree. Ten different training recipes were tested during development, including various combinations of real and synthetic data, and the experiments showed how hard it is to achieve a stable understanding of charts and documents at the same time. Version v3 remains the best accepted experimental result, while the other versions were rejected due to weaker results or degradation of model capability. BH-Vision-1-2B is not yet finished nor approved for production use. The experimental adapter v3 is publicly available on this card, but not as a final production model β for more serious use we recommend the stronger classes of the series: bh-vision-1-4b (90,3%/49,3%) and bh-vision-1-8b (93,5%/58,6%). The development goal is to obtain a small multimodal AI model that can be run locally and used for reading Bosnian documents, processing business documentation, and converting visual information into structured data.
Series graphs (measured, not promised)
Usage (adapter v3, ckpt-30)
from transformers import AutoModelForImageTextToText, AutoProcessor
from peft import PeftModel
proc = AutoProcessor.from_pretrained("BH-Language-AI/bh-vision-1-2b")
base = AutoModelForImageTextToText.from_pretrained("HuggingFaceTB/SmolVLM2-2.2B-Instruct")
model = PeftModel.from_pretrained(base, "BH-Language-AI/bh-vision-1-2b")
Requires transformers==5.22.2, peft==0.21.2 (newer than 5.22 breaks the SmolVLM2 merge). The held-out bs-vision-ocr-heldout-v01 was NEVER used in training.
License and rules
- Adapter: Apache-2.0. Collection: BH-Vision Β· schema
bh-vision-{generacija}-{velicina} - Project repo: BH-Language-AI/bh-vision Β· records:
docs/TRAINING.md
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
mid = "BH-Language-AI/bh-vision-1-2b"
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.
Model tree for BH-Language-AI/bh-vision-1-2b
Base model
HuggingFaceTB/SmolLM2-1.7B

