Skip to content

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
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.

3 participants