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
- Hugging Face account: huggingface.co
- Personal Access Token with read access: huggingface.co/settings/tokens
huggingface_hub,transformers, andsafetensorsinstalled
Create a model repository
Create a new model repo on Hugging Face (UI or CLI):- UI: huggingface.co/new
- CLI:
Required files
Your repository should include:- Model weights in
.safetensorsformat - 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.mdwith apipeline_tag
Push model weights and artifacts
Below is a Python example that saves a model and tokenizer, then pushes them to the Hub.Verify repository readiness
- Confirm all required files are present (weights, config, tokenizer, processors).
- Confirm weights are in
.safetensorsformat. - Ensure
README.mdincludes a pipeline tag:

