Downloads · 30 days
0
prakashchhipa/Qwen2.5-VL-7B-ChartQA-LoRA
Qwen2.5-VL-7B-ChartQA-LoRA is a image-to-text model from prakashchhipa. Use it when you need a caption or text from an image. The card lists the license as mit.
A fine-tuned Qwen2.5-VL-7B model specifically optimized for chart understanding tasks using LoRA (Low-Rank Adaptation) on the ChartQA dataset.
Downloads · 30 days
0
Access
Public
Updated Oct 17, 2025
Repo size
12.1 GB
Likes
1
Public
Click a slice to open those files.
.pt11.6 GB · 96%
From the Hugging Face model README
A fine-tuned Qwen2.5-VL-7B model specifically optimized for chart understanding tasks using LoRA (Low-Rank Adaptation) on the ChartQA dataset.
| Model | ChartQA Accuracy | Improvement |
|---|---|---|
| Qwen 2.5 7B base | 57.5% | - |
| AskAnythingInCharts-Qwen2.5 7B | 66.0% | +8.5% |
The fine-tuned model shows significant improvements in:
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
from peft import PeftModel
from PIL import Image
# Load base model
base_model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen2.5-VL-7B-Instruct",
torch_dtype="bfloat16",
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "prakashchhipa/Qwen2.5-VL-7B-ChartQA-LoRA")
model = model.merge_and_unload()
# Load processor
processor = AutoProcessor.from_pretrained("prakashchhipa/Qwen2.5-VL-7B-ChartQA-LoRA")
# Inference
image = Image.open("chart.png")
question = "What is the highest value in the chart?"
messages = [
{"role": "user", "content": [
{"type": "text", "text": question},
{"type": "image", "image": image}
]}
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
# Process and generate response...
The model was fine-tuned on the ChartQA dataset, which contains:
If you use this model in your research, please cite:
@misc{askanything-charts-qwen2.5,
title={AskAnythingInCharts-Qwen2.5-7B: Fine-tuned Qwen2.5-VL for Chart Understanding},
author={Prakash Chandra Chhipa},
year={2025},
url={https://huggingface.co/prakashchhipa/Qwen2.5-VL-7B-ChartQA-LoRA}
}
This model is released under the MIT License. The base Qwen2.5-VL model is subject to its own license terms.
Built with ❤️ using Qwen2.5-VL and HuggingFace Transformers