]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Format "Format" better for GitHub markdown flavor (#43)
authorJulien Chaumond <julien@huggingface.co>
Mon, 31 Oct 2022 11:04:24 +0000 (12:04 +0100)
committerGitHub <noreply@github.com>
Mon, 31 Oct 2022 11:04:24 +0000 (12:04 +0100)
* Format "Format" better for GitHub markdown flavor

* Format needs to change the rustdoc.

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

index edde30aedc9c80dee95a9ab1aa4e72d646cc1aba..7a7b2ea027866653b54a66967743f690a6d75f9e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -7,11 +7,11 @@ safely (as opposed to pickle) and that is still fast (zero-copy).
 
 ### Format
 
-8 bytes: `N`, a u64 int, containing the size of the header
-N bytes: a JSON utf-8 string representing the header.
+- 8 bytes: `N`, a u64 int, containing the size of the header
+- N bytes: a JSON utf-8 string representing the header.
         The header is a dict like {"TENSOR_NAME": {"dtype": "float16", "shape": [1, 16, 256], "offsets": (X, Y)}}, where X and Y are the offsets in the byte buffer of the tensor data
         A special key `__metadata__` is allowed to contain free form text map.
-Rest of the file: byte-buffer.
+- Rest of the file: byte-buffer.
 
 
 ### Yet another format ?
index edde30aedc9c80dee95a9ab1aa4e72d646cc1aba..7a7b2ea027866653b54a66967743f690a6d75f9e 100644 (file)
@@ -7,11 +7,11 @@ safely (as opposed to pickle) and that is still fast (zero-copy).
 
 ### Format
 
-8 bytes: `N`, a u64 int, containing the size of the header
-N bytes: a JSON utf-8 string representing the header.
+- 8 bytes: `N`, a u64 int, containing the size of the header
+- N bytes: a JSON utf-8 string representing the header.
         The header is a dict like {"TENSOR_NAME": {"dtype": "float16", "shape": [1, 16, 256], "offsets": (X, Y)}}, where X and Y are the offsets in the byte buffer of the tensor data
         A special key `__metadata__` is allowed to contain free form text map.
-Rest of the file: byte-buffer.
+- Rest of the file: byte-buffer.
 
 
 ### Yet another format ?
index 0ce6c2d05f97c2022b8d73ef2b6d689c718a27a7..0d661ee8fe9bca78fd1fd69290e8f6b41aa5afcf 100644 (file)
@@ -6,11 +6,11 @@
 //!
 //!## Format
 //!
-//!8 bytes: `N`, a u64 int, containing the size of the header
-//!N bytes: a JSON utf-8 string representing the header.
+//! - 8 bytes: `N`, a u64 int, containing the size of the header
+//! - N bytes: a JSON utf-8 string representing the header.
 //!         The header is a dict like {"TENSOR_NAME": {"dtype": "float16", "shape": [1, 16, 256], "offsets": (X, Y)}}, where X and Y are the offsets in the byte buffer of the tensor data
 //!         A special key `__metadata__` is allowed to contain free form text map.
-//!Rest of the file: byte-buffer.
+//! - Rest of the file: byte-buffer.
 //!
 //!
 //!## Yet another format ?