Skip to content

Fix transformers-pytorch-gpu docker build#26615

Merged
ydshieh merged 1 commit into
mainfrom
fix_docker_build_002
Oct 5, 2023
Merged

Fix transformers-pytorch-gpu docker build#26615
ydshieh merged 1 commit into
mainfrom
fix_docker_build_002

Conversation

@ydshieh

@ydshieh ydshieh commented Oct 5, 2023

Copy link
Copy Markdown
Collaborator

What does this PR do?

Currently failed, see here

RUN [ ${#TORCH_VISION} -gt 0 ] && VERSION='torchvision=='TORCH_VISION'.*' || VERSION='torchvision'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA
RUN [ ${#TORCH_AUDIO} -gt 0 ] && VERSION='torchaudio=='TORCH_AUDIO'.*' || VERSION='torchaudio'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA

RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-torch,testing,video]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to #25214 (just changing order to avoid install twice)


# If set to nothing, will install the latest version
ARG PYTORCH='2.0.1'
ARG PYTORCH='2.1.0'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should also update all docker files to use 2.1

@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented Oct 5, 2023

Copy link
Copy Markdown

The documentation is not available anymore as the PR was closed or merged.

@ydshieh
ydshieh requested a review from LysandreJik October 5, 2023 11:14

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👌

@ydshieh
ydshieh merged commit 9d20601 into main Oct 5, 2023
@ydshieh
ydshieh deleted the fix_docker_build_002 branch October 5, 2023 13:33
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

Successfully merging this pull request may close these issues.

3 participants