MBE Gemma 4 26B SysML
LoRA adapter for SysML v2 generation
2 min read
This experimental LoRA (a small fine-tuning add-on for the base model) adapts the Gemma 4 26B-A4B instruct model to write SysML v2 text models (systems modeling language). Created by Vector Stream Systems for an agent in MBEstudio using a small dataset of 55 open reference models, this release is exploratory and showcases the first training round. It currently trails the base model on benchmarks, but paves the way for further refinement.
Key features
- Base model: Built on unsloth/gemma-4-26B-A4B-it with a Mixture of Experts architecture (26B total parameters, about 4B active per token).
- Dataset: Trained on 422 examples built from 55 open SysML v2 models.
- Configuration: LoRA with rank 16, trained using Unsloth and TRL on a single NVIDIA H100 GPU in 6 minutes.
- Notes: The authors point out overfitting due to the small amount of data, which causes the adapter to sometimes lag behind the base model in syntax stability.
What you can use it for
- SysML generation: Draft SysML v2 blocks and packages for engineering tasks.
- Research: Use as a baseline for experiments fine-tuning Gemma 4 models on technical programming languages and specifications.
- Integration: Connect to system architecture generation pipelines alongside the base model.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "unsloth/gemma-4-26B-A4B-it"
tok = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto", torch_dtype="auto")
model = PeftModel.from_pretrained(base, "radiosilent/mbe-gemma4-26b-sysml")
messages = [{"role": "user", "content": "Write a SysML v2 package for a quadcopter with four rotors, a battery and two requirements."}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=1024, repetition_penalty=1.1)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))Read more
DetailsBenchmarks: across 46 test prompts, it outputs exactly one sysml block in 43 cases (base model — 46/46), and bracket balance is maintained in 38 cases (base model — 46/46).
Hardware requirements: the base model requires about 52 GB of VRAM in bf16 format.
Limitations: generated code must be checked with a parser; it is recommended to use a repetition_penalty of about 1.1 to prevent import looping.
License: Apache-2.0.










Comments