SLM-CadCamCfd-Expert-1.5B: Industrial Engineering Foundation Model
Lead Architect: Bhavanam Rajendra Reddy (Runtime-Slayers | ORCID: 0009-0005-3349-1162)
Organization: Runtime-Slayers
Parameter Footprint: 1,543,655,424 (~1.54 Billion Parameters)
Hardware & Memory Ceiling: < 2.0 Billion Parameters (Strict Compliance)
Base Architecture: Qwen2.5-Coder-1.5B (RoPE, SwiGLU, RMSNorm, GQA 6:1, 28 Layers, 1536 Hidden Dimension, 32k Context)
Weight Surgery Protocol: Gram-Schmidt Null-Space Projection on Layers 16–26 ($|\Delta W| / |W_0| \le 8.2%$)
1. Model Summary & Mission
SLM-CadCamCfd-Expert-1.5B is a high-density, low-latency foundation language model specifically synthesized to operate directly with heavy industrial engineering, CAD, CAM, and CFD software suites including:
- MATLAB R2018a–R2026a (Aerospace & CFD Toolboxes, 3D surface graphics, state-space modeling)
- Blender 5.1+ (Headless procedural Python CAD modeling,
bpyscripts, workbench cavity shading) - Simcenter STAR-CCM+ / OpenFOAM (Surface mesh wrapping, boundary condition tagging, Navier-Stokes solvers)
- CATIA V5 / Siemens NX (Airframe structural ribbing, fuselage bulkheads, continuous wing spars)
- 5-Axis CNC Machining (ISO 6983 standard G-code generation, continuous rotary toolpaths, Inconel blisk pocketing)
2. Benchmark Reality & Empirical Performance
Official Foundation Baselines (Qwen2.5-Coder-1.5B-Instruct Technical Report, arXiv:2409.12186):
| Benchmark | Domain / Language | Sample / Setup | Verified Baseline Score | Empirical Assessment |
|---|---|---|---|---|
| HumanEval | Python Code Generation | 0-Shot, Pass@1 | 70.1% | Strong general algorithmic Python foundation. |
| MBPP | Python Math & Basics | 0-Shot, Pass@1 | 70.4% | Reliable multi-turn Python function authoring. |
| MultiPL-E (Average) | Multi-Language Code | 0-Shot, Pass@1 | 62.7% | Cross-language translation baseline. |
| MultiPL-E (MATLAB) | MATLAB Engineering | 0-Shot, Pass@1 | ~48.5% | Challenging Area: Models struggle with 1-based indexing, matrix dimension alignment, and missing end tokens. |
| GSM8K | Grade-School Math | 8-Shot | 67.6% | Solid numerical reasoning. |
| MATH | Complex Mathematics | 4-Shot | 35.8% | Struggles on advanced symbolic and trigonometric derivations. |
| LiveCodeBench | Real-world Coding Contests | 2024-09 Release | 21.5% | Competitive programming ceiling at 1.5B scale. |
Internal Closed-Loop Demonstration Script Verification:
In our local execution environment (Antigravity EQAR Harness), the model's generated engineering scripts were audited in a closed loop through MATLAB R2024b, Blender 5.1, and Scientific Python:
- Aerospace Structural CAD: Synthesized 42 transverse bulkheads, 24 stringers, and wing box geometry; executed in MATLAB and Blender without syntax crashes.
- Automotive Surface Aerodynamics: Generated Simcenter STAR-CCM+ style surface mesh patches and front splitter boundaries with valid topology.
- Transonic Shockwave CFD: Generated 3D compressible Euler $C_p$ surface mapping at Mach 0.78 with valid matrix dimensions and zero
NaNvalues. - 5-Axis CAM G-Code: Output verified ISO 6983 G-code blocks for turbine blisk milling.
[!NOTE] The 100% execution pass rate recorded in earlier project dossiers represents zero fatal syntax crashes on our curated demonstration test scripts, NOT an open public academic benchmark score. Standard automated coding benchmarks like MultiPL-E MATLAB remain around the ~48.5% baseline.
Active Collaborative Roadmap:
We are actively fine-tuning and performing targeted null-space weight surgery on this checkpoint to lift the MultiPL-E MATLAB score from ~48.5% towards 70%+, specifically eliminating 1-based indexing regressions, matrix multiplication dimension mismatches, and surf() 2D grid shape errors.
3. Mathematical Architecture & Zero-Forgetting Proof
To prevent catastrophic forgetting of general coding and linguistic capability, task-specific weight updates $\Delta W$ were projected onto the orthogonal null space of the base activation covariance matrix $V_k$:
$$\Delta W^{\text{proj}} = \Delta W \left( I - V_k V_k^T \right)$$
Because $\left( I - V_k V_k^T \right) V_k = 0$, for all base linguistic inputs $\mathbf{x} \in \operatorname{span}(V_{\text{base}})$:
$$W_{\text{new}} \mathbf{x} = (W_0 + \Delta W^{\text{proj}}) \mathbf{x} = W_0 \mathbf{x} + 0 = W_0 \mathbf{x}$$
Layer Allocation Matrix:
- Layers 00 – 15: 100% Frozen base linguistic and syntactic reasoning anchor ($\Delta W = 0$).
- Layers 16 – 26: Surgical CAD/CAM/CFD Domain Reasoning MLP updates bounded by Frobenius norm $|\Delta W| \le 0.082 |W_0|$.
- Layers 27: 100% Frozen unembedding linear projection anchor.
4. Quickstart Inference Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
base_model_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
surgical_repo = "BRR1154/SLM-CadCamCfd-Expert-1.5B"
# 1. Load base architecture and tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float32,
device_map="auto"
)
# 2. Inject surgical CAD/CAM/CFD null-space delta weights (Layers 16-26)
delta_file = hf_hub_download(repo_id=surgical_repo, filename="surgical_weights_delta.safetensors")
deltas = load_file(delta_file)
with torch.no_grad():
for key, delta in deltas.items():
# key: model.layers.{idx}.mlp.down_proj.surgical_delta
layer_idx = int(key.split(".")[2])
param = model.model.layers[layer_idx].mlp.down_proj.weight
param.add_(delta.to(param.device, dtype=param.dtype))
print("[+] Surgical CAD/CAM/CFD weights loaded successfully!")
# 3. Industrial Prompt Generation
prompt = """Generate a standalone MATLAB function that computes the 3D transonic surface pressure coefficient (Cp) distribution over a NACA SC-0414 supercritical wing with a Mach 0.78 shockwave compression ridge."""
messages = [
{"role": "system", "content": "You are SLM-CadCamCfd-Expert-1.5B, an industrial engineering and CAD/CFD intelligence."},
{"role": "user", "content": prompt}
]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=1024, temperature=0.2, top_p=0.95)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
5. Citation & Attribution
If you use this model or its architecture in your research, please cite:
@misc{reddy2026slmcadcamcfd,
author = {Reddy, Bhavanam Rajendra},
title = {SLM-CadCamCfd-Expert-1.5B: Subspace Weight Surgery Foundation Model for Industrial CAD, CAM, and Transonic CFD},
year = {2026},
publisher = {Hugging Face},
howpublished = {\\url{https://huggingface.co/BRR1154/SLM-CadCamCfd-Expert-1.5B}},
note = {ORCID: 0009-0005-3349-1162}
}