From cd6118efba533e95b6c94c36aa61dc7152f73d5e Mon Sep 17 00:00:00 2001 From: Okewunmi Paul Date: Wed, 15 Nov 2023 15:27:08 +0100 Subject: [PATCH] Decrease versions of numpy and torch required by laser-encoders (#264) * Update requirements to follow fairseq * Update README * Update dependencies in toml file * Remove requirements.txt * Update laser_encoders README --- laser_encoders/README.md | 6 +++--- laser_encoders/requirements.txt | 8 -------- pyproject.toml | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 laser_encoders/requirements.txt diff --git a/laser_encoders/README.md b/laser_encoders/README.md index ca806a5f..4980063a 100644 --- a/laser_encoders/README.md +++ b/laser_encoders/README.md @@ -7,13 +7,13 @@ laser_encoders is the official Python package for the Facebook [LASER](https://g ## Dependencies - Python `>= 3.8` -- [PyTorch `>= 2.0`](http://pytorch.org/) +- [PyTorch `>= 1.10.0`](http://pytorch.org/) - sacremoses `>=0.1.0` - sentencepiece `>=0.1.99` -- numpy `>=1.25.0` +- numpy `>=1.21.3` - fairseq `>=0.12.2` -You can find a full list of requirements [here](requirements.txt) +You can find a full list of requirements [here](https://github.com/facebookresearch/LASER/blob/main/pyproject.toml) ## Installation diff --git a/laser_encoders/requirements.txt b/laser_encoders/requirements.txt deleted file mode 100644 index f872e801..00000000 --- a/laser_encoders/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -fairseq==0.12.2 -numpy==1.25.0 -pytest==7.4.0 -Requests==2.31.0 -sacremoses==0.1.0 -sentencepiece==0.1.99 -torch==2.0.1 -tqdm==4.65.0 diff --git a/pyproject.toml b/pyproject.toml index def6fd5c..74650610 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,8 +13,8 @@ requires-python = ">=3.8" dependencies = [ 'sacremoses>=0.1.0', 'sentencepiece>=0.1.99', - 'numpy>=1.24', - 'torch>=2.0.1', + 'numpy>=1.21.3', + 'torch>=1.10.0', 'fairseq>=0.12.2', ]