Skip to content

Add google extra with google-cloud-storage #77

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

Merged
merged 7 commits into from
Aug 7, 2024
Merged

Conversation

alvarobartt
Copy link
Member

Description

This PR adds the google extra with google-cloud-storage, as the dependency appears missing with an ImportError when installing directly from the wheel, instead of relying on the Dockerfile built and pushed, as there it's indeed installed directly as pip install google-cloud-storage.

So on, as to ensure consistency as in inf2 for AWS Inferentia 2, the google extra has been included to install from the extra instead of directly installing the dependency, helpful also if in the future we decide to pin the dependency, add more dependencies for google, and so on.

This PR also briefly revisits the formatting and style of dockerfiles/pytorch/Dockerfile, setup.py and setup.cfg; as well as including missing metadata within setup.py.

- Align indent size with `apt-get install` even if those are just args
- Align flag usage notation from `-U` to `--upgrade` i.e. using full
name instead of shortened one for readability
- Install `google-cloud-storage` from `google` extra instead (`google`
extra was included recently as otherwise the installations from the
wheel not relying on this Dockerfile would fail with an ImportError on
`google-cloud-storage` when either deploying from Vertex AI or setting
the `AIP_STORAGE_URI` env var)
Ideally the `pip install` command shouldn't be required as it's
installed already within the `integration-test-pytorch:gpu` image, but
if adding it, to ensure consistency we should also include the recently
included `google` extra that comes with `google-cloud-storage`;
otherwise the tests within
#76
will fail
@alvarobartt alvarobartt merged commit 4e3877f into main Aug 7, 2024
1 of 6 checks passed
@alvarobartt alvarobartt deleted the add-google-extras branch August 7, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants