save_pretrained
save_pretrained(model, save_dir, *, model_card=None)Write model.safetensors + config.json (+ optional README.md) into save_dir. Returns the directory path.
Use this to prepare a local folder that can be upload_folder’d to HF or committed to a git LFS repo.