def save_to_json(self, json_path: str) -> None:
        """Saves the content of this instance in JSON format inside `json_path`."""
        json_string = json.dumps(asdict(self), indent=2, sort_keys=True) + "\n"
        with open(json_path, "w", encoding="utf-8") as f:
            f.write(json_string)
Saves the content of this instance in JSON format inside `json_path`.
src/glmtuner/hparams/finetuning_args.py