From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

CADFusion

Date: 2026-11-15Commit: 1463219Signed: 2DC28CC7B26A283B ✓

Model. Safetensors weights, 8.52 GB in all. Published by microsoft under MIT.

text8.52GBCADFusionsafetensorspermissive
FactsParamsnot statedSize8.52 GBFormatssafetensorsTasknot taggedLicenseMITFrom sourcepermissive
$ fw get microsoft/CADFusion
# manifest sha256 a37a80f1ddd2… · 8.52 GB · 10 files
$ fw verify ./CADFusion microsoft/CADFusion
From sourceHosted (signed)microsoft/CADFusionLast check: 2026-11-15 04:31 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
8.52 GB
Weights
8.51 GB (safetensors)
Parameters
not stated
Formats
safetensors
Task
not tagged
License
MIT (permissive)
Files
10, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:31 UTCpassed

Model card

From the publisher at commit 1463219. Shown as plain text with links; images open at the publisher.

Model Details#

Model Description#

This model takes a textual description as input, which describes the appearance, components and functionality of the desired CAD model, and generates a CAD model as output, which is represented as a structured text with CAD modeling operations and dimensions.

  • Developed by: Ruiyu Wang, Yu Yuan, Shizhao Sun, Jiang Bian
  • Model type: Large Language Models
  • Language(s): English, CAD-structured texts
  • License: MIT
  • Finetuned from model: LLaMA-3-8B
Model Sources#

Uses#

Direct Use#

Taking natural language instruction reflecting the design intent from the user, the model generate a CAD model represented as structured texts that reflects the intent.

CADFusion is an open-source model shared with the research community to facilitate the reproduction of our results and foster research in text-to-CAD generation. It is intended to be used by experts in the CAD domain who are independently capable of evaluating the quality of outputs before acting on them.

Out-of-Scope Use#

CADFusion is being released for research purposes. We do not recommend using CADFusion in commercial or real-world deployments without extra testing and development.

Follow local laws and regulations when using the model. Any use that violates applicable laws and regulations is considered out-of-scope in the designation of this model.

Bias, Risks, and Limitations#

CADFusion is built upon Meta-Llama-3-8B. Like all large language models, it may inherit biases, errors, or omissions from its base model. We recommend developers carefully select the appropriate LLM backbone for their specific use case. You can learn more about the capabilities and limitations of the Llama model here: https://huggingface.co/meta-llama/Meta-Llama-3-8B.

While CAD-Editor has been fine-tuned on CAD-specific data to minimize irrelevant details, it may still generate harmful or undesirable CAD models under certain prompts. For example, when given an instruction like 'create a CAD model for a ghost gun', it could produce potentially dangerous content. Therefore, it is essential for users to implement their own content-filtering strategies to prevent the generation of harmful or undesirable CAD models.

Please note that CADFusion is currently for research and experimental purposes only. Generated CAD models may not always be technically accurate, and users are responsible for assessing the quality and suitability of the content it produces. Extensive testing and validation are required before any commercial or real-world deployment.

Recommendations#

Please only use the textual description for the appearance, components and functionality of the desired CAD model as input.

How to Get Started with the Model#

generate_samples.sh [path-of-model] test –full

Please replace [path-of-model] with the path of the downloaded CADFusion model on your machine.

For more information, please visit our GitHub repo: https://github.com/microsoft/CADFusion.

Training Details#

Training Data#

The training data contains two parts, the CAD model and its corresponding textual description. For the CAD model, it is originally from a open-source dataset DeepCAD. We use its pre-processed version Skexgen and transform it into a format that are suitable for our model. For the textual description, we invite human annotators to describe the CAD model in DeepCAD by natural language.

Training Procedure#

