# Run TRELLIS.2 Image-to-3D generation natively on Apple Sili…

I ported Microsoft's TRELLIS.2 (4B parameter image-to-3D model) to run on Apple Silicon via PyTorch MPS. The original requires CUDA with flash_attn, nvdiffrast, and custom sparse convolution kernels: none of which work on Mac. I replaced the CUDA-specific ops with pure-PyTorch alternatives: a gathe…

- **Page:** https://magpie.gallery/i/run-trellis-2-image-to-3d-generation-natively-on-a-2et8
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** macos
- **Tags:** 3d-generation, apple-silicon, image-to-3d, pytorch

## Source

Web · shivampkumar: Run TRELLIS.2 Image-to-3D generation natively on Apple Silicon

- **Original:** https://news.ycombinator.com/item?id=47828896

> I ported Microsoft's TRELLIS.2 (4B parameter image-to-3D model) to run on Apple Silicon via PyTorch MPS. The original requires CUDA with flash_attn, nvdiffrast, and custom sparse convolution kernels: none of which work on Mac. I replaced the CUDA-specific ops with pure-PyTorch alternatives: a gather-scatter sparse 3D convolution, SDPA attention for sparse transformers, and a Python-based mesh extraction replacing CUDA hashmap operations. Total changes are a few hundred lines across 9 files. Generates ~400K vertex meshes from single photos in about 3.5 minutes on M4 Pro (24GB). Not as fast as H100 (where it takes seconds), but it works offline with no cloud dependency. https://github.com/shivampkumar/trellis-mac https://github.com/shivampkumar/trellis-mac

## GitHub projects

- https://github.com/shivampkumar/trellis-mac

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
