I’m not sure how the state_dict interacts with this method, but you could check the linked source code to see which conditions are not met and why the return value is None.
No, unfortunately I cannot recommend a specific hyperparameter optimization library, so let’s wait for others to chime in.