mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Upgrade PyTorch dependencies to latest
In preparation for an 8.0 release, this updates PyTorch NLP dependencies to more recent and latest minor versions. Amongst other things, this introduces a fix from transformers that is helpful for text embedding tasks with certain DPR models. See: https://github.com/huggingface/transformers/issues/13670 Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
This commit is contained in:
parent
e6bb917d83
commit
1ffbe002c4
@ -11,7 +11,6 @@ nox
|
|||||||
lightgbm
|
lightgbm
|
||||||
pytest-cov
|
pytest-cov
|
||||||
mypy
|
mypy
|
||||||
huggingface-hub>=0.0.17
|
sentence-transformers>=2.1.0
|
||||||
sentence-transformers>=2.0.0
|
|
||||||
torch>=1.9.0
|
torch>=1.9.0
|
||||||
transformers[torch]>=4.11.0
|
transformers[torch]>=4.12.0
|
||||||
|
5
setup.py
5
setup.py
@ -59,10 +59,9 @@ extras = {
|
|||||||
"scikit-learn": ["scikit-learn>=0.22.1,<1"],
|
"scikit-learn": ["scikit-learn>=0.22.1,<1"],
|
||||||
"lightgbm": ["lightgbm>=2,<4"],
|
"lightgbm": ["lightgbm>=2,<4"],
|
||||||
"pytorch": [
|
"pytorch": [
|
||||||
"huggingface-hub>=0.0.17,<1",
|
"sentence-transformers>=2.1.0,<3",
|
||||||
"sentence-transformers>=2.0.0,<3",
|
|
||||||
"torch>=1.9.0,<2",
|
"torch>=1.9.0,<2",
|
||||||
"transformers[torch]>=4.11.0<5",
|
"transformers[torch]>=4.12.0,<5",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
extras["all"] = list({dep for deps in extras.values() for dep in deps})
|
extras["all"] = list({dep for deps in extras.values() for dep in deps})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user