Downloads · 30 days
7
7% of all-time downloads
chambersc2017/sadl_qwen2.5_3b
sadl_qwen2.5_3b is a text generation model from chambersc2017. Use it when you need the model to write or continue text. It is set up for peft.
A LoRA fine-tuned adapter on top of Qwen/Qwen2.5-3B-Instruct that converts natural language system descriptions into our formal structural architectural design language, SADL.
Downloads · 30 days
7
7% of all-time downloads
All-time downloads
101
Public
Repo size
70.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors59 MB · 78%
From the Hugging Face model README
A LoRA fine-tuned adapter on top of Qwen/Qwen2.5-3B-Instruct that converts natural language system descriptions into our formal structural architectural design language, SADL.
SADL serves as an intermediate design language to represent systems to be modeled in AADL (Architecture Analysis & Design Language) and SysML (Systems Modeling Language).
This adapter was developed as part of the SysGenAI project, which pairs this model with a Java-based SDD generator to produce complete architecture diagrams from plain-text input.
This model is intended to be used as part of the SysGenAI pipeline. Given a natural language description of a system, the model generates corresponding SADL translation, which can then be rendered as into architecture diagrams (AADL/SysML).
Demonstration:
English natural language: "Inside the coffeemaker, two components reside: a cooking unit and a storage unit."
SADL: "COFFEEMAKER consists internal_components : COOKING_UNIT and STORAGE_UNIT."
English natural language: "The power unit houses five internal components: a cord, a power switch, a junction box, heating wires, and motor wires."
SADL: "POWER_UNIT consists internal_components : CORD , POWER_SWITCH , JUNCTION_BOX , HEATING_WIRES and MOTOR_WIRES."
English natural language: "A filter holder and a filter insert are recognized as the internal components of the HEPA assembly."
SADL: "HEPA_ASSEMBLY consists internal_components : FILTER_HOLDER and FILTER_INSERT."
Example use cases:
The adapter is designed to slot into the SysGenAI project pipeline:
SDD_Generator.java for diagram renderingsrc/gen/aadl/ or src/gen/sysml/Install dependencies:
pip install transformers peft torch
Load the adapter:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "Qwen/Qwen2.5-3B-Instruct"
adapter_id = "chambersc2017/sadl_qwen2.5_3b"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(base_model_id, torch_dtype="auto")
model = PeftModel.from_pretrained(base_model, adapter_id)
prompt = "Describe a simple sensor system with a data processor and output interface."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Note: This adapter is used within the SysGenAI project pipeline. For full diagram generation, run it alongside
SDD_Generator.javaas described in the project README.
The model was fine-tuned on a 50,000-pair synthetically generated dataset created specifically for the SysGenAI project. The dataset consists of paired examples of:
The synthetic data was designed to cover a range of system architectures, including component hierarchies, data flows, and interface definitions.
| Parameter | Value |
|---|---|
| Training regime | fp16/bf16 mixed precision |
| LoRA rank (r) | 32 |
| LoRA alpha | 64 |
| Learning rate | 2e-5 |
| Epochs | 3 |
| Target Modules | q_proj, k_proj, v_proj, o_proj |
| Batch Size | 2 |
Evaluation was performed on a held-out split of the synthetic dataset, covering system descriptions not seen during training.
Evaluated on 300 handwritten natural language descriptions:
| Metric | Value (%) |
|---|---|
| BLEU | 96.20 |
| Accuracy | 84.00 |
| Parsability | 91.67 |
If you use this model in academic work, please cite the base model and this adapter:
@misc{sadl_qwen2025,
author = {chambersc2017},
title = {SysGenAI: Qwen2.5-3B LoRA Adapter for NL-to-SADL Translation},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/chambersc2017/sadl_qwen2.5_3b}}
}
For questions or issues, open a discussion on this repository.