Is there a way to get config data from the server, without having to wait until the client calls fit?

This question was migrated from the Slack channel #questions.

Original Question:
Hi. I would like to set the local batch size for each of my clients from the server. Currently i batch the data before as part of my client init. Is there a way to get config data from the server at this stage, without having to wait until the client calls fit ?
Cheers,


Answer:
Hi. Do you have a custom strategy and a custom client class?
Currently, configs can only be sent to client by Strategy.configure_fit or Strategy.configure_evaluate . The server can store arbitrary configs in the instructions obtained from Strategy and send them to clients in the first fit round. I am not exactly sure what functionalities you want to implement but normally you can get the configs as an argument in Client.fit method.