Skip to content

Commit

Permalink
fix: move torch forward to 2.3.1
Browse files Browse the repository at this point in the history
After some good testing by Marc, we can see that the audio quality is
comparable with 2.3 and 2.1.

Torch 2.1.0 has vulnerabilities and is no longer available in some
environments, so we decided to bump to 2.3.1.

At the EV dev meeting, we decided not to move to 2.4 yet as there is a Future
Proofing warning we need to handle first (see #621).

Replaces #521, done in pyproject.toml instead of requirements.txt.

Fixes https://github.com/EveryVoiceTTS/EveryVoice/security/dependabot/2
Fixes https://github.com/EveryVoiceTTS/EveryVoice/security/dependabot/4
Fixes https://github.com/EveryVoiceTTS/EveryVoice/security/dependabot/10
Fixes https://github.com/EveryVoiceTTS/EveryVoice/security/dependabot/11
Fixes #558
  • Loading branch information
joanise committed Jan 14, 2025
1 parent 155f4fb commit 9907985
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ dependencies = [
"simple-term-menu==1.5.2",
"tabulate==0.9.0",
"tensorboard>=2.14.1",
"torch==2.1.0",
"torchaudio==2.1.0",
"torch==2.3.1",
"torchaudio==2.3.1",
"torchinfo==1.8.0",
"typer>=0.12.4",
"yaspin>=3.1.0",
Expand All @@ -84,8 +84,8 @@ dynamic = ["version"]
torch = [
# these requirements have to be installed ahead of time in your environment and from a different URL:
# CUDA_TAG=cu118 pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html
'torch==2.1.0; sys_platform == "darwin"',
'torchaudio==2.1.0; sys_platform == "darwin"',
'torch==2.3.1; sys_platform == "darwin"',
'torchaudio==2.3.1; sys_platform == "darwin"',
]
dev = [
"black~=24.3",
Expand Down
8 changes: 4 additions & 4 deletions requirements.torch.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# these requirements have to be installed ahead of time in your environment and from a different URL:
# CUDA_TAG=cu118 pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html
torch==2.1.0; sys_platform == "darwin"
torchaudio==2.1.0; sys_platform == "darwin"
torch==2.1.0+${CUDA_TAG}; sys_platform != "darwin"
torchaudio==2.1.0+${CUDA_TAG}; sys_platform != "darwin"
torch==2.3.1; sys_platform == "darwin"
torchaudio==2.3.1; sys_platform == "darwin"
torch==2.3.1+${CUDA_TAG}; sys_platform != "darwin"
torchaudio==2.3.1+${CUDA_TAG}; sys_platform != "darwin"

0 comments on commit 9907985

Please sign in to comment.