Downloads · 30 days
24
9% of all-time downloads
khazarai/Math-VL-8B
Math-VL-8B is a image-text-to-text model from khazarai. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Base Architecture: Qwen3-VL-8B-Instruct - Fine-Tuning Method: QLoRA (PEFT) - Language: Turkish - Domain: High School Mathematics (12th Grade) - Modality: Vision-Language (Image + Text → Text)
Downloads · 30 days
24
9% of all-time downloads
All-time downloads
260
Public
Parameters
8.8B
17.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors17.5 GB · 100%
From the Hugging Face model README
This model is a QLoRA fine-tuned version of Qwen3-VL-8B-Instruct trained on the Turkish-Math-VQA dataset, which consists of 12th-grade mathematics problems published by the Turkish Ministry of National Education (MEB). The model is designed to:
Primary Use Cases
Dataset: Turkish-Math-VQA The dataset contains mathematics problems from official 12th-grade exams prepared by the Turkish Ministry of National Education.
Dataset Fields:
test_number: The test identifierquestion_number: Question number within the testimage: The image containing the math problemsolution: Turkish solution generated synthetically using GPT-o1Important Note on Labels:
The solution field was generated synthetically by GPT-o1 and has not been manually verified for correctness. While GPT-o1 is generally strong at solving problems at this level, the dataset may contain:
Therefore, the fine-tuned model may inherit these imperfections.
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("khazarai/Math-VL-8B")
model = AutoModelForImageTextToText.from_pretrained("khazarai/Math-VL-8B")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "Resimde verilen matematik problemini çözün."}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
If you use this model in academic work, please cite: