Onnx/WebGPU Support#
This section is a process guide for the MLX -> Graph IR -> ONNX -> WebGPU path in MLX Ruby.
If you want API-by-API reference details, see Export Functions.
Architecture boundary (post-refactor)#
Use MLX::ONNX.* methods as the public API. The implementation is split across:
MLX::ONNXMLX::ONNX::NativeMLX::ONNX::WebGPUHarness
The ONNX lowering core now lives in the separate mlx-onnx repository and is
consumed here via submodules/mlx-onnx.
Pipeline stages#
Capture MLX execution as Graph IR.
Convert Graph IR to ONNX (JSON stub and/or binary model).
Run optional compatibility diagnostics (native report).
Package browser harness assets.
Run smoke validation in Node/browser runtime.
Pages in this section: