← ALL TAGS

Tag: gpu-programming

Engineering

Porting TRELLIS.2 From Python to Rust and Metal: 2D Sprites to 3D Models in One Command

I moved Microsoft's 4-billion-parameter image-to-3D pipeline off PyTorch and onto our Rust and Metal runtime. One command now turns a 2D sprite into a textured GLB in one to three minutes with about 6 GB of memory instead of 33. This is how the port was organised, the three bugs worth retelling, the sparse-convolution kernel that decided it, and what parity means when the sampler is chaotic.

October 5, 2026 12 min read
Read Story →
Engineering

Porting ERNIE-Image-Turbo to Zig and Metal: An 8B Diffusion Transformer From Scratch on Apple Silicon

I rewrote the hot path of Baidu's 8B-parameter ERNIE-Image-Turbo (DiT + scheduler) from scratch in Zig with hand-written Metal kernels. 13.06s/step at 1024×1024 on M2 Max. The bug archaeology behind getting 36 layers numerically correct, plus the honest accounting of what still has Python in it.

April 23, 2026 18 min read
Read Story →