Skip to content

Commit 9206ba0

Browse files
authored
Unpin accelerate to fix transformers pipeline (#1271)
http://b/254245259
1 parent a1efcff commit 9206ba0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile.tmpl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,14 @@ RUN pip install flashtext \
522522
optuna \
523523
plotly_express \
524524
albumentations \
525-
# b/254245259 catalyst requires accelerate but it breaks with the version 0.13.1
526-
accelerate==0.12.0 \
527-
catalyst \
525+
accelerate \
526+
# b/290207097 switch back to the pip catalyst package when bug fixed
527+
# https://github.com/catalyst-team/catalyst/issues/1440
528+
git+https://github.com/Philmod/catalyst.git@fix-fp16#egg=catalyst \
528529
# b/206990323 osmx 1.1.2 requires numpy >= 1.21 which we don't want.
529530
osmnx==1.1.1 \
530-
keras-cv && \
531+
# b/290392955 version 0.5.1 breaks the test
532+
keras-cv==0.5.0 && \
531533
apt-get -y install libspatialindex-dev
532534
RUN pip install pytorch-ignite \
533535
qgrid \

tests/test_transformers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import torch
44
from transformers import AdamW
5+
import transformers.pipelines # verify this import works
56

67

78
class TestTransformers(unittest.TestCase):

0 commit comments

Comments
 (0)