jozu-ai / kitops

Tools for easing the handoff between AI/ML and App/SRE teams.
https://KitOps.ml
Apache License 2.0
214 stars 22 forks source link

Use no compression for model layers by default #298

Closed amisevsk closed 1 month ago

amisevsk commented 1 month ago

Description

This PR is adapted from the compression-opts branch. See discussion on #257 for details. This PR drops the zstd option from that branch.

This PR adds the flag --compression to kit pack, with valid options none, gzip, and gzip-fastest:

The new default behavior is none, i.e. layers are stored in tar format with no compression. In testing, this was found to be a lot faster with minimal effect on modelkit size.

In addition, the gzip-fastest option is added as testing showed that it could decrease pack time by a factor of 2-10x with minimal loss in compression ratio.

Linked issues

Closes #257