How to add/save parameters (metadata) to pytorch model

When I working on pytorch model, its difficult for me to keep variables required to run the model.
If I can add metadata to my model, I am not required to save parameters separately.

So any one knows, how to add metadata to pytorch model?