logoalt Hacker News

We accidentally built an LLVM compiler for Jax

15 pointsby infinitewalklast Thursday at 11:46 PM7 commentsview on HN

Comments

ndesaulnierstoday at 1:41 AM

Neat. XLA predates MLIR. Interesting stories there. You'd have to stop by the Bay Area LLVM monthly meetup to hear them. :-X

> So if XLA already uses LLVM, why is our approach different?

Uses MLIR, XLA does not.

> So… what is the point?

> Honestly? We aren’t entirely sure yet.

> Let me be perfectly clear: this is not going to beat XLA for standard deep learning workloads. XLA has years of hyper-specific optimizations for linear algebra on GPUs and TPUs. If you are training a massive transformer, stick to standard JAX.

> But what we do think is cool is what happens when you connect JAX directly to the broader LLVM ecosystem and drop the heavy XLA runtime. (Plus, no need to build XLA using Bazel either! You’re welcome.)

show 3 replies