From 655caff919c8006f3bcd9bdd3b428e754a4225c0 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 15 Nov 2023 02:57:13 +0100 Subject: [PATCH 1/5] Update requirements to follow fairseq --- laser_encoders/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laser_encoders/requirements.txt b/laser_encoders/requirements.txt index f872e801..63b8274b 100644 --- a/laser_encoders/requirements.txt +++ b/laser_encoders/requirements.txt @@ -1,8 +1,8 @@ fairseq==0.12.2 -numpy==1.25.0 +numpy==1.21.3 pytest==7.4.0 Requests==2.31.0 sacremoses==0.1.0 sentencepiece==0.1.99 -torch==2.0.1 +torch==1.10.0 tqdm==4.65.0 From 8f5fdbf1862bcf5514c7c8149902ca6bf54971c1 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 15 Nov 2023 03:00:03 +0100 Subject: [PATCH 2/5] Update README --- laser_encoders/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laser_encoders/README.md b/laser_encoders/README.md index 4c508824..49b69516 100644 --- a/laser_encoders/README.md +++ b/laser_encoders/README.md @@ -7,10 +7,10 @@ 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) From ee667b14a503079d4b12a41e992b05f8a03f3b4b Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 15 Nov 2023 11:27:24 +0100 Subject: [PATCH 3/5] Update dependencies in toml file --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ] From 8662bc44bb09644650529f557e5bd683c8fb7ded Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 15 Nov 2023 11:28:43 +0100 Subject: [PATCH 4/5] Remove requirements.txt --- laser_encoders/requirements.txt | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 laser_encoders/requirements.txt diff --git a/laser_encoders/requirements.txt b/laser_encoders/requirements.txt deleted file mode 100644 index 63b8274b..00000000 --- a/laser_encoders/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -fairseq==0.12.2 -numpy==1.21.3 -pytest==7.4.0 -Requests==2.31.0 -sacremoses==0.1.0 -sentencepiece==0.1.99 -torch==1.10.0 -tqdm==4.65.0 From 2aa2e4f7abbb21cbd9ae35abe657b4188b0d9c13 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 15 Nov 2023 11:49:34 +0100 Subject: [PATCH 5/5] Update laser_encoders README --- laser_encoders/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laser_encoders/README.md b/laser_encoders/README.md index 49b69516..40ddbdae 100644 --- a/laser_encoders/README.md +++ b/laser_encoders/README.md @@ -13,7 +13,7 @@ laser_encoders is the official Python package for the Facebook [LASER](https://g - 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