Follow-up to the TRELLIS.2 backend (ai/trellis2/) and to #966 (trellis.cpp runtime flavor).
Why
Neither the Python/CUDA sidecar nor trellis.cpp (CUDA/Vulkan/ROCm, no Metal) runs TRELLIS.2 on macOS today, but Macs are a first-class QtMeshEditor platform.
Near term — trellis-mac MPS sidecar env
shivampkumar/trellis-mac (MIT) runs the full TRELLIS.2 pipeline on PyTorch MPS with Metal ports of the sparse kernels — reportedly ~5 min end-to-end on an M4 Pro 24 GB with full base-color/metallic/roughness output.
Longer term — Metal on trellis.cpp
Options being evaluated (feasibility research in progress; results to be attached here):
- Run trellis.cpp's Vulkan backend via MoltenVK — cheapest if their shaders avoid MoltenVK-unsupported features (e.g. cooperative matrix).
- Enable GGML's Metal backend for the dense ops and let custom sparse ops fall back to CPU via
ggml_backend_sched — hybrid, incremental.
- Full Metal kernels for the sparse ops, potentially adapting trellis-mac's MIT Metal sparse-conv work — most effort, best result; would be contributed upstream to pwilkin/trellis.cpp.
🤖 Generated with Claude Code
Follow-up to the TRELLIS.2 backend (
ai/trellis2/) and to #966 (trellis.cpp runtime flavor).Why
Neither the Python/CUDA sidecar nor trellis.cpp (CUDA/Vulkan/ROCm, no Metal) runs TRELLIS.2 on macOS today, but Macs are a first-class QtMeshEditor platform.
Near term — trellis-mac MPS sidecar env
shivampkumar/trellis-mac (MIT) runs the full TRELLIS.2 pipeline on PyTorch MPS with Metal ports of the sparse kernels — reportedly ~5 min end-to-end on an M4 Pro 24 GB with full base-color/metallic/roughness output.
ai/trellis2/install.pywith a macOS flavor that provisions the trellis-mac fork (pin a revision; apply the sameo_voxel.__init__lazy-postprocess patch if applicable) — the existinggenerate.py/QTM3D contract should carry over nearly unchanged (inference only; QtMeshEditor keeps the native bake).keepAlphamatte. Re-audit trellis-mac's diffs indocs/trellis2-dependencies.md.Longer term — Metal on trellis.cpp
Options being evaluated (feasibility research in progress; results to be attached here):
ggml_backend_sched— hybrid, incremental.🤖 Generated with Claude Code