Production-grade machine learning optimization library with 22 optimizers (SGD→K-FAC), SIMD 2–4×, parallel 4–8×, GPU 10–50× acceleration. 251K+ SLoC, 7 crates, 1,220+ tests. Full extension of SciRS2-Core — no external deps allowed. The sovereign optimizer layer for SciRS2 and the entire COOLJAPAN ecosystem (now 21M SLoC total).
The machine learning optimization foundation of the COOLJAPAN ecosystem just reached full production readiness.
Today we released OptiRS 0.3.0 — a comprehensive, production-grade pure Rust optimization library built exclusively as an extension of SciRS2-Core.
No Python. No PyTorch optimizers. No external crates.
No direct ndarray/rand usage (forbidden by design).
Just clean, memory-safe, hardware-accelerated optimizers that compile to a single static binary (or WASM) and run everywhere — from laptops to browsers to edge GPUs to cloud clusters.
For years, ML training meant depending on Python frameworks (PyTorch, TensorFlow) or fragile C++/CUDA optimizers.
These tools are powerful but suffer from:
OptiRS 0.3.0 ends all of that.
It delivers massive speedups while staying 100% within the SciRS2 ecosystem.
Notable results:
OptiRS was deliberately separated from SciRS2 to enable focused development, independent releases, and specialized hardware acceleration — while requiring full use of scirs2-core for every operation.
The architecture is clean and layered:
Core Optimizers (optirs-core)
22 production-ready optimizers:
Learning Rate & Analysis Tools
7 schedulers (CosineAnnealing, OneCycleLR, etc.) + Gradient Flow & Loss Landscape analysis.
Hardware Acceleration
scirs2_core::simd_opsscirs2_core::gpu (multi-backend)Advanced Modules (alpha → stable in 0.3.0)
optirs-learned (Transformer/LSTM meta-optimizers), optirs-nas (evolutionary/RL/DARTS), optirs-bench (Criterion.rs statistical benchmarking).
Key Rust advantages:
no_std + alloc readinessoptirs-coreOptiRS is now the official optimization backend for the entire COOLJAPAN scientific and ML stack (total ecosystem: 21M SLoC Rust, 597 crates, 40+ production-grade libraries):
Repository: https://github.com/cool-japan/optirs
Star the repo if you want production-grade ML optimization without Python or external dependencies.
The era of “just use torch.optim” with all its overhead is over.
Pure Rust ML optimization — fully integrated with SciRS2 — is here, fast, safe, and sovereign.
— KitaSan at COOLJAPAN OÜ March 18, 2026