-
Notifications
You must be signed in to change notification settings - Fork 10
Saving & loading optimizer state #2
Comments
Fixed. |
@CyberZHG That was fast - thanks; I'll test it shortly. To clarify, is below
applying weight updates to |
Tested -
Is this intended? If so, was this accounted for before? It may explain my poor model performance. A snippet of the point where the weight tensors differ below: (Also, optimizer save size has increased - unless the exact partial duplicate is necessary, better without it) |
Something's faulty - model performance plummets when loading states/weights and re-compiling model for a different |
Plummeting problem fixed; Lookahead appears strongly bound to its internal optimizer's state - the problem was solved by loading the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
To clarify, is the weight len discrepancy mentioned in my third comment intentional or a bug? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Optimizer weights are now stored in
model.optimizer.optimizer
, andmodel.optimizer.weights==[]
- hence, default saving and loading methods will not work. Existing code can account for this as follows:NOTE: unsure if above accounts for all differences. Packing
weights
intomodel.optimizer
directly will render this redundant.The text was updated successfully, but these errors were encountered: