Downloads · 30 days
9
18% of all-time downloads
S-ABISHEAK/Docmatix-Qwen2-VL-7B-Instruct-finetuned
Docmatix-Qwen2-VL-7B-Instruct-finetuned is a image-to-text model from S-ABISHEAK. Use it when you need a caption or text from an image. It is set up for peft.
This model is a fine-tuned version of unsloth/Qwen2-VL-7B-Instruct using Unsloth and the HuggingFaceM4/Docmatix dataset.
Downloads · 30 days
9
18% of all-time downloads
All-time downloads
49
Public
Repo size
113 MB
Likes
1
Public
Click a slice to open those files.
.safetensors102 MB · 90%
From the Hugging Face model README
This model is a fine-tuned version of unsloth/Qwen2-VL-7B-Instruct using Unsloth and the HuggingFaceM4/Docmatix dataset.
Fine-tuned on the images split of the Docmatix dataset, which focuses on document understanding and visual question answering.
from unsloth import FastVisionModel
import torch
model, tokenizer = FastVisionModel.from_pretrained(
"unsloth/Qwen2-VL-7B-Instruct",
load_in_4bit=True,
)
model = FastVisionModel.load_adapter(model, "path_to_your_lora_files")
from transformers import TextStreamer
FastVisionModel.for_inference(model)
# Standard Qwen2-VL inference code follows...