Second, I would like to perform aggressive inference in the DMM. For that I need the parameters of the model separated from the guide. According to the DMM tutorial the parameters are saved all together by pytorch in the state_dict(). I am having some trouble finding how to separate the model and the guide’s parameters,
Hi there!
I’m not sure about the specifics, but I seem to recall you can define custom optimizers that update only some of the parameters.
Alternately, the poutine.block function allows you to hide certain parameters (or “sites”) so they are not modified during inference.
Hopefully one of these two ideas can help