Page 1 of 1

How to add the resume from checkpoint in yaml file

Posted: 07 Jun 2023, 05:36
by yixuan
Hi all,

I understand that there is a tenpy.resume_from_checkpoint() function, but how do I include it in the yaml file?

Best,

Yixuan Huang

Re: How to add the resume from checkpoint in yaml file

Posted: 16 Jun 2023, 09:04
by Johannes
At the moment, you need to directly call the tenpy.resume_from_checkpoint function with the filename from where you want to resume the simulation.

You can do this from the command line e.g. with python -c 'import tenpy; tenpy.resume_from_run("path_to_file.h5")'.

See Issue #269 for ToDo / progress of enhancing this. I'll make sure we include this into the next TeNPy version!

Re: How to add the resume from checkpoint in yaml file

Posted: 16 Jun 2023, 20:32
by yixuan
Hi Johannes,

Thank you very much for the explanation.

Yixuan