Save the configuration instance's parameters to a JSON file. Args: json_file_path (`str` or `os.PathLike`): Path to the JSON file to save a configuration instance's parameters.
(self, json_file_path: str | os.PathLike)
| 662 | return json.dumps(config_dict, indent=2, sort_keys=True) + "\n" |
| 663 | |
| 664 | def to_json_file(self, json_file_path: str | os.PathLike): |
| 665 | """ |
| 666 | Save the configuration instance's parameters to a JSON file. |
| 667 | |
| 668 | Args: |
| 669 | json_file_path (`str` or `os.PathLike`): |
| 670 | Path to the JSON file to save a configuration instance's parameters. |
| 671 | """ |
| 672 | with open(json_file_path, "w", encoding="utf-8") as writer: |
| 673 | writer.write(self.to_json_string()) |
| 674 | |
| 675 | @classmethod |
| 676 | def _get_config_file_from_dduf(cls, pretrained_model_name_or_path: str, dduf_entries: dict[str, DDUFEntry]): |
no test coverage detected