Downloads · 30 days
0
afifaimran/qwen25vl3b-scienceqa-lora-textonly
qwen25vl3b-scienceqa-lora-textonly is a machine learning model from afifaimran. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter trained on text-only prompts for ScienceQA and evaluated with images at inference.
Downloads · 30 days
0
Access
Public
Updated Aug 23, 2025
Repo size
160 MB
Likes
0
Public
Click a slice to open those files.
.safetensors149 MB · 90%
From the Hugging Face model README
LoRA adapter trained on text-only prompts for ScienceQA and evaluated with images at inference.
from transformers import AutoProcessor, AutoModelForCausalLM
from peft import PeftModel
import torch
BASE = "Qwen/Qwen2.5-VL-3B-Instruct"
ADAPTER_REPO = "afifaimran/qwen25vl3b-scienceqa-lora-textonly"
processor = AutoProcessor.from_pretrained(BASE, trust_remote_code=True)
base = AutoModelForCausalLM.from_pretrained(
BASE, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(base, ADAPTER_REPO) # loads 'adapter' folder
model.eval()
See eval/scienceqa_report.md and CSVs:
eval/scienceqa_qwen25vl_results.csveval/scienceqa_qwen25vl_sc_sweep.csvBest setting from our sweep: Self-consistency K=5, T=0.7. Last updated: 2025-08-23 08:24 UTC