Skip to main content
Safetensors weights are supported on SynapsAI Cloud. If your repository only contains .bin or .pt files and you want to publish Safetensors weights, convert them with the steps below. Custom code is supported when Transformers, Diffusers, or vLLM can load it in the standard way.

Quick conversion with Transformers

If your model is supported by the transformers library, reload and re-save with safe_serialization=True:
Push the converted files to your Hugging Face repository:

Diffusers models

For diffusion and image models:
Then upload the folder to the Hub as shown above.

Verify before deploying

  1. Confirm .safetensors files appear in the repository file list on Hugging Face.
  2. Ensure config.json, tokenizer, and processor files are present.
  3. Add a pipeline_tag to README.md (for example, pipeline_tag: text-generation).
See Launch a custom model for the full repository checklist and Deploy a model to launch.

CLI alternative

If you cloned the repository with Git: