factor out model serialization and one_channel_mode setting into callbacks
factor out model serialization and one_channel_mode setting into
callbacks

for pytorch-lightning >= 1.8 support

mittagessen/kraken,mittagessen/kraken,mittagessen/kraken,mittagessen/kraken