]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Update README.md (#170)
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 30 Jan 2023 13:00:51 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 13:00:51 +0000 (14:00 +0100)
Fixes #169 169

README.md

index f545dfd37a4550ba6f91bc266488e9cbe43e9734..7d7725a6469eb5b6bef4f00a122797e85e38cb1b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -107,7 +107,7 @@ necessary)? This is becoming increasingly important in the ML world.
 ### Notes
 
 - Zero-copy: No format is really zero-copy in ML, it needs to go from disk to RAM/GPU RAM (that takes time). Also
-   In PyTorch/numpy, you need a mutable buffer, and we don't really want to mutate a mmaped file, so 1 copy is really necessary to use the thing freely in user code. That being said, zero-copy is achievable in Rust if it's wanted and safety can be guaranteed by some other means.
+   In PyTorch/numpy, you need a mutable buffer, and we don't really want to mutate a mmaped file, so 1 copy will be necessary if you modify an array (copy-on-write). That being said, zero-copy is achievable in Rust if it's wanted and safety can be guaranteed by some other means.
    SafeTensors is not zero-copy for the header. The choice of JSON is pretty arbitrary, but since deserialization is <<< of the time required to load the actual tensor data and is readable I went that way, (also space is <<< to the tensor data).
 
 - Endianness: Little-endian. This can be modified later, but it feels really unecessary at the