Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to Build an ML Framework in Rust, from Scratch, in a Weekend (erikkaum.com)
2 points by erikkaum 40 days ago | hide | past | favorite | 1 comment


I've been interested in ZML for a long time: how does it work, what makes it good? To understand the stack properly, so I built a minimal version of ZML in Rust. And wrote a blog about it. It's essentially a trace-based tensor compiler for Rust. Build computation graphs with a familiar tensor API, lower them to StableHLO MLIR, and execute through PJRT on CPU.

It even runs SmolLM2 on CPU, 5 tok/s.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: