Softwr

Databases · head to head

Optuna vs Valkey

Optuna logo

Optuna

Databases

Open-source Python framework for automated hyperparameter optimisation

From
Free
Free plan
Yes
Valkey logo

Valkey

Databases

Open-source in-memory data store forked from Redis

From
Free
Free plan
Yes

The short version

  • Optuna is an MIT-licensed hyperparameter optimisation framework.
  • Both are free.
  • Only Optuna lists define-by-run search spaces; only Valkey lists BSD licensed.
  • Where Optuna falls short: searches are only as good as the objective and search space defined.
  • Where Valkey falls short: younger project, so its track record is short even though the codebase is not.

How do Optuna and Valkey differ?

Optuna and Valkey differ on pricing model and platforms. Only the attributes on which Optuna and Valkey actually diverge.

Attributes where Optuna and Valkey differ
AttributeOptunaValkey
Pricing modelOpen-sourceOpen source, no licence fee; managed cloud billed separately
PlatformsWebLinux, macOS, Self-hosted

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Optuna, founded for Optuna.

Which features does each one have?

They share no listed features; 7 appear only for Optuna and 4 only for Valkey. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Optuna

  • Define-by-run search spaces
  • Pruning of unpromising trials
  • Parallel and distributed search
  • Framework-agnostic integrations
  • Optuna Dashboard
  • OptunaHub feature sharing
  • Multiple search algorithms

Only in Valkey

  • Redis-compatible
  • BSD licensed
  • Rich data structures
  • Replication and persistence

What is each one used for?

Optuna is most often brought in for tuning deep learning models; Valkey for migrating from Redis without rewriting application code. The jobs each tool is most often brought in to do.

Optuna

  • Tuning deep learning modelsnot Valkey
  • Tuning gradient-boosted treesnot Valkey
  • Pruning slow experiments earlynot Valkey
  • Parallel searches across machinesnot Valkey

Valkey

  • Continuing on a permissively licensed in-memory store after the Redis licence changenot Optuna
  • Caching and session storage where a foundation-governed project is a procurement requirementnot Optuna
  • Migrating from Redis without rewriting application codenot Optuna

Where do Optuna and Valkey fall short?

Optuna's most cited limit: searches are only as good as the objective and search space defined. Valkey's: younger project, so its track record is short even though the codebase is not. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Optuna

  • Searches are only as good as the objective and search space defined
  • Distributed runs need a shared storage backend set up by the user
  • Works only with Python code, so non-Python teams cannot use it
  • Tuning only; no experiment tracking or deployment features

Valkey

  • Younger project, so its track record is short even though the codebase is not
  • Divergence from Redis grows over time, so compatibility is strongest near the fork point and weakens as both evolve
  • Ecosystem tooling and documentation still frequently assume Redis, leaving translation work

How much do Optuna and Valkey cost?

Optuna is free to use; Valkey is free to use. Plan by plan below, from each vendor's own pricing page.

Optuna

Free

No published plan breakdown. See the Optuna review.

Valkey

Free
  • ValkeyFree
    • Full functionality
    • Self-hosted
    • No usage limits

Which should you pick?

Choose Optuna if

  • You need define-by-run search spaces.
  • You want to start without paying.
  • You also want pruning of unpromising trials.

Choose Valkey if

  • You need redis-compatible.
  • You want to start without paying.
  • You work on Linux, macOS, Self-hosted.
  • You also want bsd licensed.

Questions people ask

Is Optuna or Valkey better?
It depends on the job. Optuna fits tuning deep learning models; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. Optuna starts at Free and Valkey at Free.
Which is cheaper, Optuna or Valkey?
Optuna starts at Free and Valkey at Free.
Does Optuna or Valkey run on more platforms?
Optuna runs on Web. Valkey runs on Linux, macOS, Self-hosted.
Can I use Optuna for free?
Both have a free tier, so you can try either at no cost before committing.
What is Optuna best used for?
Optuna is most often used for tuning deep learning models, tuning gradient-boosted trees, pruning slow experiments early, parallel searches across machines. Of those, tuning deep learning models and tuning gradient-boosted trees are not what Valkey is typically brought in for.
What can Optuna do that Valkey cannot?
Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.

Answered from the vendors’ own pages

Optuna: What licence does Optuna use?

The MIT License.

Source
Valkey: Is Valkey free?

Yes, BSD-licensed open source under the Linux Foundation.

Optuna: Who develops Optuna?

Preferred Networks, which first introduced it in 2018.

Source
Valkey: Why does Valkey exist?

Redis changed its licence away from BSD in 2024. Valkey is the community fork continuing under permissive terms, backed by AWS, Google Cloud and Oracle among others.

Optuna: What Python version is needed?

Python 3.10 or newer.

Source
Valkey: Can I switch from Redis to Valkey?

At the fork point it is drop-in compatible with existing clients and data. The further both projects move from that point, the more you should verify the specific features you use.

Share

Related pages

Other head to heads