Open le1nux opened 2 months ago
In PR #169, we introduced consume_dict for MessageSubscriberIF to log the number of parameters of a model. This method does not integrate yet with the message broker and instead we call this function directly within Main.
consume_dict
MessageSubscriberIF
Main
https://github.com/Modalities/modalities/blob/b88df85984266329d0897b38177717ec72be0426/src/modalities/logging_broker/subscriber.py#L9-L17
https://github.com/Modalities/modalities/blob/b88df85984266329d0897b38177717ec72be0426/src/modalities/__main__.py#L259
We should rethink the design and integrate it better.
Better code design.
Feature request
In PR #169, we introduced
consume_dict
forMessageSubscriberIF
to log the number of parameters of a model. This method does not integrate yet with the message broker and instead we call this function directly withinMain
.https://github.com/Modalities/modalities/blob/b88df85984266329d0897b38177717ec72be0426/src/modalities/logging_broker/subscriber.py#L9-L17
https://github.com/Modalities/modalities/blob/b88df85984266329d0897b38177717ec72be0426/src/modalities/__main__.py#L259
We should rethink the design and integrate it better.
Motivation
Better code design.