eland/requirements-dev.txt
David Kyle 0eb36faa5b
Restrict PyTorch version not to be more advanced than that used in Elasticsearch (#479)
Elasticsearch uses v1.11 of PyTorch. Models created with the latest PyTorch 
release (v1.12) are not compatible with v1.11. This pins the PyTorch version
to 1.11 to prevent the incompatibility. The version of the Elasticsearch Python
client is now required to be >= Eland.

All users of Eland for importing NLP models should upgrade.
2022-07-07 14:56:42 +01:00

39 lines
601 B
Plaintext

#
# Basic requirements
#
elasticsearch>=8.3,<9
pandas>=1.2,<2
matplotlib<4
numpy<2
tqdm<5
#
# Extras
#
scikit-learn>=0.22.1,<2
xgboost>=0.90,<2
scikit-learn>=0.22.1,<2
lightgbm>=2,<4
# PyTorch doesn't support Python 3.10 yet (pytorch/pytorch#66424)
# Elasticsearch uses v1.11.0 of PyTorch
torch>=1.11.0,<1.12.0; python_version<'3.10'
# Versions known to be compatible with torch 1.11
sentence-transformers>=2.1.0,<=2.2.2; python_version<'3.10'
transformers[torch]>=4.12.0,<=4.20.1; python_version<'3.10'
#
# Testing
#
pytest>=5.2.1
pytest-mock
pytest-cov
nbval
#
# Docs
#
nox
numpydoc>=0.9.0
mypy