Downloads · 30 days
20
12% of all-time downloads
hsiangfu/ReVision-250M-256-16-baseline
ReVision-250M-256-16-baseline is a text generation model from hsiangfu. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-3.0.
This repository contains ReVision-250M-256-16-baseline, a compact vision-language model (VLM) designed for Visual Instruction Rewriting. The model rewrites multimodal task-oriented instructions into text-only commands…
Downloads · 30 days
20
12% of all-time downloads
All-time downloads
172
Public
Parameters
275M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
This repository contains ReVision-250M-256-16-baseline, a compact vision-language model (VLM) designed for Visual Instruction Rewriting. The model rewrites multimodal task-oriented instructions into text-only commands, enabling privacy-preserving on-device AI by eliminating the need to process images in the cloud.
google/siglip-base-patch16-256 (processes 256×256 images).OuteAI/Lite-Mistral-150M-v2-Instruct (instruction-tuned).| Model | ROUGE-1 | BLEU | Intent Accuracy | Argument Similarity |
|---|---|---|---|---|
| ReVision-250M-256-16-baseline | 56.9% | 27.7% | 56.5% | 68.8% |
pip install torch transformers torchvision
from transformers import AutoProcessor, AutoModelForSeq2SeqLM
import torch
from PIL import Image
# Load model and processor
model_name = "hsiangfu/ReVision-250M-256-16-baseline"
processor = AutoProcessor.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Prepare inputs (image + instruction)
image = Image.open("example.jpg")
instruction = "Call this number."
inputs = processor(images=image, text=instruction, return_tensors="pt")
outputs = model.generate(**inputs)
# Decode rewritten instruction
rewritten_instruction = processor.batch_decode(outputs, skip_special_tokens=True)[0]
print("Rewritten Instruction:", rewritten_instruction)
The model was fine-tuned on the ReVision Multimodal Query Rewrites Dataset, a collection of 39,023 ⟨image, original instruction, rewritten instruction⟩ triplets covering:
Link: https://huggingface.co/datasets/hsiangfu/multimodal_query_rewrites
Developed by researchers at UT Austin and Yale University. Model and dataset are available for academic use.