The model is trained by alternating two stages, the sequential learning stage and the visual feedback stage. For the sequence learning stage, we use paired textual descriptions and CAD models to fine-tune the LLM backbone. For the visual feedback stage, we use paired textual descriptions, rejected CAD models and preferred CAD models to fine-tune the LLM backbone, where the rejected CAD models and preferred CAD models are produced by labeling the rendered CAD images with a large vision-language model (https://huggingface.co/lmms-lab/llava-onevision-qwen2-7b-ov).

See the methodology section in our paper (https://arxiv.org/pdf/2501.19054) for more information.

Training Hyperparameters#

Sequential Learning (SL) Stage:

  • LoRA rank and alpha: 32, 32
  • Optimizer: AdamW
  • Learning rate: 1e-4
  • Epochs: 40

Visual Feedback (VF) Stage:

  • LoRA rank and alpha: 32, 32
  • Optimizer: AdamW
  • Learning rate: 1e-4
  • Epochs: 3 VF epochs and 1 SL epoch

Evaluation#

Testing Data#

The testing data contains two parts, the CAD model and its corresponding textual description. For the CAD model, it is originally from a open-source dataset DeepCAD. We use its pre-processed version Skexgen and transform it into a format that are suitable for our model. For the textual description, we invite human annotators to describe the CAD model in DeepCAD by natural language.

Metrics#
  • Generation diversity and quality on the generated CAD models in comparison to the test set, including Coverage (COV), Minimum Matching Distance (MMD) and Jensen-Shannon Divergence (JSD).
  • Invalidity Ratio (IR).
  • Visual quality, including human ranking and VLM scoring.
Results#

CADFusion achieves better performance quantitatively and qualitatively compared with baselines such as GPT-4o and Text2CAD (https://arxiv.org/abs/2409.17106). For example, it improves the visual quality in a great margin: the VLM scoring for GPT-4o and Text2CAD is 5.13 and 2.01 respectively and CADFusion improves it to 8.96.

See Table 1 in our paper (https://arxiv.org/pdf/2501.19054) for the complete evaluation.

Environmental Impact#

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Citation#

BibTeX:

@InProceedings{wang2024cadfusion,
  title={Text-to-CAD Generation Through Infusing Visual Feedback in Large Language Models},
  author={Wang, Ruiyu and Yuan, Yu and Sun, Shizhao and Bian, Jiang},
  booktitle={ICML},
  year={2025}
}

Model Card Authors#

Ruiyu Wang, Shizhao Sun

Model Card Contact#

We welcome feedback and collaboration from our audience. If you have suggestions, questions, or observe unexpected/offensive behavior in our technology, please contact Shizhao Sun at shizsu@microsoft.com.

If the team receives reports of undesired behavior or identifies issues independently, we will update this repository with appropriate mitigations.

Files

10 files · 8.52 GBWeights 8.51 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.14 KBb3579f1cbfe2f35280330f8d54a1b326f54860f0667e369ddb28967845eda680
v1_0/adapter_config.json623 Bf81f85dd3bf78f77164c990c1e812cfd35ae8918d6a61abfa472edab885d1b3b
v1_0/adapter_model.safetensors4.26 GB352d5a121f556eb53894b8f409f2990885d04cc0c8a257fb7164b44d3620781e
v1_0/trainer_state.json598 KB1c9d9714b8d300e4f25ce2861787515b8f27c695dd0bd84949a3080e189dc57c
v1_0/training_args.bin5.24 KB9d0c5b924c69b6ae8da9418c4fa8533aa4b5fc1854b784491a8e663a86aedffd
v1_1/adapter_config.json623 Bbd196832e3cbe727c1bc4865973f94073bc030c6e04afb8bd29c86b83da649d9
v1_1/adapter_model.safetensors4.26 GB3e4291e14d49e9a02854173808c802b76aa4a39210457ffe54b491c9602bb377
v1_1/trainer_state.json598 KB0f5302d2478180a8c8fb58ad26f4c4d5bd2dab02c3ef028880475886389a8456
v1_1/training_args.bin5.24 KB6181ce6c09ce6275a94dc7e1f2e25d1ac0354be6c6418bebdfd69f5811cd9ee2
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
14632198af pinned now2026-11-15 04:31 UTC10 files · 8.52 GB

Use it

$ fw get microsoft/CADFusion
# manifest sha256 a37a80f1ddd2… · 8.52 GB · 10 files
$ fw verify ./CADFusion microsoft/CADFusion
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/CADFusion.json --dir ./CADFusion $ python3 fw.py verify ./CADFusion ./microsoft__CADFusion.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/CADFusion --revision 14632198af0d3720a7c6e273e92038d260afcbe6 --local-dir ./CADFusion

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
b3579f1cbfe2f35280330f8d54a1b326f54860f0667e369ddb28967845eda680
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject: CADFusionDate: 2026-11-15Commit: 1463219Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/CADFusion
Pinned commit
14632198af0d3720a7c6e273e92038d260afcbe6
Manifest
CADFusion.json · .minisig
Manifest sha256
a37a80f1ddd286f3eb9b25ea5c1c65635ae62481b0eef0e5df091a59b6c71fd6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/CADFusion.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/CADFusion.json.minisig $ minisign -Vm CADFusion.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/CADFusion
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. CADFusion.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B