HuggingFaceM4/ChartQA
Viewer • Updated • 32.7k • 12.2k • 65
How to use emretmrk/smolvlm-trl-dpo with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("emretmrk/smolvlm-trl-dpo", dtype="auto")This model was trained with DPO using the ChartQA dataset.
from transformers import pipeline
question = "Provide an intricate description of every entity in the image."
generator = pipeline("text-generation", model="emretmrk/smolvlm-trl-dpo", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=1024, return_full_text=False)[0]
print(output["generated_text"])
This model was trained with DPO using the ChartQA dataset.
Base model
HuggingFaceTB/SmolLM2-1.7B