Downloads · 30 days
11
9% of all-time downloads
Adnan2942/Qwen2-VL-7B-Instruct-LoRA-Latex-OCR
Qwen2-VL-7B-Instruct-LoRA-Latex-OCR is a image-text-to-text model from Adnan2942. 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.
- Developed by: Adnan2942 - License: apache-2.0 - Finetuned from model : unsloth/qwen2-vl-7b-instruct-unsloth-bnb-4bit - Adapter Weights repo : https://huggingface.co/Adnan2942/Qwen2-VL-7B-Instruct-LoRA-Latex-OCR-Adap…
Downloads · 30 days
11
9% of all-time downloads
All-time downloads
124
Public
Parameters
8.3B
33.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.6 GB · 100%
From the Hugging Face model README
from transformers import pipeline,TextStreamer
tokenizer=AutoTokenizer.from_pretrained("Adnan2942/Qwen2-VL-7B-Instruct-LoRA-Latex-OCR")
text_streamer=TextStreamer(tokenizer,skip_prompt=True,skip_special_tokens=True)
input="your-image-input-object" ###example:"<PIL.PngImagePlugin.PngImageFile image mode=RGB size=160x40>"
generator = pipeline("image-text-to-text", model="Adnan2942/Qwen2-VL-7B-Instruct-LoRA-Latex-OCR", device="cuda")
output = generator([{"role": "user", "content": [
{"type":"text","text":"Write the Latex representation for this image"},
{"type":"image","image":input}]}], max_new_tokens=128,streamer=text_streamer,use_cache=True,temperature=1,min_p=0.1)
This qwen2_vl model was trained 2x faster with Unsloth and Huggingface's TRL library.