Instructions to use astrodingra/brepline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use astrodingra/brepline with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B") model = PeftModel.from_pretrained(base_model, "astrodingra/brepline") - Transformers
How to use astrodingra/brepline with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("astrodingra/brepline", device_map="auto") - Notebooks
- Google Colab
- Kaggle
BREPLINE v1.0.1
A Large Mechanical Model (LMM) for Parametric 3D CAD Generation
Describe a part. Get CAD you can actually machine.
BREPLINE is a domain-specific artificial intelligence system designed for mechanical engineering, computational design, and parametric 3D CAD generation.
It translates natural-language engineering requirements into executable CAD code for generating mechanical components, parametric solid geometries, and complex engineering assemblies.
The complete BREPLINE framework has a reported system scale of 10.9B+ parameters.
Key Features
- Natural-language to parametric 3D CAD generation.
- Mechanical component and assembly generation.
- Multi-agent engineering reasoning.
- Semantic retrieval and automated CAD code repair.
- Boundary Representation (B-Rep) solid geometry.
- STEP and STL export with SolidWorks interoperability.
- Material-aware mass and center-of-gravity estimation.
- Experimental structural and automobile crash simulations.
- Interactive 3D visualization and developer API access.
CAD execution, visualization, simulations, and file exports are provided by the complete BREPLINE framework rather than the standalone model adapter.
Model Architecture
BREPLINE employs a multi-agent architecture orchestrated through LangGraph, integrating engineering intent analysis, Bill of Materials decomposition, semantic vector retrieval, parametric modification, atomic CAD code generation, sandbox execution, and physics-based auditing.
The framework uses an 85% semantic similarity threshold for design retrieval and supports up to three automated code repair attempts.
Training & Evaluation
The model was fine-tuned using Supervised Fine-Tuning (SFT) and Low-Rank Adaptation (LoRA) on the IUCAA Pegasus High-Performance Computing Cluster.
| Parameter | Value |
|---|---|
| Base Model | Qwen2.5-Coder-7B |
| Fine-tuning Method | LoRA / SFT |
| Training Epochs | 2 |
| Training Steps | 1,326 |
| Processed Tokens | 52.28 Million |
| Training Duration | 7h 11m |
| Training Loss | 0.110506 |
| Validation Loss | 0.139666 |
| Mean Token Accuracy | 95.86% |
The reported metrics were recorded during fine-tuning. Token-level accuracy does not directly represent geometric correctness or engineering reliability.
Applications
- Computer-aided design and manufacturing.
- Mechanical engineering and rapid prototyping.
- Computational geometry and parametric modeling.
- Automobile design and preliminary simulations.
- Engineering education and scientific research.
- AI-assisted industrial design automation.
Authors & Affiliation
BREPLINE was developed by Jashanpreet Singh Dingra, Tegkirat Kaur, and Divleen Kaur.
The project is associated with Guru Nanak Dev University, Amritsar, and Thapar Institute of Engineering and Technology, Patiala, India.
The authors gratefully acknowledge the Inter-University Centre for Astronomy and Astrophysics (IUCAA), Pune, for providing access to the Pegasus High-Performance Computing Cluster under the guidance of Dr. Hum Chand.
Limitations
BREPLINE is an experimental research model. Generated engineering designs, dimensions, material properties, and simulation results require independent verification before manufacturing or safety-critical applications.
The model is not a substitute for certified engineering analysis or validated finite element simulations.
Citation
If you use BREPLINE in your research, engineering experiments, or downstream applications, please cite the following software reference.
BibTeX
@misc{brepline2026,
title = {{BREPLINE}: A Large Mechanical Model for
Parametric 3D CAD Generation},
author = {Dingra, Jashanpreet Singh and Kaur, Tegkirat
and Kaur, Divleen},
year = {2026},
version = {1.0.1},
url = {https://brepline.vercel.app},
note = {Experimental research software, not peer-reviewed}
}
APA
Dingra, J. S., Kaur, T., & Kaur, D. (2026). BREPLINE: A Large Mechanical Model for Parametric 3D CAD Generation (Version 1.0.1) [Computer software]. https://brepline.vercel.app
Availability & Contact
- Website: https://brepline.vercel.app
- Email: astrodingra@gmail.com
- Computing Infrastructure: IUCAA HPC
Framework Versions
- PEFT 0.17.1
BREPLINE β Engineering through Intelligence.
- Downloads last month
- 40