Skip to content

Unpin accelerate to fix transformers pipeline #1271

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 10 commits into from
Jul 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,14 @@ RUN pip install flashtext \
optuna \
plotly_express \
albumentations \
# b/254245259 catalyst requires accelerate but it breaks with the version 0.13.1
accelerate==0.12.0 \
catalyst \
accelerate \
# b/290207097 switch back to the pip catalyst package when bug fixed
# https://github.com/catalyst-team/catalyst/issues/1440
git+https://github.com/Philmod/catalyst.git@fix-fp16#egg=catalyst \
# b/206990323 osmx 1.1.2 requires numpy >= 1.21 which we don't want.
osmnx==1.1.1 \
keras-cv && \
# b/290392955 version 0.5.1 breaks the test
keras-cv==0.5.0 && \
apt-get -y install libspatialindex-dev
RUN pip install pytorch-ignite \
qgrid \
Expand Down
1 change: 1 addition & 0 deletions tests/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import torch
from transformers import AdamW
import transformers.pipelines # verify this import works


class TestTransformers(unittest.TestCase):
Expand Down