LoRA adapter for Qwen/Qwen3.5-9B that turns a rendered UML class or sequence diagram into its PlantUML source. It is the fine-tuned model 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 |
898131b25a4c40a1e7edc2f10aa5703b97f6c706fae2baa629595ef40b9ee33a |
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-9B at revision c202236235762e1c871ad0ccb60c8ee5ba337b9a. 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-9B", revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a", dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "vovanrew/Qwen3.5-9B-PlantUML-LoRA", subfolder="pairs-20000").eval()
processor = AutoProcessor.from_pretrained("Qwen/Qwen3.5-9B", revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a")
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.
Qwen/Qwen3.5-9B