Save a guider configuration object to a directory so that it can be reloaded using the [`~BaseGuidance.from_pretrained`] class method. Args: save_directory (`str` or `os.PathLike`): Directory where the configuration JSON file will be saved (will
(self, save_directory: str | os.PathLike, push_to_hub: bool = False, **kwargs)
| 348 | return cls.from_config(config, return_unused_kwargs=return_unused_kwargs, **kwargs) |
| 349 | |
| 350 | def save_pretrained(self, save_directory: str | os.PathLike, push_to_hub: bool = False, **kwargs): |
| 351 | """ |
| 352 | Save a guider configuration object to a directory so that it can be reloaded using the |
| 353 | [`~BaseGuidance.from_pretrained`] class method. |
| 354 | |
| 355 | Args: |
| 356 | save_directory (`str` or `os.PathLike`): |
| 357 | Directory where the configuration JSON file will be saved (will be created if it does not exist). |
| 358 | push_to_hub (`bool`, *optional*, defaults to `False`): |
| 359 | Whether or not to push your model to the Hugging Face Hub after saving it. You can specify the |
| 360 | repository you want to push to with `repo_id` (will default to the name of `save_directory` in your |
| 361 | namespace). |
| 362 | kwargs (`dict[str, Any]`, *optional*): |
| 363 | Additional keyword arguments passed along to the [`~utils.PushToHubMixin.push_to_hub`] method. |
| 364 | """ |
| 365 | self.save_config(save_directory=save_directory, push_to_hub=push_to_hub, **kwargs) |
| 366 | |
| 367 | |
| 368 | class GuiderOutput(BaseOutput): |
nothing calls this directly
no test coverage detected