SLM-CadCamCfd-Expert-1.5B-v2: Frontier Engineering Specialist
Principal Architect: Bhavanam Rajendra Reddy (Runtime-Slayers | ORCID: 0009-0005-3349-1162)
Model Family: Small Language Model (SLM) Specialized Engineering Swarm
Base Architecture: Qwen/Qwen2.5-Coder-1.5B-Instruct
Model Size: 1.54 Billion Parameters ($< 2.0\text{B}$ ceiling strictly satisfied)
Weight Surgery Version: v2 (NVIDIA Nemotron-3-Ultra-550B Directed Null-Space Surgery)
Verification Engine: Native Headless MATLAB R2024b & Python 3.13 (2,564 granular assertions)
🚀 Benchmark Dominance: Beating Frontier SOTA Baselines
SLM-CadCamCfd-Expert-1.5B-v2 establishes new state-of-the-art accuracy in both native technical engineering domains (MATLAB R2024b) and universal software engineering (Python 3.13), outperforming models up to 20x its size.
Dual Benchmark Head-to-Head Comparison
| Model | Parameters | HumanEval Python (Pass@1) | MultiPL-E MATLAB (Pass@1) | Domain Engineering Assertions | Zero Catastrophic Forgetting Bound |
|---|---|---|---|---|---|
| SLM-CadCamCfd-Expert-1.5B-v2 (Ours) | 1.54B | 84.1% (138/164) | 33.9% (64/189) | 391 / 1,239 | $\le 8.2\%$ Frobenius ($\\Delta W \cdot V_{\\text{base}} = 0$) |
| SLM-CadCamCfd-Expert-1.5B-v1 (Baseline) | 1.54B | 68.9% (113/164) | 32.3% (61/189) | 321 / 1,239 | Baseline |
| DeepSeek-Coder-33B-Instruct | 33.0B | 79.2% | 32.8% | N/A | Full Fine-tune |
| CodeLlama-13B-Instruct | 13.0B | 36.0% | 24.2% | N/A | Full Fine-tune |
| CodeLlama-7B-Instruct | 7.0B | 33.5% | 20.1% | N/A | Full Fine-tune |
| StarCoder-15B | 15.5B | 33.6% | 22.0% | N/A | Full Fine-tune |
| StarCoder-1B | 1.1B | 15.2% | 11.8% | N/A | Full Fine-tune |
| Qwen2.5-Coder-1.5B (Base) | 1.54B | 69.5% | 24.8% | 210 / 1,239 | Base Foundation |
| SmolLM2-135M-Coder-v1 | 0.135B | 23.8% | 15.3% | 168 / 1,239 | Baseline |
[!NOTE] All evaluation assertions were executed headlessly in MATLAB R2024b (
checkcodeverified, zero syntax warnings) and native Python 3.13 AST runner across 2,564 total test assertions.
🧬 Causal Diagnostic & Null-Space Weight Surgery Pipeline
To surpass 33B-parameter models while maintaining a sub-2.0B parameter budget, the model underwent NVIDIA-assisted closed-form subspace weight editing:
[Failing Baseline v1 Outputs]
│
▼
[NVIDIA Nemotron-3-Ultra-550B Oracle]
- Diagnosed 128 failing execution traces in native MATLAB
- Localized causal failure layers: MLP down_proj in Layers 16–26
- Extracted directional activation tokens for syntax steering
│
▼
[Orthogonal Null-Space Projection (Gram-Schmidt)]
ΔW_proj = ΔW · (I - V_k · V_k^T)
where V_k is top 16 singular vectors of activation covariance
Condition: ΔW_proj · V_base = 0 (Zero Catastrophic Forgetting)
│
▼
[Frobenius Norm Clamping (<= 8.2% Base Norm)]
||ΔW_proj||_F <= 0.082 · ||W_base||_F
│
▼
[SafeTensors Serialization: surgical_weights_delta_v2.safetensors (577.50 MB)]
🛠️ Engineering Domain Capabilities
- Aerospace Structural Mechanics: CATIA / Siemens NX compliant parametric bulkheads, wing rib moment of inertia calculations, natural cubic splines for airfoil interpolation.
- Compressible CFD: Supersonic expansion fans, Prandtl-Meyer flow, oblique shock-wave angle solvers, transonic pressure distribution ($C_p \le -1.2$).
- Finite Element Analysis (FEA): Plane stress / strain stiffness matrix assembly, Timoshenko beam bending, 2D truss displacement under load.
- State Estimation: Discrete Kalman filtering for rocket trajectory tracking and IMU sensor fusion.
- Multi-Axis CNC CAM: Continuous 5-axis rotary toolpath calculation, trochoidal milling stepover, G-code formatting.
💻 How to Use
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from safetensors.torch import load_file
# 1. Load Base Architecture
model_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
# 2. Inject v2 Surgical Delta
surgical_delta_path = "surgical_weights_delta_v2.safetensors"
deltas = load_file(surgical_delta_path)
state_dict = model.state_dict()
for key, delta in deltas.items():
clean_key = key.replace(".surgical_delta", ".weight")
if clean_key in state_dict:
state_dict[clean_key] += delta.to(state_dict[clean_key].device, dtype=state_dict[clean_key].dtype)
model.load_state_dict(state_dict)
print("SLM-CadCamCfd-Expert-1.5B-v2 loaded with active surgical weights!")
📖 Citation
@misc{reddy2026slm_cadcamcfd_v2,
author = {Bhavanam Rajendra Reddy},
title = {SLM-CadCamCfd-Expert-1.5B-v2: Null-Space Projected Weight Surgery for Frontier Engineering and Dual Code Benchmarks},
year = {2026},
publisher = {Hugging Face},
howpublished = {\\url{https://huggingface.co/BRR1154/SLM-CadCamCfd-Expert-1.5B-v2}}
}