Nx ecosystem 0.13 library updates

We have released v0.13 of nx, exla and torchx, along with a recently released emlx v0.4.

Nx

This is where the bulk of the updates happened!

hooks and tokens are now soft-deprecated (hard-deprecated in nx main). We have introduced `Nx.io_call` as a “side-effect only” sister function to `Nx.runtime_call`, both of which allow inlining generic Elixir code. API for Nx.io_call is generally very similar to hooks+tokens, but requires less plumbing under the hood for compilers.

Nx (along EXLA and Torchx as examples) now includes a backend documentation standardization guide, which helps library users to find specific quirks of functions in each backend. See EXLA’s docs for an example.

Full changelogs in the Github repo:

https://github.com/elixir-nx/nx/blob/main/nx/CHANGELOG.md

https://github.com/elixir-nx/nx/blob/main/exla/CHANGELOG.md

https://github.com/elixir-nx/nx/blob/main/torchx/CHANGELOG.md

EMLX

v0.4 introduces a native compiler with massive performance improvements!
The new compiled mode supports all of the Nx API surface (including defn while loops), and current main branch now also introduces a plugin system which will be released very soon in v0.5.

For example, on my machine Qwen3 0.6B-4bit executes on speeds similar to what ollama provides, which is a great indicator of performance.

https://github.com/elixir-nx/emlx/releases/tag/v0.4.0

4 Likes