-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from huggingface/python_2
Adding OpenAI GPT and Transformer-XL models, compatibility with Python 2
- Loading branch information
Showing
30 changed files
with
5,728 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
build_py3: | ||
working_directory: ~/pytorch-pretrained-BERT | ||
docker: | ||
- image: circleci/python:3.7 | ||
- image: circleci/python:3.5 | ||
steps: | ||
- checkout | ||
- run: sudo pip install --progress-bar off . | ||
- run: sudo pip install pytest | ||
- run: sudo pip install pytest ftfy spacy | ||
- run: sudo python -m spacy download en | ||
- run: python -m pytest -sv tests/ | ||
build_py2: | ||
working_directory: ~/pytorch-pretrained-BERT | ||
docker: | ||
- image: circleci/python:2.7 | ||
steps: | ||
- checkout | ||
- run: sudo pip install --progress-bar off . | ||
- run: sudo pip install pytest spacy | ||
- run: sudo pip install ftfy==4.4.3 | ||
- run: sudo python -m spacy download en | ||
- run: python -m pytest -sv tests/ | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build_py3 | ||
- build_py2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.