From f09f093f6a5f2240b6687954f2bc2b4b8d2f3fe6 Mon Sep 17 00:00:00 2001 From: Mishig Date: Sun, 24 Sep 2023 19:56:47 +0200 Subject: [PATCH] Delete duplicatd doc file --- .../en/using-diffusers/using_safetensors | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 docs/source/en/using-diffusers/using_safetensors diff --git a/docs/source/en/using-diffusers/using_safetensors b/docs/source/en/using-diffusers/using_safetensors deleted file mode 100644 index b6b165dabc72..000000000000 --- a/docs/source/en/using-diffusers/using_safetensors +++ /dev/null @@ -1,19 +0,0 @@ -# What is safetensors ? - -[safetensors](https://github.com/huggingface/safetensors) is a different format -from the classic `.bin` which uses Pytorch which uses pickle. - -Pickle is notoriously unsafe which allow any malicious file to execute arbitrary code. -The hub itself tries to prevent issues from it, but it's not a silver bullet. - -`safetensors` first and foremost goal is to make loading machine learning models *safe* -in the sense that no takeover of your computer can be done. - -# Why use safetensors ? - -**Safety** can be one reason, if you're attempting to use a not well known model and -you're not sure about the source of the file. - -And a secondary reason, is **the speed of loading**. Safetensors can load models much faster -than regular pickle files. If you spend a lot of times switching models, this can be -a huge timesave.