
Oa SDK
Run OA tutorials, examples, and benchmarks in Rust and Python.

Our research starts with a constraint, such as memory traffic or scheduling overhead. We build prototypes and test them on hardware to find out which changes make a difference.
Rust and Python share the native Vulkan runtime and the same Matrix, ML, Image, and Audio contracts. In the November 17 Transformer comparison across Char, Byte, and BPE, median step times are within 6%, with matching final loss and accuracy in both languages.[*]
| Tokenizer | Rust · ms/step | Python · ms/step | Python / Rust | Accuracy · Rust / Python |
|---|---|---|---|---|
| Char | 6.15 (5.65–6.24) | 5.88 (5.86–5.89) | 0.96× | 92.4% / 92.4% |
| Byte | 7.31 (7.00–7.43) | 7.71 (7.36–8.05) | 1.05× | 92.9% / 92.9% |
| BPE | 7.60 (7.40–8.20) | 7.61 (7.60–7.79) | 1.00× | 98.9% / 98.9% |
1use oa::{Runtime, matrix};23let runtime = Runtime::current()?;4let input = matrix::ones_on(&runtime, [2, 3])?;5let weights = matrix::full_on(&runtime, [4, 3], 2.0)?;6let output = matrix::matmul(&input, &weights)?;78assert_eq!(output.read_f32()?, [6.0; 8]);
One owner for device, memory, queues, kernels, scheduling, and profiling. Eager operations return typed values. Explicit submission returns an event that identifies the work’s completion. OA 0.18.0 is a public development preview. Hardware qualification and performance evidence remain scoped to each named device, driver, and workload.
Rust and Python release builds from the same 17 Nov 2026 development tree. Three fresh processes per language and tokenizer, run serially with alternating language order; median training wall ms/step, with the observed minimum and maximum in parentheses. A Python / Rust ratio of 1.00× means equal step time. Canonical Transformer: 300 steps, batch 64, sequence 16, AdamW(lr=0.01), identical corpus and seeds. Timing covers the training loop; evaluation follows training. Surface Laptop 5, Core i7-1265U, Intel Iris Xe ADL GT2, Mesa 26.2.7, Vulkan 1.4.354. No fixed clocks or thermal control; exploratory results for this device. Token vocabularies differ, so accuracy is comparable between languages within a row.