Skip to main content

pb.adapters.get_config / update_config

pb.adapters.get_config

pb.adapters.get_config

Fetch the training config for an adapter (if one exists)

Parameters:

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

Returns:

   Adapter

pb.adapters.update_config

pb.adapters.update_config

Update the training config for an adapter. Only reward functions for active training jobs may be updated in this way.

Parameters:

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

   new_config: FinetuningConfig
The updated config to apply

Examples:

config = pb.adapters.get_config("news-summarizer-model/1")
new_config = my_config_modifications(config)
pb.adapters.update_config("news-summarizer-model/1", new_config)