Softwr

Cloud · head to head

Optuna vs Packer

Optuna logo

Optuna

Cloud

Open-source Python framework for automated hyperparameter optimisation

From
Free
Free plan
Yes
Packer logo

Packer

Cloud

Build automated machine images

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 Packer lists image building.
  • Where Optuna falls short: searches are only as good as the objective and search space defined.
  • Where Packer falls short: Packer 1.10.0 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence.

How do Optuna and Packer differ?

Optuna and Packer differ on platforms. Only the attributes on which Optuna and Packer actually diverge.

Attributes where Optuna and Packer differ
AttributeOptunaPacker
PlatformsWebLinux, Windows, macOS

Identical on both: starting price (Free), pricing model (Open-source), 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 20 only for Packer. 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 Packer

  • Image building
  • Multi-platform support
  • Provisioners
  • Builders
  • Post-processors
  • Variables
  • Data sources
  • Validation

What is each one used for?

Optuna is most often brought in for tuning deep learning models; Packer for building identical machine images for multiple clouds from one template. The jobs each tool is most often brought in to do.

Optuna

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

Packer

  • Building identical machine images for multiple clouds from one templatenot Optuna
  • Baking golden AMIs and VM images into a CI pipelinenot Optuna
  • Creating immutable infrastructure artifacts consumed by Terraformnot Optuna

Where do Optuna and Packer fall short?

Optuna's most cited limit: searches are only as good as the objective and search space defined. 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

Packer

  • Packer 1.10.0 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence
  • The Additional Use Grant forbids offering Packer to third parties on a hosted or embedded basis in a paid product that competes with IBM's paid versions of Packer
  • Each version converts to the MPL 2.0 Change License only four years after that version is first published, and the Change Date is set separately per version
  • Alternative licensing for uses outside the grant must be arranged with the licensor rather than taken under the public licence

How much do Optuna and Packer cost?

Optuna is free to use; Packer 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.

Packer

Free
  • Open SourceFree
    • Multi-platform image building
    • Template-driven
    • Provisioner support

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 Packer if

  • You need image building.
  • You want to start without paying.
  • You work on Linux, Windows, macOS.
  • You also want multi-platform support.

Questions people ask

Is Optuna or Packer better?
It depends on the job. Optuna fits tuning deep learning models; Packer fits building identical machine images for multiple clouds from one template. Optuna starts at Free and Packer at Free.
Which is cheaper, Optuna or Packer?
Optuna starts at Free and Packer at Free.
Does Optuna or Packer run on more platforms?
Optuna runs on Web. Packer runs on Linux, Windows, macOS.
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 Packer is typically brought in for.
What can Optuna do that Packer cannot?
Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations. Packer covers Image building, Multi-platform support, Provisioners, Builders.

Answered from the vendors’ own pages

Optuna: What licence does Optuna use?

The MIT License.

Source
Packer: How much does HashiCorp Packer cost?

Packer does not publish specific pricing on its website. The open-source Packer tool is free, while HCP Packer (HashiCorp's cloud-hosted version) offers a free trial, but detailed pricing requires contacting HashiCorp.

Source
Optuna: Who develops Optuna?

Preferred Networks, which first introduced it in 2018.

Source
Optuna: What Python version is needed?

Python 3.10 or newer.

Source
Share

Related pages

Other head to heads