Hey, I need to load a .pt model and get the metadata. I save my models with a function similar to the following:
torch.save(
{"n_epochs", n_epochs}
model)
How can i get n_epochs without loading the actual model?
This is because i need to access the metadata without having the model class.