r/MachineLearning • • Sep 07 '26

Project Rustuna: A High-Performance Rust Implementation of Optuna [P]

Post image

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.

https://medium.com/optuna/announcing-rustuna-cc82a6815bf7

102 Upvotes

22 comments sorted by

View all comments

Show parent comment

4

u/chatterbox272 Sep 08 '26

10 minutes is a pretty modest example IMHO. Most of my uses of optuna would have been 1hr+ per trial. I genuinely don't get the benefit here, it feels like it's on a hype train. You trade python dependency supply chain attacks for rust ones, you get a modest speed improvement in a non-dominant performance area, and similar with memory.

2

u/RLJ05 Sep 08 '26

I have some optimisations that are under 100ms per trial so this will likely be useful