From: Nicolas Patry Date: Tue, 13 Dec 2022 15:14:56 +0000 (+0100) Subject: Necessary modifications to publish on Rust. (#129) X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=02e5f4abf7d11a916cad15f5add0a7df61b1fdb8;p=safetensors.git Necessary modifications to publish on Rust. (#129) * Adding Info to publish. * Bench. * Update README. --- diff --git a/README.md b/README.md index 1c0e3dd..ccdc4d8 100644 --- 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 diff --git a/safetensors/Cargo.toml b/safetensors/Cargo.toml index a1c20d9..549b42f 100644 --- a/safetensors/Cargo.toml +++ b/safetensors/Cargo.toml @@ -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 diff --git a/safetensors/README.md b/safetensors/README.md index 1c0e3dd..ccdc4d8 100644 --- a/safetensors/README.md +++ b/safetensors/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