Installation
The LatticeLabs Toolkit is a monorepo. You can install everything at once through
the conda environment, or install individual packages with pip.
Prerequisites
Section titled “Prerequisites”- Python 3.9 – 3.12
- Conda (Miniconda or Miniforge recommended)
macOS-critical: install PyTorch via conda-forge
Section titled “macOS-critical: install PyTorch via conda-forge”Full monorepo (recommended)
Section titled “Full monorepo (recommended)”# Clone the repositorygit clone https://github.com/LatticeLabsAI/ll_toolkit.gitcd ll_toolkit
# Create the conda environment (installs PyTorch, pythonocc, and all packages)conda env create -f environment.ymlconda activate cadlingThe environment installs cadling, ll_stepnet, and geotoken as editable
packages.
Individual packages
Section titled “Individual packages”Each package is independently installable with pip (run after activating the
conda environment so PyTorch is already present):
pip install -e ./cadling # CAD document processingpip install -e ./ll_stepnet # STEP/BRep neural networkspip install -e ./geotoken # Geometric tokenizerpip install -e ./ll_ocadr # Optical CAD recognitionpip install -e ./ll_gen # Generation orchestrationpip install -e ./ll_clouds # Point-cloud processingOptional dependency groups
Section titled “Optional dependency groups”The root pyproject.toml defines extras you can install on top of the base
packages:
pip install -e ".[dev]" # Testing, linting, docspip install -e ".[cad]" # CAD processing (trimesh, networkx, numpy-stl)pip install -e ".[ml]" # ML (transformers, accelerate, einops)pip install -e ".[vision]" # Vision (opencv, easyocr, matplotlib)pip install -e ".[hub]" # HuggingFace Hub integrationpip install -e ".[drawings]" # 2D drawings (DXF, PDF)pip install -e ".[all]" # EverythingNative MLX (Apple Silicon)
Section titled “Native MLX (Apple Silicon)”The neural models also train and run natively in MLX
on Apple Silicon (M-series). Each package’s mlx/ trainers convert the real PyTorch
checkpoints and verify parity, or train from scratch — see each package’s Usage page.
pip install mlx mlx-lm # in the conda env; mlx-lm is used by ll_ocadr's LLM spliceThe OCC kernel (pythonocc-core) is still required for the generation packages, since
validity is measured by executing generated programs through the real kernel.
Next steps
Section titled “Next steps”Continue to the Quickstart for a first end-to-end run, or jump to any package’s Overview from the sidebar.