LoRA adapters for Qwen/Qwen3.5-2B that turn a rendered UML class or sequence diagram into its PlantUML source. They are the fine-tuned models of the study Fine-tuning for image-to-PlantUML: Qwen3.5 at 2B, 9B and 27B, which runs the image-to-PlantUML benchmark on the base model before and after fine-tuning.
| Subfolder | Training pairs | Checkpoint | sha256 of adapter_model.safetensors |
|---|---|---|---|
pairs-20000 |
20,000 | step_02500 |
45d90c10a065fb1dbceef54e619bad4518d48a34c63f430c75a0fde8b4ae4740 |
pairs-5000 |
5,000 | step_00626 |
97888a041769eda682c363c7c259f3d77bd2424cb8eba125fa316adda32a2e51 |
pairs-1000 |
1,000 | step_00126 |
566eb27d4497b3fd7cc9d1e7a52a18988c5a3f3fbb532cd2cb1acab82cf6c1d1 |
Each subfolder holds adapter_model.safetensors and adapter_config.json, byte for byte the files
the study served for its test-set runs.
Qwen/Qwen3.5-2B at revision 15852e8c16360a2fea060d615a32b45270f8a8fc. Training and evaluation used this revision.
adapter_config.json does not record it, so pass it when you load the base.
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
from peft import PeftModel
base = AutoModelForImageTextToText.from_pretrained(
"Qwen/Qwen3.5-2B", revision="15852e8c16360a2fea060d615a32b45270f8a8fc", dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "vovanrew/Qwen3.5-2B-PlantUML-LoRA", subfolder="pairs-20000").eval()
processor = AutoProcessor.from_pretrained("Qwen/Qwen3.5-2B", revision="15852e8c16360a2fea060d615a32b45270f8a8fc")
The study trained and evaluated on this input. Behaviour outside it is undefined.
prompts/zero_shot.txt). The study builds the
turn with build/user_turn.py of its repository.data/puml_images_1568/).enable_thinking=False.The training (the data, the recipe, how the checkpoint was chosen) and the scores on the benchmark
are described in the study repository: the
training recipe, the
training set, and the test-set
runs and tables in runs.zip.
Apache-2.0, the licence of the base model (see LICENSE). The training diagrams were mined from
open-source repositories, and each remains under the licence of the repository it came from; they
are not distributed here.
See CITATION.cff in the study repository.
pairs-1000/adapter_model.safetensors 67 MBpairs-20000/adapter_model.safetensors 67 MBpairs-5000/adapter_model.safetensors 67 MBQwen/Qwen3.5-2B