VFIG
Collection
VFIG: Vectorizing Complex Figures in SVG with Vision-Language Models • 5 items • Updated • 3
How to use QijiaHe/VFIG-8B-SFT with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("QijiaHe/VFIG-8B-SFT")
model = AutoModelForMultimodalLM.from_pretrained("QijiaHe/VFIG-8B-SFT", device_map="auto")Given an image of a scientific figure, this model generates the SVG source code that recreates it. The Stage 2 LoRA weights (rank 64, alpha 128) are merged into Qwen3-VL-8B-Instruct. The repository includes the BF16 model weights, tokenizer, image processor, and chat template.
import torch
from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
repo = "QijiaHe/VFIG-8B-SFT"
processor = AutoProcessor.from_pretrained(repo)
model = Qwen3VLForConditionalGeneration.from_pretrained(
repo, dtype=torch.bfloat16, device_map="auto"
).eval()
Base model
Qwen/Qwen3-VL-8B-Instruct