<intrinsic_name>/<base_model>/<adapter_type> sub-directory, together with
the required io.yaml configuration file. If an INTRINSIC_README.md exists in
the weight directory it is also uploaded as the repository’s root README.md.
Requires an authenticated Hugging Face token obtained via huggingface-cli login.
Functions
FUNC upload_intrinsic
<intrinsic_name>/<base_model>/<adapter_type> sub-directory,
together with the io.yaml configuration file. If an
INTRINSIC_README.md exists in the weight directory it is also uploaded
as the repository root README.md.
Args:
weight_path: Local directory containing the adapter weights (output ofsave_pretrained).model_name: Target Hugging Face repository name in"<userid>/<intrinsic_name>"format (e.g."acme/carbchecker-alora").base_model: Base model ID or path (e.g."ibm-granite/granite-3.3-2b-instruct"). Must contain at most one"/"separator.type: Adapter type, used as the leaf directory name in the repository layout.io_yaml: Path to theio.yamlconfiguration file for intrinsic input/output processing.private: Whether the repository should be private. Currently onlyTrueis supported.
AssertionError: Ifweight_pathorio_yamldo not exist, ifprivateisFalse, ifbase_modelcontains more than one"/"separator, or ifmodel_namedoes not contain exactly one"/"separator.OSError: If no Hugging Face authentication token is found.