Upload Adapter
info
Compatible PEFT adapters can be uploaded for use with Predibase inference.
Adapters must include the following:
- an adapter_config.json file
- at least one of adapter_model.safetensors or adapter_model.bin
pb.adapters.upload
pb.adapters.upload
Uploads an existing adapter into Predibase
Parameters:
local_dir: str
Directory containing the adapter files
repo: str
The Predibase adapter repo to upload to
Returns:
Adapter
Example:
pb.adapters.upload("/my/local/adapter/", "myrepo")