Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

CADFS Dataset

CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Models


A large-scale dataset for parametric CAD model generation from text descriptions and multi-view images. Models are represented as FeatureScript programs, enabling direct import into Onshape environment.

This dataset was used to train and evaluate CADFS-2B, a fine-tuned Qwen2-VL-2B multimodal language model for text-to-CAD and image-to-CAD generation.


Data Description

Each archive follows the ABC dataset structure: files are organized as {modality}/{chunk_id}/{model_id}.{ext}.

dataset/ β€” Processed Data

File Description
featurescript_fp.zip Full-precision processed FeatureScript programs.
featurescript_rp.zip Used in training and evaluation. Reduced-precision variant with floating-point values rounded to 2 decimal places. Produces a more compact token representation suitable for language model training. Note that rounding may break compilability for some models, while others are only compilable in reduced precision.
text_annotations.zip Natural language annotations describing the geometry, topology, and design intent of each model, obtained with GPT-OSS-120b.
step.zip STEP files with B-rep geometry. Rendered from featurescript_fp.zip where possible, or featurescript_rp.zip otherwise.

misc/ β€” Helpers

File Description
DeepCAD_train_val_test_split.json DeepCAD train/val/test split.
stage1_indices.json Models with only sketch/extrude operations used in train stage 1.
unique_models.json Subset of 382609 CADFS models selected by filtering out duplicates (similar FeatureScript or geometry).

raw/ β€” Raw Source Data

Source data used to create the processed FeatureScript representation.

File Description
featurescript_raw.zip Unprocessed FeatureScript programs.
sketch_raw.zip Sketch metadata extracted from FeatureScript feature trees.
step_abc.zip STEP files extracted from the ABC dataset, used in both training and evaluation.
stl_abc.zip STL files converted from step_abc.zip, used in both training and evaluation.
multiview_images_abc.zip Multi-view images rendered from step_abc.zip, used in both training and evaluation.

test_data/ β€” Evaluation Benchmarks

Minimal data required to perform evaluation, without the need to download the full dataset. A .json metadata file and a .zip archive are provided for each benchmark:

Benchmark Contents Description
CADFS jsonl, fs, annotations, images, step, stl 9347 models sampled from the full CADFS dataset, excluding DeepCAD train/val/test split.
DeepCAD jsonl, fs, annotations, images, step, stl 7,278 models in FeatureScript representation, subset of the 8k DeepCAD test set.
CADParser jsonl, images, step, stl 6764 models from the CADParser dataset, used in the paper as an additional evaluation set for image-conditioned reconstruction; the subset is selected by index_1 in the model name.

train_data/ β€” Training Splits

Training data is split into two stages following the two-stage fine-tuning strategy described in the paper, and two input modalities each. We filtered out duplicates and kept only samples whose input and output fit within a context size of 8192 tokens.

File Stage Modality Description
stage1_txt_train.jsonl Stage 1 Text Pre-training on text-to-FeatureScript generation
stage1_img_train.jsonl Stage 1 Image Pre-training on image-to-FeatureScript generation
stage2_txt_train.jsonl Stage 2 Text Fine-tuning with high-quality curated text pairs
stage2_img_train.jsonl Stage 2 Image Fine-tuning with high-quality curated image-program pairs

For training and evaluation we use .jsonl data format. Each .jsonl line follows the format:

Image input:

{
  "messages": [
    {
      "role": "system",
      "content": "You are CAD code generation model."
    },
    {
      "role": "user",
      "content": "<image>Generate a CAD model using FeatureScript framework..."
    },
    {
      "role": "assistant",
      "content": "FeatureScript 1511;\n..."
    }
  ],
  "images": ["path/to/0085/00858269.png"],
  "cad_file_id": "00858269"
}

Text input:

{
  "messages": [
    {
      "role": "system",
      "content": "You are CAD code generation model."
    },
    {
      "role": "user",
      "content": "Step 1 - Sketch\nCreate a new sketch on the default top plane..."
    },
    {
      "role": "assistant",
      "content": "FeatureScript 1511;\n..."
    }
  ],
  "cad_file_id": "00858269"
}

Usage

For usage examples, inference code, and FeatureScript processing pipeline, see the CADFS GitHub repository.

License

This dataset is released under CC BY 4.0.
It may be used for any purpose, including commercial, with attribution.


Citation

If you use this dataset in your research, please cite:

@InProceedings{pyatov2026cadfs,
    author    = {Pyatov, Vladislav and Bobrovskikh, Gleb and Galochkin, Saveliy and Boldyrev, Nikita and Voynov, Oleg and Filippov, Alexander and Ferrer, Gonzalo and Wonka, Peter and Burnaev, Evgeny},
    title     = {CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Models},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2026},
    pages     = {10176-10186}
}
Downloads last month
298

Models trained or fine-tuned on VladPyatov/CADFS

Paper for VladPyatov/CADFS