Skip to content

Commit f7f397a

Browse files
committed
Move kenlm patched installation to setup.py instead
1 parent bf3260a commit f7f397a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dockerfiles/pytorch/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
4747
# Upgrade pip
4848
RUN pip install --no-cache-dir --upgrade pip
4949

50-
# Due to an error affecting kenlm and cmake (see https://github.com/kpu/kenlm/pull/464)
51-
# Also see the transformers patch for it https://github.com/huggingface/transformers/pull/37091
52-
RUN pip install --no-cache-dir kenlm@git+https://github.com/kpu/kenlm@ba83eafdce6553addd885ed3da461bb0d60f8df7
53-
5450
# Install wheel and setuptools
5551
RUN pip install --no-cache-dir --upgrade pip ".[torch,st,diffusers]"
5652

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# libavcodec-extra : libavcodec-extra includes additional codecs for ffmpeg
1414

1515
install_requires = [
16+
# Due to an error affecting kenlm and cmake (see https://github.com/kpu/kenlm/pull/464)
17+
# Also see the transformers patch for it https://github.com/huggingface/transformers/pull/37091
18+
"kenlm@git+https://github.com/kpu/kenlm@ba83eafdce6553addd885ed3da461bb0d60f8df7",
1619
"transformers[sklearn,sentencepiece,audio,vision]==4.48.0",
1720
"huggingface_hub[hf_transfer]==0.27.1",
1821
# vision

0 commit comments

Comments
 (0)