Zimeng Xiong's Weblog

About

10 posts from 2025

Porting Hunyuan3D-2 Texture Generation to MPS

This post documents the process of porting Tencent's Hunyuan3D-2 texture generation pipeline from CUDA to Apple Silicon's Metal Performance Shaders (MPS). The work involved debugging stochastic scheduler behavior, implementing Metal compute kernels for custom rasterization, and integrating with PyTorch's MPS backend.

[... 5,073 words]

Porting Meta SAM-3D to Apple Silicon: Custom Metal Kernels and Memory Magic

Tl;DR This post documents the process of porting Meta's SAM-3D Objects (a 12GB foundation model for single-image 3D reconstruction) from CUDA/Linux to Apple Silicon macOS. The work involved rebuilding sparse convolution backends, implementing custom Metal compute shaders, and engineering a sequential model loading strategy that reduced peak memory from 61GB to 17GB.

[... 2,804 words]

Excalidash, a whiteboard organizer

The robot was done, the mechanisms were functioning smoothly, and our next match wasn't for another hour. I sat in the pit, laptop open, refining our engineering notebook and staring at yet another Excalidraw tab with a drawing I'd probably never see again.

[... 5,086 words]

Unifying my computing

Every day I shuffle between a 15" MacBook Air for school, a Linux workstation at my desk, and a 5080 server for anything that might make my laptop break a sweat.

[... 660 words]

Markdown Editors Suck at Handling Files

What has stopped me from using ANY mainstream markdown editors for my blog is because they SUCK at handling images and renaming. They typically fall into a few categories:

[... 1,102 words]

LeetGPU: CUDA Matrix Multiplication

Matrix Multiplication

[... 424 words]

Notes: CUDA Vector Addition

Vector Addition

[... 332 words]

picoCTF2025: Virtual Machine 1

View solve on github

[... 2,033 words]

Solving picoMini by CMU-Africa

A friend recommended picoCTF to me. I had played similar games like banditOverTheWire before, so I thought it would be pretty fun to try out.

[... 4,734 words]

The Macbook Air throttles a lot

Without a fan and with summer slowly ramping up, I often find my M2 MacBook Air 15" heating up and becoming hot to the touch while building Xcode projects or running CAD software. I wanted to measure its actual performance impact and see how effective a simple solution would be.

[... 2,114 words]

Archive by year

002353 visitors