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 with a valid pipeline_tag, you can skip to Deploy a model. Architectures from Transformers, Diffusers, and vLLM are supported. Custom code is supported only when those libraries can load it in their standard way (remote code and modeling files in the repository). Safetensors weights are supported.

Prerequisites

Create a model repository

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

Required files

Your repository should include:
  • Model weights, including Safetensors. Custom code must be loadable by Transformers, Diffusers, or vLLM in the standard way.
  • 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: Safetensors weights are supported. Custom code is supported when Transformers, Diffusers, or vLLM can load it in the standard way. To convert .bin or .pt weights, 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 the repository

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