Hugging Face is transferring the safetensors library—its secure serialization format for AI model weights—to the PyTorch Foundation, which is shepherded by the Linux Foundation. The announcement was made by Julien Chaumond, CTO of Hugging Face, via social media.
The goal of the transfer is to make the format a neutral, community-driven standard. Safetensors is designed to be a safe and fast alternative to Python's native pickle module for storing tensors, which has been a significant security vulnerability in the AI supply chain.
What Happened
Hugging Face initiated the legal and technical process to donate the Safetensors project to the PyTorch Foundation. The PyTorch Foundation, part of the Linux Foundation, will become the new steward of the library's governance, development, and maintenance.
Context
Safetensors was created by Hugging Face to address a critical security flaw: the widespread use of pickle to save and load PyTorch model weights. The pickle format can execute arbitrary code during deserialization, making downloaded models a potential vector for malware. Safetensors stores only the raw tensor data with a secure header, eliminating this risk while also offering performance benefits in loading speed.
Since its introduction, Safetensors has seen rapid adoption across the open-source AI ecosystem. It is the recommended format on the Hugging Face Hub and is supported by major frameworks including PyTorch, TensorFlow, JAX, and Flax.
gentic.news Analysis
This donation is a strategic move to decouple a critical infrastructure project from a single corporate entity and solidify its position as an industry standard. By placing Safetensors under the neutral governance of the PyTorch Foundation, Hugging Face is betting that broader institutional backing will accelerate adoption and ensure its long-term maintenance, similar to how the Linux Foundation stewards other foundational open-source projects.
The timing is significant. As AI model sharing becomes ubiquitous, security concerns are paramount. The industry has been grappling with pickle-based vulnerabilities for years; standardizing on a secure alternative is a necessary step for enterprise adoption and secure deployment pipelines. This move also aligns with a broader trend of major AI players contributing key technologies to foundations to foster ecosystem growth while reducing perceived vendor lock-in. For practitioners, this transfer should increase confidence in the format's longevity and neutrality, making it a safer default choice for model serialization.
Frequently Asked Questions
What is Safetensors?
Safetensors is a secure serialization format for tensors (the multidimensional arrays that form AI model weights). It was created by Hugging Face as a safe replacement for Python's pickle, which can execute arbitrary and potentially malicious code when loading a file. Safetensors only stores the raw numerical data, making it inherently safe to load.
Why is moving Safetensors to the PyTorch Foundation important?
Transferring the project to a foundation neutralizes its governance. It is no longer a "Hugging Face project" but a community standard stewarded by a non-profit entity (the PyTorch Foundation under the Linux Foundation). This encourages broader trust, wider contribution, and ensures the project's development aligns with the needs of the entire PyTorch and open-source AI ecosystem, not a single company.
Do I need to change how I use Safetensors?
For most users, no immediate change is required. The library's API and functionality are expected to remain consistent. The primary change is in the project's governance and long-term maintenance structure. The goal is a seamless transition that provides greater stability and community input moving forward.
What frameworks support Safetensors?
Safetensors has broad framework support. It works natively with PyTorch, and libraries exist for TensorFlow, JAX, and Flax. Its design as a simple, framework-agnostic format for storing raw tensor data is a key reason for its widespread adoption and suitability as a cross-framework standard.









