Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing 'logging.py' file in pip installation #349

Closed
sptom opened this issue May 7, 2022 · 4 comments
Closed

Missing 'logging.py' file in pip installation #349

sptom opened this issue May 7, 2022 · 4 comments

Comments

@sptom
Copy link

sptom commented May 7, 2022

Hi there!

Tried to run your code from "Transformers\examples\pytorch\run_image_classification_no_trainer.py.
I installed the required accelerate package via pip, seems to be the right version (0.7.1),

but the code crashes on the line "from accelerate.logging import get_logger" line with the error that there's no such module.
I even tried to edit the init file, but I can access all other modules - Accelerator, checkpointing, tracking etc...

It's as if I downloaded an older version without '.logging', but the version number seems correct.
Any idea why this might happen, and how could I fix it without manually cloning your repository from github?

Thanks

@muellerzr
Copy link
Collaborator

The directions state that you need to install from source, as we're rapidly working on Accelerate and bringing in new features.

https://github.com/huggingface/transformers/tree/main/examples/pytorch#using-accelerate

@sptom
Copy link
Author

sptom commented May 7, 2022

Thank you!

This is from the 'transformers' directions, while I was looking in the directions in the 'accelerate' repository itself where there's a regular installation command.

image

Anyway, installed from source as you suggested, works well now, thanks again!

@muellerzr
Copy link
Collaborator

@sptom thanks, all the directions in transformers now state this 🤗

@github-actions
Copy link

github-actions bot commented Jun 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants