上传预设

[source]

upload_preset function

keras_nlp.upload_preset(uri, preset, allow_incomplete=False)

Upload a preset directory to a model hub.

Arguments

  • uri: The URI identifying model to upload to. URIs with format kaggle://<KAGGLE_USERNAME>/<MODEL>/<FRAMEWORK>/<VARIATION> will be uploaded to Kaggle Hub while URIs with format hf://[<HF_USERNAME>/]<MODEL> will be uploaded to the Hugging Face Hub.
  • preset: The path to the local model preset directory.
  • allow_incomplete: If True, allows the upload of presets without a tokenizer configuration. Otherwise, a tokenizer is required.