Skip to content

Commit e5569a9

Browse files
Bordas-rog
andauthored
drop install FairScale for TPU (#5113)
* drop install FairScale for TPU * typo Co-authored-by: Roger Shieh <[email protected]>
1 parent 3910b28 commit e5569a9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dockers/base-xla/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ RUN \
9797
python -c "fname = 'requirements.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('torch')] ; open(fname, 'w').writelines(lines)" && \
9898
# drop Horovod as it is not needed
9999
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('horovod')] ; open(fname, 'w').writelines(lines)" && \
100+
# drop fairscale as it is not needed
101+
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" && \
100102
# drop TorchVision as it was installed with XLA
101103
python -c "fname = 'requirements/examples.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('torchvision')] ; open(fname, 'w').writelines(lines)" && \
102104
pip install --requirement ./requirements/devel.txt --upgrade-strategy only-if-needed && \

dockers/tpu-tests/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ COPY ./ ./pytorch-lightning/
2727
RUN \
2828
# Install pytorch-lightning at the current PR, plus dependencies.
2929
#pip install -r pytorch-lightning/requirements.txt --no-cache-dir && \
30-
# drop Horovod
30+
# drop Horovod as it is not needed
3131
python -c "fname = 'pytorch-lightning/requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if not line.startswith('horovod')] ; open(fname, 'w').writelines(lines)" && \
32+
# drop fairscale as it is not needed
33+
python -c "fname = 'pytorch-lightning/requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)" && \
3234
pip install -r pytorch-lightning/requirements/devel.txt --no-cache-dir --upgrade-strategy only-if-needed
3335

3436
#RUN python -c "import pytorch_lightning as pl; print(pl.__version__)"

0 commit comments

Comments
 (0)