AI
LLMs Can Now Generate CAD Models from Plain English Text
Researchers fine-tune large language models to convert natural language descriptions directly into executable CAD code, eliminating the need for specialized command formats.
A research team has developed a system that transforms written descriptions into functional 3D computer-aided design (CAD) models using large language models. Rather than relying on task-specific command sequences, the approach generates CadQuery—a Python-based CAD scripting language—directly from plain English, making the output both human-readable and immediately usable in professional design workflows.
The Problem with Current Approaches#
Traditional generative CAD systems produce custom token formats that pretrained language models have never encountered. This requires specialized conversion code tailored to each dataset to turn model outputs into actual 3D geometry. Most existing methods also demand training dedicated models from scratch for each new application, limiting scalability and practical adoption.
How the New System Works#
The researchers expanded an existing dataset with 170,000 CadQuery annotations, creating these translations through deterministic conversion and validating each result against source CAD files for geometric accuracy. They then fine-tuned four different sizes of Qwen2.5 models (ranging from 0.5B to 7B parameters) using identical training settings.
The key advantage: generating CadQuery produces code that can be edited by humans, debugged, and exported to industry-standard STEP format without any dataset-specific workarounds.
Performance Gains#
Compared to the previous Text2CAD baseline, the best model achieved dramatic improvements:
- F1 score: jumped from 0.34 to 0.69
- Volumetric IoU: climbed from 0.38 to 0.74
- Vision-language validation: 65.4% of outputs matched reference designs, up from 28.0%
Notably, performance consistently improved across all model sizes, suggesting the approach scales reliably. When tested against an equivalent command-sequence baseline using the same underlying model, CadQuery matched shape accuracy while proving slightly superior at absolute dimension precision and transferring better to unseen design benchmarks.

