Insecurity and Python pickles
Insecurity and Python pickles
Posted Mar 13, 2024 19:39 UTC (Wed) by rav (guest, #89256)Parent article: Insecurity and Python pickles
> Safetensors files use a JSON header to describe the contained data: the shape of each layer of the model, the numeric format used for the weights, etc. After the header, a safetensors file includes a flat byte-buffer containing the packed weights.
Such a simple format - exactly how it should be. Maybe I'm a bit biased, because I came up with the same idea independently (and in another context - astrophysics rather than ML), although a multi-file format where it sounds like safetensors is a single-file format. https://github.com/Mortal/bintable/blob/main/bintable.py