Skip to main content

Download Adapter

info

Contact us at support@predibase.com to download your adapter in the Developer tier. Downloading adapters is available for Enterprise users by default.

pb.adapters.download

pb.adapters.download

Download the adapter weights of an existing adapter

Parameters:

   adapter_id: str
String containing the repo name followed by the version number

   dest: os.PathLike, default None
Path to download to, either a directory or full file path. If omitted, defaults to the current directory

Returns:

   None

Note that the exported model files will contain only the adapter weights, not the full LLM weights.

Example:

pb.adapters.download("news-summarizer-model/1")

pb.adapters.download("news-summarizer-model/1", dest="/path/to/folder")

pb.adapters.download("news-summarizer-model/1", dest="/path/to/folder/myadapter.zip")

# Downloads checkpoint 3 of adapter version `news-summarizer-model/1`.
pb.adapters.download("news-summarizer-model/1@3", dest="/path/to/folder")