This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Parlai container #4868
Merged
Merged
Parlai container #4868
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fd54476
Dockerfile
mojtaba-komeili 476e6e7
clean ups
mojtaba-komeili 2af6c39
Comment update
mojtaba-komeili 9357d83
the intro for ParlAI Docker use
mojtaba-komeili 5a7f6cb
Merge branch 'parlai-container' of https://github.com/facebookresearc…
mojtaba-komeili File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) Meta, Inc. and its affiliates. | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
FROM nvidia/cuda:11.1.1-cudnn8-devel-ubuntu18.04 | ||
|
||
# Installing the required packages | ||
RUN apt update -y | ||
RUN apt install -y git curl | ||
|
||
# Installing Anaconda | ||
WORKDIR /root | ||
RUN curl https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh -o anaconda_installer.sh | ||
RUN bash anaconda_installer.sh -b -p | ||
ENV PATH="/root/anaconda3/bin:$PATH" | ||
|
||
# Installing recommmended pre-requirements | ||
RUN conda install pytorch torchvision torchaudio -c pytorch-lts -c nvidia | ||
RUN pip install spacy==3.2.4 tokenizers pandas transformers fairseq contractions boto3==1.17.95 botocore==1.20.95 | ||
|
||
# Configuring packages for English | ||
RUN python -m spacy download en_core_web_sm | ||
RUN echo "import nltk; nltk.download(\"stopwords\"); nltk.download(\"punkt\")" > nltk_dl_script.py | ||
RUN python nltk_dl_script.py | ||
|
||
# Download the ParlAI Github repo | ||
RUN git clone https://github.com/facebookresearch/ParlAI.git ~/ParlAI | ||
|
||
# Running ParlAI install | ||
RUN cd ~/ParlAI && \ | ||
pip install -r requirements.txt && \ | ||
python setup.py develop | ||
|
||
CMD ["parlai", "party"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😍 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we specify torch version? or just assume we work with highest torch number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good point. Should we set it to the same version as the install requirements?