{"ok":true,"entity":{"slug":"safetensors","entityType":"concept","name":"Safetensors","officialName":"Safetensors","canonicalName":"Safetensors","displayName":"Safetensors","category":"AI概念（モデル保存形式）","shortDescription":"Hugging Faceが開発した、モデルの重み（テンソル）を安全に保存・読み込みするためのファイル形式。Pythonのpickle形式に存在する任意コード実行のリスクを排除する設計になっている。","alias":["Safe Tensors",".safetensors"],"searchKeywords":["モデル保存形式","セキュリティ","pickle脆弱性","Hugging Face"],"website":"https://github.com/huggingface/safetensors","parentEntity":null,"primaryCluster":"ai-open-model","secondaryClusters":["ai-model"],"id":"safetensors","verificationStatus":"draft","updatedAt":"2026-07-20T02:14:59.356Z"},"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"}]}