jon.recoil.org

onnxrt

OCaml bindings to ONNX Runtime Web for browser-based ML inference via js_of_ocaml.

Supports WebAssembly (CPU) and WebGPU (GPU) execution providers, typed tensors, and session management. Models are loaded from .onnx files and run asynchronously using Lwt.

Examples

API

The main entry points are: