How to add the resume from checkpoint in yaml file

How do I use this algorithm? What does that parameter do?
Post Reply
yixuan
Posts: 4
Joined: 20 May 2021, 00:31

How to add the resume from checkpoint in yaml file

Post 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
User avatar
Johannes
Site Admin
Posts: 428
Joined: 21 Jul 2018, 12:52
Location: TU Munich

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

Post 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!
yixuan
Posts: 4
Joined: 20 May 2021, 00:31

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

Post by yixuan »

Hi Johannes,

Thank you very much for the explanation.

Yixuan
Post Reply