Hey. You need to define your model as a scikit-learn estimator (
reference). One easy way of achieving this may be through
skorch, I haven't used it but it seems to add the fit and predict methods, which are the ones needed by mlforecast.
That could also help you saving the training loss with
their callbacks.
Let us know if you need any help setting this up