.bin or .pt files, convert them before deploying.
Quick conversion with Transformers
If your model is supported by thetransformers library, reload and re-save with safe_serialization=True:
Diffusers models
For diffusion and image models:Verify before deploying
- Confirm
.safetensorsfiles appear in the repository file list on Hugging Face. - Ensure
config.json, tokenizer, and processor files are present. - Add a
pipeline_tagtoREADME.md(for example,pipeline_tag: text-generation).
CLI alternative
If you cloned the repository with Git:Remote code not supported
Models that requiretrust_remote_code=True or custom Python modules in the repository are not supported today. Use architectures available in transformers or diffusers, or contact support if you need a custom architecture.
