facebookresearch / facebookresearch/fairseq2

fairseq2n is incompatible with torch 2.3.0

Open
#600 1 comment 4 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.1k
Forks
144
Avg merge
4d 1h
Merged PRs (30d)
1

Description

**Describe the bug:**
Attempted to bump torch version to 2.3.0 and got an error:

ERROR: fairseq2n 0.2.1 has requirement torch==2.2.2, but you'll have torch 2.3.0 which is incompatible

**Describe how to reproduce:**
$python -m venv test
$source test/bin/activate
$pip install -r requirements_test_bug.txt

Content of requirements file:
`torch==2.3.0; python_version >= '3.8' and sys_platform !="darwin"

#Seamless MT4 related packages
fairseq2; sys_platform == "linux" and platform_machine != "aarch64"
--extra-index-url https://fair.pkg.atmeta.com/fairseq2/whl/pt2.3.0/cu118
#fairseq2 dependency on libcudart.so.11.0
nvidia-cuda-runtime-cu11==11.7.99; sys_platform == "linux" and platform_machine != "aarch64"
`
More other in case attempted to create a wheel it fails on dependency check

**Describe the expected behavior:**
fairseq2n should be compatible with torch==2.3.0 as same as , according to docs, fairseq2 that seems to has dependency on the package.

**Environment:**
$ python --version
Python 3.8.10
$pip --version
pip 20.0.2
$ pip freeze | grep torch
torch==2.3.0
No CUDA d(i)GPU is used.

**Additional Context:**
torch 2.3.0 is a preferable option for inferring of another model.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.