save_pretrained) to the repository root.
Requires an authenticated Hugging Face token set via the HF_TOKEN environment
variable or huggingface-cli login.
Functions
FUNC upload_model
weight_path: Directory containing adapter weights (from save_pretrained).model_name: Target model repo name (e.g., “acme/carbchecker-alora”).private: Whether the repo should be private. Default: True.
FileNotFoundError: Ifweight_pathdoes not exist on disk.OSError: If no Hugging Face authentication token is found.RuntimeError: If creating or accessing the Hugging Face repository fails.