Closed inafergra closed 4 months ago
thanks @inafergra ,
1. can we add a test which loads both legacy (without a device) and current checkpoints (with device) and asserts that they are successfully loaded? 2. i remember @awennersteen proposed on the previous PR to handle both cases and log a error/debug in case the user uses legacy checkpoints. the most important thing is that this implementation handles both. thanks!
Thanks for the comments Dominik. I added tests checking that both QNNs and QuantumModels can be loaded with the legacy ckpts names. The function get_latest_checkpoint_name()
can find both legacy and device ckpts.
Hey @inafergra have you tested how this modification with the device works with GPUs?
Hey @inafergra have you tested how this modification with the device works with GPUs?
Hey @gvelikova, yes I tested it in my local (single) gpu and it works fine
hey @inafergra , @Roland-djee will take over the review here!
@awennersteen if you don't have any more comments this should be ready to merge now
Merging this now as discussed with @gvelikova, any additional changes can be included in a future PR solving #484 which also involves checkpointing.
Fixes #475 following up on the work done by @dominikandreasseitz in this unfinished PR. The unfinished PR also included some refactoring of the
TrainConfig
class (not related to this bug) which was causing conflicts with main that were messy to solve, thus this new PR. As discussed, it would be better to add theTrainConfig
refactoring in a separate PR.