Downloads · 30 days
0
soupstick/qwen2vl-amazon-ft-lora
qwen2vl-amazon-ft-lora is a machine learning model from soupstick. 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 transformers. The card lists the license as other.
Lightweight LoRA adapter trained with LLaMA-Factory to turn a product image into an Amazon-style listing (title, bullets, description).
Downloads · 30 days
0
Access
Public
Updated Aug 23, 2025
Repo size
85.3 MB
Likes
1
Public
Click a slice to open those files.
.safetensors73.9 MB · 82%
From the Hugging Face model README
Lightweight LoRA adapter trained with LLaMA-Factory to turn a product image into an Amazon-style listing (title, bullets, description).
Note: This repo ships the adapter only. Load it on top of
Qwen/Qwen2-VL-2B-Instruct.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
from PIL import Image
base = "Qwen/Qwen2-VL-2B-Instruct"
adapter = "soupstick/qwen2vl-amazon-ft-lora"
model = AutoModelForCausalLM.from_pretrained(base, trust_remote_code=True, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
tok = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
img = Image.open("sample.png").convert("RGB")
resp, _ = model.chat(tok, query="<image>\nGenerate Amazon listing.", history=[], image=img)
print(resp)
Training
Framework: LLaMA-Factory (LoRA)
Task: Multimodal instruction-following for e-commerce listings
Data: community dataset (see the dataset card linked below)