Convert Hugging Face model repo to Safetensors
Open Persian LLM Leaderboard
Explore and benchmark visual document retrieval models
SolidityBench Leaderboard
Teach, test, evaluate language models with MTEB Arena
View RL Benchmark Reports
Measure BERT model performance using WASM and WebGPU
View LLM Performance Leaderboard
Convert PyTorch models to waifu2x-ios format
Upload a machine learning model to Hugging Face Hub
Download a TriplaneGaussian model checkpoint
Convert Stable Diffusion checkpoint to Diffusers and open a PR
Browse and evaluate ML tasks in MLIP Arena
This is a tool designed to convert a Hugging Face (HF) Diffusers model repository into a single safetensors file. Safetensors is a secure alternative to PyTorch's standard .pt file format, offering better protection against malicious code execution. This conversion is particularly useful for models like SDXL, SD 1.5, and those using LoRA (Low-Rank Adaptation) fine-tuning.
.pt files.safetensors and torch..safetensors file.What is the advantage of safetensors over PyTorch .pt files?
Safetensors provides enhanced security by validating file contents before loading, reducing the risk of malicious code execution.
Do I need to modify my existing code to use safetensors?
Yes, you may need to update your code to support safetensors. Most modern libraries, including transformers and diffusers, now support safetensors natively.
Will this tool work with older versions of PyTorch?
The tool is optimized for recent versions of PyTorch and safetensors. For compatibility, ensure you are using the latest or recommended versions of the libraries.