huggingface / accelerate

🚀 A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration, automatic mixed precision (including fp8), and easy-to-configure FSDP and DeepSpeed support
https://huggingface.co/docs/accelerate
Apache License 2.0
7.34k stars 875 forks source link

Refactor logging to use logger in `dispatch_model` #2855

Closed panjd123 closed 3 weeks ago

panjd123 commented 3 weeks ago

What does this PR do?

Hey team, I've made a small fix in the dispatch_model function . Updated logging.warning("xxx") to logger.warning("xxx") for consistent logging practices throughout the codebase. I believe this was a minor typo.

Additionally, this is the only similar issue I've found throughout the entire project.

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.

HuggingFaceDocBuilderDev commented 3 weeks ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.