AI Briefing
KO

Safetensors Security Verification and Transition to Default Format

·2023.05.23 09:00

Key point

The Safetensors library is establishing itself as the default format for model storage after proving its safety through an external security audit.

Details

An external security audit by Trail of Bits, jointly commissioned by Hugging Face, EleutherAI, and Stability AI, found no critical security flaws in safetensors that could lead to arbitrary code execution.

The existing PyTorch pickle method has a security vulnerability that can allow an attacker to seize control of a user's computer when loading a malicious file, but safetensors fundamentally resolves this issue.

Beyond security, safetensors offers the following technical strengths:

  • Fast Loading: Provides loading speeds about 100 times faster than the existing method in CPU environments.
  • Lazy Loading: Efficiently loads only the necessary tensor parts, maximizing inference efficiency for large-scale models (LLMs).
  • Framework Compatibility: Supports various frameworks including PyTorch, TensorFlow, JAX, and NumPy.

Based on this verification, safetensors is set to be adopted as the default installation and model storage format in the transformers library.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.