Replies: 1 comment 1 reply
-
How about including the git hash in the header comment of the config saved by LightningCLI, similar to how currently includes the version of pytorch-lightning. This could be done as: class MyCLI(LightningCLI):
def add_arguments_to_parser(self, parser):
parser.dump_header.append(f"my_code_version={code_version}") Note that the version of the code is not a configurable hyperparameter, which is why I suggest to include it in a comment. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Is there an elegant way to store the Git hash in the stored hparams stored by self.save_hyperparameters()?
I'm trying to store git hash in stored config when working with LightningCLI, but unsure how to do this in a succinct way that doesn't include environment variables.
Beta Was this translation helpful? Give feedback.
All reactions