]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Necessary modifications to publish on Rust. (#129)
authorNicolas Patry <patry.nicolas@protonmail.com>
Tue, 13 Dec 2022 15:14:56 +0000 (16:14 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Dec 2022 15:14:56 +0000 (16:14 +0100)
* Adding Info to publish.

* Bench.

* Update README.

README.md
safetensors/Cargo.toml
safetensors/README.md

index 1c0e3ddbc0283159e389efc2440027d437c33fea..ccdc4d8fec4c2e081e64f54fc0405294677ea435 100644 (file)
--- a/README.md
+++ b/README.md
@@ -138,3 +138,5 @@ to load the model on 8 GPUs from 10mn with regular PyToch weights down to 45s.
 This really speeds up feedbacks loops when developping on the model. For instance
 you don't have to have separate copies of the weights when changing the distribution
 strategy (for instance Pipeline Parallelism vs Tensor Parallelism).
+
+License: Apache-2.0
index a1c20d9508437ea77ebef14043f2393d8015d875..549b42fb0732873d8d1d6aa3dd7a6c4b5e5dc33e 100644 (file)
@@ -2,6 +2,21 @@
 name = "safetensors"
 version = "0.2.6"
 edition = "2021"
+homepage = "https://github.com/huggingface/safetensors"
+repository = "https://github.com/huggingface/safetensors"
+documentation = "https://docs.rs/safetensors/"
+license = "Apache-2.0"
+keywords = ["safetensors", "huggingface", "Tensors", "Pytorch", "Tensorflow"]
+readme = "./README.md"
+description = """
+Provides functions to read and write safetensors which aim to be safer than
+their PyTorch counterpart.
+The format is 8 bytes which is an unsized int, being the size of a JSON header,
+the JSON header refers the `dtype` the `shape` and `data_offsets` which are the offsets
+for the values in the rest of the file.
+"""
+exclude = [ "rust-toolchain", "target/*", "Cargo.lock"]
+
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
index 1c0e3ddbc0283159e389efc2440027d437c33fea..ccdc4d8fec4c2e081e64f54fc0405294677ea435 100644 (file)
@@ -138,3 +138,5 @@ to load the model on 8 GPUs from 10mn with regular PyToch weights down to 45s.
 This really speeds up feedbacks loops when developping on the model. For instance
 you don't have to have separate copies of the weights when changing the distribution
 strategy (for instance Pipeline Parallelism vs Tensor Parallelism).
+
+License: Apache-2.0