I’m not sure, how else you would like to get your predictions.
A model might be the easiest solution.
Why do you want to avoid it?
The state_dict errors is thrown, if you save a model and change its architecture after.