Compressing a 4GB Model

1 minute read

I compressed a model file with gzip. It was 4.8 GB uncompressed (unsure of the exact model since it’s stored as a blob, it might be the gemma image model???) and it compressed to 4.6 GB. So maybe like a 4% space decrease from compression.

I’m planning on packaging ML models into a game this year and want a public record of rough estimates of compression gains so I can come back to it.

Compressing it took like a minute so it’s easier to do this once and not waste cycles when I want to come back to this.

Maybe there’s a model compression dataset somewhere?

Happy hacking, Michael

Updated: