CoolFace
Apppublic

chendl/compositional_test

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes
1FROM python:3.82LABEL maintainer="Hugging Face"3 4RUN apt update5RUN git clone https://github.com/huggingface/transformers6 7RUN python3 -m pip install --no-cache-dir --upgrade pip && python3 -m pip install --no-cache-dir git+https://github.com/huggingface/doc-builder ./transformers[dev]8RUN apt-get -y update && apt-get install -y libsndfile1-dev && apt install -y tesseract-ocr9 10# Torch needs to be installed before deepspeed11RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed]12 13RUN python3 -m pip install --no-cache-dir torchvision git+https://github.com/facebookresearch/detectron2.git pytesseract14RUN python3 -m pip install --no-cache-dir pytorch-quantization --extra-index-url https://pypi.ngc.nvidia.com15RUN python3 -m pip install -U "itsdangerous<2.1.0"16 17# Test if the image could successfully build the doc. before publishing the image18RUN doc-builder build transformers transformers/docs/source/en --build_dir doc-build-dev --notebook_dir notebooks/transformers_doc --clean19RUN rm -rf doc-build-dev