Skip to main content
This page shows how to prepare your model repository on Hugging Face so it can be deployed on SynapsAI Cloud. If the model is already on the Hub in Safetensors format with a valid pipeline_tag, you can skip to Deploy a model. We support model architectures available in the Hugging Face transformers and diffusers libraries. Custom architectures and remote code are not supported yet.

Prerequisites

Create a model repository

Create a new model repo on Hugging Face (UI or CLI):

Required files

Your repository should include:
  • Model weights in .safetensors format
  • Model configuration files (for example, config.json)
  • Tokenizer files (for example, tokenizer.json, tokenizer_config.json, vocab.json, merges.txt)
  • Any processors (for example, preprocessor_config.json, image processor files)
  • A README.md with a pipeline_tag
Refer to the official docs for file layouts: If your weights are not in Safetensors format, see Convert models to Safetensors.

Push model weights and artifacts

Below is a Python example that saves a model and tokenizer, then pushes them to the Hub.
CLI alternative with Git:
For more details, see the Hugging Face upload guide.

Verify repository readiness

  • Confirm all required files are present (weights, config, tokenizer, processors).
  • Confirm weights are in .safetensors format.
  • Ensure README.md includes a pipeline tag:
Next, proceed to Deploy a model.