Upload a trained LoRA or aLoRA adapter to Hugging Face Hub. Creates the target repository if it does not already exist and pushes the entire adapter weights directory (output ofDocumentation Index
Fetch the complete documentation index at: https://docs.mellea.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.