Migrate to enable Python 3.10 (#1261)
Summary:
To support Python 3.10, we need to update a few model dependencies such as fairseq and spacy.
We need to add torchaudio dependency because newer version of fairseq now depends on torchaudio: https://github.com/facebookresearch/fairseq/blob/main/setup.py#L190
Torchtext also adds new dependency torchdata so we need to include that as well: https://github.com/pytorch/text/pull/1961
Currently, the CircleCI test runs on Python 3.8, and the GHA test runs on Python 3.10.
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1261
Reviewed By: desertfire
Differential Revision: D40778986
Pulled By: xuzhao9
fbshipit-source-id: 897829f662ac4554ab7aee87c50a39c662269b21