Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hermetic / Non Hermetic Packages in Python

While going through PyTorch documentation, I came across the term hermetic packages:

torch.package adds support for creating hermetic packages containing arbitrary PyTorch code. These packages can be saved, shared, used to load and execute models at a later date or on a different machine, and can even be deployed to production using torch::deploy.

I don't understand what hermetic packages mean in this context.

  • Can someone explain what makes packages hermetic?
  • What would non-hermetic packages look like?

With some search over Stack Overflow [1][2], it seems this terminology is a generic term used in software world. Any examples - even outside of PyTorch/Python world - would help in solidifing my understanding.

Thank you!


[1] Creating Hermetic Maven Builds [2] Bazel: hermetic use of jar command?

like image 475
outlier229 Avatar asked Jul 09 '21 19:07

outlier229


People also ask

What is the difference between hermetic and non hermetic packaging?

In the packaging of passive and active devices two methods can be used, hermetic and non-hermetic or plastic. Hermetic packaged devices are, as the name states hermetically sealed. Plastic packaged devices are not hermetically sealed but are suitable for many operating environments. Hermetic packaging is expensive.

What is near hermetic packaging?

When the term “near hermetic” package or “non-hermetic” packaging is used it implies the package is made from polymeric materials as opposed to glasses, metals and ceramics. LCP (Liquid Crystal Polymer), PEEK (Polyetheretherketone), Parylene-C coatings come to mind when thinking of “near hermetic” packaging material sets.

What is the non-hermetic package/assembly qualification?

The non-hermetic package/assembly qualification is outlined in the following table. However, for hermetic package qualification, a full group B and D test per MIL-STD-883, Test Methods, is required. Table 1. Non-H... Non-Hermetic and Hermetic Packages Non-Hermetic and Hermetic Packages Device Reliability Report Second Half 2021 (UG116) Document ID

What are near-hermetic and non-heretic packages?

Cavity packages made from polymers (e.g. LCP) or molded/potted microelectronics are known in the industry as “near-hermetic” or “non- hermetic”. These two similar terms are used interchangeably in this document.


Video Answer


1 Answers

In the context, hermatic is used to mean that the already preinstalled libraries and configuration of your machine you are running on (macos laptop, to windows desktop, etc.) will be able to build Pytorch and its depedancies in an identical way.

The following link has a section on hermatic builds: https://www.google.com/search?q=what+is+hermatic+mean+in+software&oq=what+is+hermatic+mean+in+software&aqs=chrome..69i57j33l3.7998j0j7&sourceid=chrome&ie=UTF-8

"Our builds are hermetic, meaning that they are insensitive to the libraries and other software installed on the build machine. Instead, builds depend on known versions of build tools, such as compilers, and dependencies, such as libraries. The build process is self-contained and must not rely on services that are external to the build environment."

This is also a good link to refer to: https://news.ycombinator.com/item?id=19610869

Sarthak Jain

like image 114
SarthakJain Avatar answered Oct 21 '22 00:10

SarthakJain