ChemRoute-20260817
A LoRA adapter for analyzing scientific figures and charts
1 min readupdated
This LoRA (a small add-on for a base model) adapts the Qwen/Qwen3-VL-4B-Instruct model to work with research charts, diagrams, and their captions in chemistry and materials science. The model outputs a compact JSON object containing information about figure relevance, chart type, panel structure, evidence sources, data extraction goals, quality flags, and bounding box coordinates. The adapter is designed for researchers, chemists, and developers building automated scientific literature analysis systems.
Key features
- Specialization in scientific illustrations and captions for chemistry and materials science
- Predicts structured JSON with chart types and panels
- Supports region markup using integer coordinates from 0 to 1000
- Works alongside the Qwen/Qwen3-VL-4B-Instruct base model
What you can do
- Integrate into services for automated analysis of scientific papers and patents
- Extract data and structure from chemical experiment charts
- Use the repository script for inference on a single image and caption
Example
import torch
from peft import PeftModel
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
base_id = "Qwen/Qwen3-VL-4B-Instruct"
adapter_id = "Antonimus001/ChemRoute-20260817"
processor = AutoProcessor.from_pretrained(adapter_id)
base = Qwen3VLForConditionalGeneration.from_pretrained(
base_id, revision="ebb281ec70b05090aa6165b016eac8ec08e71b17",
torch_dtype=torch.bfloat16, device_map="auto"
)
model = PeftModel.from_pretrained(base, adapter_id).eval()Read more
DetailsBase model: Qwen/Qwen3-VL-4B-Instruct (revision ebb281ec)
Library: peft (version 0.17.1)
Training: on a dataset of 115 annotated examples
Limitations: requires JSON schema and result validation, does not replace verified experimental data










Comments