This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update alternative Dockerfiles for different CUDA versions (#170)
* update alternative Dockerfiles for different CUDA versions * update comment
- Loading branch information
Showing
4 changed files
with
31 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# This Dockerfile is used to build an image from a specific PyPI release of allennlp and | ||
# allennlp-models. It requires a single build arg, ALLENNLP_VERSION, which should | ||
# be the PyPI release version (allennlp and allennlp-models are released together | ||
# with the same version). For example, you could set ALLENNLP_VERSION=1.0.0rc3. | ||
# allennlp-models. | ||
# It requires two build args: RELEASE and CUDA. | ||
# RELEASE should be a allennlp/allennlp-models version, such as '1.2.2', | ||
# CUDA should be a supported CUDA version, such '10.2'. | ||
|
||
ARG ALLENNLP_VERSION | ||
ARG RELEASE | ||
ARG CUDA | ||
|
||
FROM allennlp/allennlp:v${ALLENNLP_VERSION} | ||
FROM allennlp/allennlp:v${RELEASE}-cuda${CUDA} | ||
|
||
# Need to specify this ARG again because the FROM stage consumes all args before it. | ||
ARG ALLENNLP_VERSION | ||
ARG RELEASE | ||
|
||
RUN pip install --no-cache-dir allennlp-models==${ALLENNLP_VERSION} | ||
RUN pip install --no-cache-dir allennlp-models==${RELEASE} |
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