accelerate icon indicating copy to clipboard operation
accelerate copied to clipboard

[feature request] implement `set_verbosity`

Open stas00 opened this issue 2 years ago • 1 comments

requesting to implement set_verbosity as in transformers and datasets so that the user could control the level of verbosity from accelerate. e.g. https://github.com/huggingface/transformers/blob/8c5026628a29a89cf122bc1c95cff8101f78c7c0/src/transformers/utils/logging.py#L149-L165

From previous experience of doing that the easiest usually is to copy logging.py as it already provides a rich set of this and other logging features. And adapt s/transformers/accelerate/g and s/TRANSFORMERS/ACCELERATE/g.

Thank you.

stas00 avatar Feb 14 '23 00:02 stas00

Hello @muellerzr

I'm new to open source and just wondering to implement this set_verbosity function we just need to tweak the get_logger function and the logger.py function to accept an additional argument for verbosity and pass it on to the PartialState object?

ashikshafi08 avatar Apr 27 '23 07:04 ashikshafi08