A LoRA adapter for Qwen/Qwen3-8B (rev b968826d9c46dd6066d109eabc6255188de91218). It turns a plain-language
engineering request into a Berkelium DesignProposal JSON: a parametric design with named dimensions (converted to
mm), checkable size requirements, assumptions and open questions. It also includes either a procedural Geometry IR op graph
(profiles, extrude/revolve, booleans, patterns) or a call to a catalogued engineering model (spur-gear pair, cantilever beam).
The model only proposes. The deterministic Berkelium core builds the exact geometry (OCCT STEP / Manifold mesh), measures it and validates it. In Berkelium Studio the result is then fitted with Gaussians and splat-rendered in the viewport. Without the core, the output is just JSON.
GGUF (Q4_K_M, merged, 5.03 GB) for Ollama / llama.cpp: Mhaquehaque/berkelium-qwen3-8b-cad-v1-GGUF.
On held-out prompts for the object families it was trained on, the core accepts 99.8 % of its designs, 99.7 % meet every size the prompt states, and the mean volume IoU against the reference is 0.94. Base Qwen3-8B scores 0 % on the same prompts: it never produces a valid DesignProposal. Units (mm, cm, in), counts and hole patterns are carried into the design.
Real prompts from the held-out test set that it reproduced exactly (IoU ≥ 0.98, every requirement met):
Strong families (realise ≈ 1.0, IoU ≥ 0.9): plates with hole grids, L-brackets, U-channels, I-beams, flanges, washers, bushings, stepped shafts, hex nuts/bolts (unthreaded), pulleys, spoked wheels, pillow blocks, toothed discs, heat sinks, open enclosures, pipe tees, propellers, mugs, bottles, vases, tables, ladders, rocket airframes (ogive + fins + bell), the lantern, spur-gear pairs, cantilever beams, and the "base block/disc + holes / pockets / bosses / slots / counterbores / bolt circle" feature grammar. Vague prompts ("a small bracket") get typical sizes, listed as assumptions plus an open question.
| model | set | n | schema-valid | realises | stated sizes met | IoU |
|---|---|---|---|---|---|---|
| zero-shot Qwen3-8B | test (trained families, unseen seeds) | 451 | 0.00 | 0.00 | 0.00 | 0.00 |
| this adapter | test | 451 | 1.00 | 0.998 | 0.997 | 0.936 |
| zero-shot Qwen3-8B | held-out families | 354 | 0.00 | 0.00 | 0.00 | 0.00 |
| this adapter | held-out families | 354 | 0.63 | 0.49 | 0.15 | 0.056 |
| this adapter | spur-gear model | 14 | 1.00 | 1.00 | 1.00 | 1.00 |
D-033: 5 of 6 checks pass. Held-out-family realise is 0.49, below the required 0.60, so it is not promoted. It is offered as an opt-in "Engineering CAD" generator, not the default router target. NF4 on Kaggle T4, greedy decoding, thinking off.
QLoRA (NF4 base, fp16 compute, fp32 LoRA r=32 / α 64 on all linear layers), DDP on 2× Kaggle T4. Data:
berkelium-cad-v1 (18,712 core-verified rows; a random 12,000-row subset, 15.5M tokens). 601 steps (0.80 epoch,
stopped by a 10 h guard), train loss 1.03 → 0.005. Data manifest sha256 bb07a39a…, adapter sha256 c76b64ee….
from peft import PeftModel
from transformers import AutoModelForCausalLM
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", revision="b968826d9c46dd6066d109eabc6255188de91218")
model = PeftModel.from_pretrained(base, "Mhaquehaque/berkelium-qwen3-8b-cad-v1")
Use the system prompt cad-0.1 (services/neural/berkelium_neural/cad/prompts.py) with thinking off, then run the JSON through
berkelium.pipeline.run(...). In Berkelium Studio, set BERKELIUM_CAD_ADAPTER=Mhaquehaque/berkelium-qwen3-8b-cad-v1 (CUDA) or point
BERKELIUM_CAD_URL at an Ollama/vLLM endpoint, then choose Engineering CAD in Generate.
Code and reports: github.com/kmmohaimenulhaque-code/Berkelium-Neural-Rendering-Studio (branch
Berkelium-Neural-Rendering-Studio-neural-v1, results/cad/E-C1/).
Qwen/Qwen3-8B