Skip to content

Commit b7fc2da

Browse files
authored
Kenlm (#37091)
* kenlm * kenlm * kenlm * kenlm --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
1 parent bab605d commit b7fc2da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"jaxlib>=0.4.1,<=0.4.13",
126126
"jieba",
127127
"jinja2>=3.1.0",
128-
"kenlm",
128+
"kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5",
129129
# Keras pin - this is to make sure Keras 3 doesn't destroy us. Remove or change when we have proper support.
130130
"keras>2.9,<2.16",
131131
"keras-nlp>=0.3.1,<0.14.0", # keras-nlp 0.14 doesn't support keras 2, see pin on keras.
@@ -307,7 +307,7 @@ def run(self):
307307
extras["integrations"] = extras["hub-kernels"] + extras["optuna"] + extras["ray"] + extras["sigopt"]
308308

309309
extras["serving"] = deps_list("pydantic", "uvicorn", "fastapi", "starlette")
310-
extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer", "kenlm")
310+
extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer", "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5")
311311
# `pip install ".[speech]"` is deprecated and `pip install ".[torch-speech]"` should be used instead
312312
extras["speech"] = deps_list("torchaudio") + extras["audio"]
313313
extras["torch-speech"] = deps_list("torchaudio") + extras["audio"]

src/transformers/dependency_versions_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"jaxlib": "jaxlib>=0.4.1,<=0.4.13",
3333
"jieba": "jieba",
3434
"jinja2": "jinja2>=3.1.0",
35-
"kenlm": "kenlm",
35+
"kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5": "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5",
3636
"keras": "keras>2.9,<2.16",
3737
"keras-nlp": "keras-nlp>=0.3.1,<0.14.0",
3838
"kernels": "kernels>=0.3.2,<0.4",

0 commit comments

Comments
 (0)