Skip to content

Commit 7900784

Browse files
feat(security): add disclaimer about imports safety (#344)
* feat(security): add disclaimer about imports safety * fix(security): typo * Update docs/hub/security-pickle.md Co-authored-by: Omar Sanseviero <[email protected]> Co-authored-by: Omar Sanseviero <[email protected]>
1 parent 495282b commit 7900784

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/hub/security-pickle.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ model = AutoModel.from_pretrained("bert-base-cased", from_flax=True)
197197
- [Protobuf](https://developers.google.com/protocol-buffers)
198198
- [Cap'n'proto](https://capnproto.org/)
199199
- [Avro](https://avro.apache.org/)
200-
- [safetensors](https://github.com/Narsil/safetensors/)
200+
- [safetensors](https://github.com/huggingface/safetensors)
201201
202202
This last format, `safetensors`, is a simple serialization format that we are working on and experimenting with currently! Please help or contribute if you can 🔥.
203203
@@ -229,6 +229,8 @@ We get this data thanks to [`pickletools.genops`](https://docs.python.org/3/libr
229229
230230
Note that this is what allows to know if, when unpickling a file, it will `REDUCE` on a potentially dangerous function that was imported by `*GLOBAL`.
231231
232+
***Disclaimer***: this is not 100% foolproof. It is your responsibility as a user to check if something is safe or not. We are not actively auditing python packages for safety, the safe/unsafe imports lists we have are maintained in a best-effort manner.
233+
Please contact us if you think something is not safe, and we flag it as such, by sending us an email to website at huggingface.co
232234
233235
234236
#### Potential solutions

0 commit comments

Comments
 (0)