Skip to content

Commit

Permalink
Fixing model file ownership permissions (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldeutsch authored Jan 23, 2022
1 parent e50609e commit 167f68d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions models/lewis2020/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ The CNN/DailyMail results are very close to those in the paper:

- [ ] Predictions exactly replicate results reported in the paper
No, see above.

## Changelog
### v1.1
- Fixed an issue with changing file ownership when the pre-trained model files were extracted.
4 changes: 2 additions & 2 deletions models/lewis2020/scripts/download-models.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
if [ "$CNNDM" = "true" ]; then
wget https://dl.fbaipublicfiles.com/fairseq/models/bart.large.cnn.tar.gz
tar -xvf bart.large.cnn.tar.gz
tar --no-same-owner -xvf bart.large.cnn.tar.gz
rm bart.large.cnn.tar.gz
fi

if [ "$XSUM" = "true" ]; then
wget https://dl.fbaipublicfiles.com/fairseq/models/bart.large.xsum.tar.gz
tar -xvf bart.large.xsum.tar.gz
tar --no-same-owner -xvf bart.large.xsum.tar.gz
rm bart.large.xsum.tar.gz
fi
2 changes: 1 addition & 1 deletion repro/models/lewis2020/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

VERSION = "1.0"
VERSION = "1.1"
MODEL_NAME = os.path.basename(os.path.dirname(__file__))
DOCKERHUB_REPO = f"danieldeutsch/{MODEL_NAME}"
DEFAULT_IMAGE = f"{DOCKERHUB_REPO}:{VERSION}"
Expand Down

0 comments on commit 167f68d

Please sign in to comment.