|
|
|
FROM nvidia/cuda:11.2.2-base |
|
|
|
|
|
FROM tiangolo/uvicorn-gunicorn:python3.8 |
|
|
|
RUN apt-get update --fix-missing && apt-get install -y wget \ |
|
libsndfile1 \ |
|
sox \ |
|
git \ |
|
git-lfs |
|
|
|
RUN python -m pip install --upgrade pip |
|
RUN python -m pip --no-cache-dir install fairseq@git+https://github.com//pytorch/fairseq.git@f2146bdc7abf293186de9449bfa2272775e39e1d |
|
RUN python -m pip --no-cache-dir install git+https://github.com/s3prl/s3prl.git |
|
|
|
COPY s3prl/ /app/s3prl |
|
COPY src/ /app/src |
|
|
|
|
|
RUN mkdir /app/data |
|
|
|
|
|
|
|
RUN git config --global user.email "[email protected]" |
|
RUN git config --global user.name "SUPERB Admin" |
|
|
|
|
|
ENV upstream_model osanseviero/hubert_base |
|
ENV downstream_task asr |
|
ENV hub huggingface |
|
ENV hf_hub_org None |
|
ENV push_to_hf_hub True |
|
ENV override None |
|
|
|
WORKDIR /app/s3prl |
|
|
|
|
|
|
|
|
|
|
|
CMD python run_downstream.py -n ${downstream_task} -m train -u ${upstream_model} -d ${downstream_task} --hub ${hub} --hf_hub_org ${hf_hub_org} --push_to_hf_hub ${push_to_hf_hub} --override ${override} |