HF_ML_Tasksmith / tasks /tasksmith-e0f68dd4420c /tests /source /docker /custom-tokenizers.dockerfile
Download tasks/tasksmith-e0f68dd4420c/tests/source/docker/custom-tokenizers.dockerfile from FineEnvs/HF_ML_Tasksmith: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-e0f68dd4420c/tests/source/docker/custom-tokenizers.dockerfile
- Command line
-
hf download hf://datasets/FineEnvs/HF_ML_Tasksmith/tasks/tasksmith-e0f68dd4420c/tests/source/docker/custom-tokenizers.dockerfile
-
curl -L -o custom-tokenizers.dockerfile https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-e0f68dd4420c/tests/source/docker/custom-tokenizers.dockerfile
1.32 kB
| FROM python:3.9-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| USER root | |
| RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git cmake wget xz-utils build-essential g++5 libprotobuf-dev protobuf-compiler | |
| ENV UV_PYTHON=/usr/local/bin/python | |
| RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools | |
| RUN wget https://github.com/ku-nlp/jumanpp/releases/download/v2.0.0-rc3/jumanpp-2.0.0-rc3.tar.xz | |
| RUN tar xvf jumanpp-2.0.0-rc3.tar.xz | |
| RUN mkdir jumanpp-2.0.0-rc3/bld | |
| WORKDIR ./jumanpp-2.0.0-rc3/bld | |
| RUN wget -LO catch.hpp https://github.com/catchorg/Catch2/releases/download/v2.13.8/catch.hpp | |
| RUN mv catch.hpp ../libs/ | |
| RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local | |
| RUN make install -j 10 | |
| RUN uv pip install --no-cache --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu | |
| RUN uv pip install --no-cache-dir --no-deps accelerate --extra-index-url https://download.pytorch.org/whl/cpu | |
| RUN uv pip install --no-cache-dir "transformers[ja,testing,sentencepiece,jieba,spacy,ftfy,rjieba]" unidic unidic-lite | |
| # spacy is not used so not tested. Causes to failures. TODO fix later | |
| RUN python3 -m unidic download | |
| RUN pip uninstall -y transformers | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | |
| RUN apt remove -y g++ cmake xz-utils libprotobuf-dev protobuf-compiler |