r/MachineLearning • u/c-bata • Sep 07 '26
Project Rustuna: A High-Performance Rust Implementation of Optuna [P]
Hi everyone! We just released Rustuna (GitHub: https://github.com/optuna/rustuna/ ), a high-speed, memory-efficient implementation of Optuna built in Rust.
- Optuna-Compatible Design: Keeps the familiar API and concept of Optuna.
- Zero Python Dependencies: Mitigating the risk of supply chain attacks.
- Lower Memory Footprint: Optimized memory management natively in Rust.
For details, please check out the following blog post.
102
Upvotes
49
u/Similar_Fix7222 Sep 07 '26
From the few times I have used Optuna, the wall clock time is dominated by running the algorithm, not Optuna itself. Am I correct in understanding that if each trial lasts 10 minutes, the gain will be negligible?
4
u/RLJ05 Sep 07 '26
This is very cool! I use Optuna in my pipelines (quant trading), ill try this out!
2
u/MrMrsPotts Sep 07 '26
Which version of python does it require?
2
u/Ulfgardleo Sep 08 '26
Good work.
which version of the CMA-ES is this? Parameter settings, active updates, mirrored sampling?
2
u/endor_sarah Sep 08 '26
This is really cool! Any plans to port the integration helpers, like the XGBoost pruning callback, or is the focus staying on the core samplers for now?
7
u/seg_lol Sep 07 '26
https://en.wikipedia.org/wiki/Optuna
https://optuna.org/
2
u/relevantmeemayhere Sep 08 '26
just cut the middle man out and go full bayesian ;).
all joking aside, this looks pretty rad.