]> khamidou — GitHub mirrors - safetensors.git/commit
Clarify specification around endianness and header padding (#306)
authorAarni Koskela <akx@iki.fi>
Tue, 8 Aug 2023 10:04:20 +0000 (12:04 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 10:04:20 +0000 (12:04 +0200)
commit27fa03581e63f942e81859b4500f4e8ffb841301
treeb66d71e4b0e132fbde40b286a3b3b0c6291ae826
parentecb3cee6dcc7a227e0f29f0fb0546c597e66e842
Clarify specification around endianness and header padding (#306)

* Clarify that `N` is little-endian

* Clarify the header JSON structure:

* note the data must begin with a `{` byte
* note the data may be padded at the end with whitespace

* Update README.md

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
---------

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
README.md
safetensors/README.md
safetensors/src/lib.rs
safetensors/src/tensor.rs