{"ok":true,"entity":{"id":"safetensors","name":"Safetensors","entityType":"concept","officialName":"Safetensors","canonicalName":"Safetensors","displayName":"Safetensors","category":"AI概念（モデル保存形式）","shortDescription":"Hugging Faceが開発した、モデルの重み（テンソル）を安全に保存・読み込みするためのファイル形式。Pythonのpickle形式に存在する任意コード実行のリスクを排除する設計になっている。","primaryCluster":"ai-open-model","parentEntity":null,"verificationStatus":"draft","website":"https://github.com/huggingface/safetensors","updatedAt":"2026-07-20T02:14:59.356Z","secondaryClusters":["ai-model"],"alias":["Safe Tensors",".safetensors"],"searchKeywords":["モデル保存形式","セキュリティ","pickle脆弱性","Hugging Face"]},"references":[{"id":"P-01-001","companyId":"safetensors","questionId":"P-01-001","instanceId":"QIN-safetensors-P01-001","promptText":"Safetensorsとは何ですか？","promptTypeId":"P-01","answer":"SafetensorsはHugging Faceが開発した、モデルの重みを安全に保存・読み込みするためのファイル形式です。Pythonのpickle形式に存在する任意コード実行のリスクを排除する設計になっています。","evidencePoints":["ev-safetensors-1","ev-safetensors-3"],"scope":"モデル保存形式の安全性を知りたい相談","differentiation":"pickle形式のセキュリティリスクを排除する設計","faq":[{"question":"SafetensorsはHugging Face以外でも使えますか？","answer":"オープンソースのフォーマットであり、Hugging Face以外のツール・プラットフォームでも利用されています。"}],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-01-001","sourceEvidence":[{"id":"ev-safetensors-1","text":"SafetensorsはHugging Faceが開発した、モデルの重みを安全に保存・読み込みするためのファイル形式で、Pythonのpickle形式に存在する任意コード実行のリスクを排除する設計になっている。","title":"GitHub — huggingface/safetensors","coverageType":["Identity","Capability"],"sourceType":"github","sourceClass":"Documentation","sourceUrl":"https://github.com/huggingface/safetensors","confidence":"high","supportedPromptTypes":["P-01","P-04"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"},{"id":"ev-safetensors-3","text":"Hugging FaceはEleutherAI・Stability AIと連携し、セキュリティ企業Trail of BitsによるSafetensorsの外部セキュリティ監査を2023年に実施し、任意コード実行につながる重大な欠陥は見つからなかったと報告している。監査後、Safetensorsはpickle形式に代わる既定の保存形式として採用が進んだ。","title":"Safetensors audited as really safe and becoming the default","coverageType":["UseCase","Credibility"],"sourceType":"official_blog","sourceClass":"Research","sourceUrl":"https://huggingface.co/blog/safetensors-security-audit","confidence":"high","supportedPromptTypes":["P-04","P-05"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"}],"generatedAt":"2026-07-20T02:14:59.356Z"},{"id":"P-02-001","companyId":"safetensors","questionId":"P-02-001","instanceId":"QIN-safetensors-P02-001","promptText":"SafetensorsとGGUFはどう違いますか？","promptTypeId":"P-02","answer":"いずれもモデルの重みを保存する形式ですが、Safetensorsは主にHugging Face Hub上での安全なモデル配布・PyTorch等での読み込みを目的とした形式です。GGUFはllama.cppエコシステムでの量子化・ローカル実行を目的とした形式で、CPU実行や単一ファイルでの配布に最適化されています。用途とエコシステムが異なります。","evidencePoints":["ev-safetensors-2","ev-safetensors-3"],"scope":"モデル保存形式同士の比較検討","differentiation":"対象エコシステム（Hugging Face Hub vs llama.cppローカル実行）の違い","faq":[{"question":"SafetensorsとGGUFはどちらが安全ですか？","answer":"いずれも任意コード実行を防ぐ設計を採用していますが、Safetensorsは外部セキュリティ企業による監査を受けています。"}],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-02-001","sourceEvidence":[{"id":"ev-safetensors-2","text":"SafetensorsはRust実装により数値情報（重み・パラメータ）のみを保存し、モデルアーキテクチャの実行コードやコールバックを含められない設計により、pickle形式より安全にモデルを配布できる。","title":"Hugging Face Docs — Safetensors","coverageType":["Capability","Differentiation"],"sourceType":"product_docs","sourceClass":"Specification","sourceUrl":"https://huggingface.co/docs/safetensors/index","confidence":"high","supportedPromptTypes":["P-02","P-04"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"},{"id":"ev-safetensors-3","text":"Hugging FaceはEleutherAI・Stability AIと連携し、セキュリティ企業Trail of BitsによるSafetensorsの外部セキュリティ監査を2023年に実施し、任意コード実行につながる重大な欠陥は見つからなかったと報告している。監査後、Safetensorsはpickle形式に代わる既定の保存形式として採用が進んだ。","title":"Safetensors audited as really safe and becoming the default","coverageType":["UseCase","Credibility"],"sourceType":"official_blog","sourceClass":"Research","sourceUrl":"https://huggingface.co/blog/safetensors-security-audit","confidence":"high","supportedPromptTypes":["P-04","P-05"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"}],"generatedAt":"2026-07-20T02:14:59.356Z"},{"id":"P-04-001","companyId":"safetensors","questionId":"P-04-001","instanceId":"QIN-safetensors-P04-001","promptText":"モデルを安全に保存・配布したい場合、Safetensorsはどう活用できますか？","promptTypeId":"P-04","answer":"Safetensorsを使うことで、pickle形式のような任意コード実行のリスクを避けてモデルの重みを保存・配布できます。Hugging Face Hub上の多くのモデルが標準でこの形式を採用しており、公式ドキュメントで読み込み方法を確認できます。","evidencePoints":["ev-safetensors-1","ev-safetensors-2"],"scope":"モデルの安全な保存・配布方法の相談","differentiation":"外部セキュリティ監査を経た安全性","faq":[{"question":"Safetensorsの情報はどこで確認できますか？","answer":"GitHub（huggingface/safetensors）とHugging Face公式ドキュメントで確認できます。"}],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-04-001","sourceEvidence":[{"id":"ev-safetensors-1","text":"SafetensorsはHugging Faceが開発した、モデルの重みを安全に保存・読み込みするためのファイル形式で、Pythonのpickle形式に存在する任意コード実行のリスクを排除する設計になっている。","title":"GitHub — huggingface/safetensors","coverageType":["Identity","Capability"],"sourceType":"github","sourceClass":"Documentation","sourceUrl":"https://github.com/huggingface/safetensors","confidence":"high","supportedPromptTypes":["P-01","P-04"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"},{"id":"ev-safetensors-2","text":"SafetensorsはRust実装により数値情報（重み・パラメータ）のみを保存し、モデルアーキテクチャの実行コードやコールバックを含められない設計により、pickle形式より安全にモデルを配布できる。","title":"Hugging Face Docs — Safetensors","coverageType":["Capability","Differentiation"],"sourceType":"product_docs","sourceClass":"Specification","sourceUrl":"https://huggingface.co/docs/safetensors/index","confidence":"high","supportedPromptTypes":["P-02","P-04"],"needsVerification":true,"sourceVerified":false,"entityId":"safetensors"}],"generatedAt":"2026-07-20T02:14:59.356Z"},{"id":"P-01-002","companyId":"safetensors","questionId":"P-01-002","instanceId":"reference-depth-completion-run-cohort1-unit-a","draftId":"reference-depth-completion-run-cohort1-unit-a-safetensors-p-01-002","promptText":"Safetensorsは現在どのような組織によって管理されていますか？","promptTypeId":"P-01","answer":"Hugging Face公式ブログ（huggingface.co/blog）の発表によると、Safetensorsは2026年4月8日、Linux Foundation傘下のPyTorch Foundationへ「foundation-hosted project」として正式に加入した。これによりSafetensorsはDeepSpeed、Helion、Ray、そしてPyTorch本体と並ぶプロジェクトとなった。発表では、Hugging Faceのコアメンテナーは引き続き技術運営委員会（Technical Steering Committee）に残るものの、「商標、リポジトリ、プロジェクトのガバナンスは単一の企業ではなくLinux Foundationに帰属する」とされ、フォーマット・API・既存の統合には破壊的変更がないことが明記されている。これはSafetensorsが特定企業ではなくコミュニティ全体に属するものになったことを示す出来事である。","evidencePoints":["safetensors-ev-cr1-pytorch-foundation"],"scope":"","differentiation":"","faq":[],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-01-002","sourceEvidence":[{"id":"safetensors-ev-cr1-pytorch-foundation","text":"Hugging Face公式ブログ（2026年4月8日）によれば、SafetensorsはLinux Foundation傘下のPyTorch Foundationへfoundation-hostedプロジェクトとして加入し、DeepSpeed・Helion・Ray・PyTorch本体と並ぶ位置づけとなった。ガバナンスは単一企業からLinux Foundationへ移管された。","title":"Safetensors is Joining the PyTorch Foundation","coverageType":["Credibility"],"sourceType":"official_blog","sourceClass":"Announcement","sourceUrl":"https://huggingface.co/blog/safetensors-joins-pytorch-foundation","confidence":"high","supportedPromptTypes":["P-01"],"needsVerification":true,"sourceVerified":false,"sourceKind":"official","entityId":"safetensors"}],"generatedAt":"2026-08-29T13:37:08.877Z","evidenceIds":["safetensors-ev-cr1-pytorch-foundation"]},{"id":"P-01-003","companyId":"safetensors","questionId":"P-01-003","instanceId":"reference-depth-completion-run-cohort1-unit-b","draftId":"reference-depth-completion-run-cohort1-unit-b-safetensors-p-01-003","promptText":"Safetensorsの実際の採用状況について独立した調査はありますか？","promptTypeId":"P-01","answer":"Beatrice Casey氏らによる論文「An Empirical Study of Safetensors' Usage Trends and Developers' Perceptions」（arXiv、2025年1月4日提出）は、Hugging Face Hub上でのSafetensors採用動向と開発者の受け止め方を分析した独立した学術研究である。同論文によれば、より多くの開発者がSafetensorsを採用しつつあるが、その移行の多くは自動変換ツール（Hugging Faceが提供する変換ボット）によって進められており、開発者自身の能動的な移行ではないケースが多い。実際、「大多数の開発者は変換ツールが作成するプルリクエストを無視している」ことが分かった一方で、実際に対応した開発者は「Safetensorsフォーマットについて学び適応することに前向きである」ことも示された。","evidencePoints":["safetensors-ev-cr1-empirical-study"],"scope":"","differentiation":"","faq":[],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-01-003","sourceEvidence":[{"id":"safetensors-ev-cr1-empirical-study","text":"Casey氏ら（arXiv、2025年1月4日提出）の論文によれば、Hugging Face Hub上でのSafetensors採用は自動変換ボットに牽引される部分が大きく、多くの開発者は変換用プルリクエストを無視する一方、対応した開発者はフォーマットへの適応に前向きであることが分かった。","title":"An Empirical Study of Safetensors' Usage Trends and Developers' Perceptions","coverageType":["Credibility"],"sourceType":"research_paper","sourceClass":"Research","sourceUrl":"https://arxiv.org/abs/2501.02170","confidence":"medium","supportedPromptTypes":["P-01"],"needsVerification":true,"sourceVerified":false,"sourceKind":"third-party","entityId":"safetensors"}],"generatedAt":"2026-08-29T13:47:52.247Z","evidenceIds":["safetensors-ev-cr1-empirical-study"]},{"id":"P-06-001","companyId":"safetensors","questionId":"P-06-001","instanceId":"tair-cohort4-2026-08-31","draftId":"tair-cohort4-2026-08-31-safetensors-p-06-001","promptText":"Safetensorsは、実際の読み込み速度の面でPyTorchのpickle形式（.bin）と比べてどれくらい優れていますか？","promptTypeId":"P-06","answer":"Hugging Face公式ドキュメントのSpeed Comparisonページによると、GPT-2の重みを用いたベンチマークで、CPU上でSafetensorsはPyTorchのpickle形式（.bin）と比べて76.6倍高速に読み込めた（Safetensors 0.004秒に対しPyTorch 0.307秒）という結果が示されている。GPU上でも2.1倍高速（Safetensors 0.165秒に対しPyTorch 0.354秒）という結果であった。ドキュメントは「CPU上では、SafetensorsはPyTorchより76.6倍高速である」と述べており、この高速化はファイルを直接メモリマップし不要なコピーを回避する設計によるものと説明されている。","evidencePoints":["safetensors-ev-tair-1"],"scope":"","differentiation":"","faq":[],"pageUrl":"https://www.refbase.ai/reference/safetensors/P-06-001","sourceEvidence":[{"id":"safetensors-ev-tair-1","entityId":"safetensors","text":"Hugging Face公式ドキュメントによると、GPT-2の重みでのベンチマークで、SafetensorsはPyTorchのpickle形式と比べてCPU上で76.6倍、GPU上で2.1倍高速に読み込める。","coverageType":["Differentiation"],"title":"Speed Comparison · Hugging Face","sourceClass":"Documentation","sourceType":"official","confidence":"high","supportedPromptTypes":["P-06"],"sourceVerified":false,"needsVerification":true,"sourceUrl":"https://huggingface.co/docs/safetensors/speed"}],"generatedAt":"2026-08-31T06:45:14.146Z","evidenceIds":["safetensors-ev-tair-1"]}]}