pytorch / text

Models, data loaders and abstractions for language processing, powered by PyTorch
https://pytorch.org/text
BSD 3-Clause "New" or "Revised" License
3.5k stars 812 forks source link

Add removeable warnings indicating this is the last release #2248

Closed NicolasHug closed 6 months ago

NicolasHug commented 6 months ago

Test plan:

Every single one of these calls will raise the warning:

```bash python -c "from torchtext import datasets" python -c "import torchtext.datasets" python -c "from torchtext.datasets import AG_NEWS" python -c "from torchtext import data" python -c "import torchtext.data" python -c "from torchtext.data import custom_replace" python -c "from torchtext import models" python -c "import torchtext.models" python -c "from torchtext.models import ROBERTA_BASE_ENCODER" python -c "from torchtext import nn" python -c "import torchtext.nn" python -c "from torchtext.nn import InProjContainer" python -c "from torchtext import utils" python -c "import torchtext.utils" python -c "from torchtext.utils import LOCK_TIMEOUT" python -c "from torchtext import vocab" python -c "import torchtext.vocab" python -c "from torchtext.vocab import Vocab" python -c "from torchtext import transforms" python -c "import torchtext.transforms" python -c "from torchtext.transforms import SentencePieceTokenizer" python -c "from torchtext import functional" python -c "import torchtext.functional" python -c "from torchtext.functional import to_tensor" python -c "from torchtext import prototype" python -c "import torchtext.prototype" python -c "from torchtext.prototype import transforms" python -c "from torchtext import experimental" python -c "import torchtext.experimental" python -c "from torchtext.experimental import transforms" ```

While none of these calls will raise the warning:

``` python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import datasets" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.datasets" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.datasets import AG_NEWS" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import data" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.data" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.data import custom_replace" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import models" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.models" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.models import ROBERTA_BASE_ENCODER" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import nn" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.nn" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.nn import InProjContainer" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import utils" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.utils" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.utils import LOCK_TIMEOUT" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import vocab" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.vocab" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.vocab import Vocab" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import transforms" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.transforms" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.transforms import SentencePieceTokenizer" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import functional" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.functional" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.functional import to_tensor" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import prototype" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.prototype" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.prototype import transforms" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext import experimental" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); import torchtext.experimental" python -c "import torchtext; torchtext.disable_torchtext_deprecation_warning(); from torchtext.experimental import transforms" ```
pytorch-bot[bot] commented 6 months ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/text/2248

Note: Links to docs will display an error until the docs builds have been completed.

:heavy_exclamation_mark: 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

:x: 10 New Failures, 5 Unrelated Failures

As of commit d7b799ad816297e5ee7a860dc96f8e023a53ada4 with merge base ecb9ebc54cbd44b558f026d338c795d2bf7f4ef9 (image):

NEW FAILURES - The following jobs have failed:

* [Bandit / build](https://hud.pytorch.org/pr/pytorch/text/2248#23109317435) ([gh](https://github.com/pytorch/text/actions/runs/8438059775/job/23109317435)) `Process completed with exit code 1.` * [Build M1 Conda / pytorch/text / upload / conda-py3_8-cpu](https://hud.pytorch.org/pr/pytorch/text/2248#23109408808) ([gh](https://github.com/pytorch/text/actions/runs/8438059920/job/23109408808)) `Unable to find any artifacts for the associated workflow` * [CodeQL / build](https://hud.pytorch.org/pr/pytorch/text/2248#23109317447) ([gh](https://github.com/pytorch/text/actions/runs/8438059773/job/23109317447)) `ModuleNotFoundError: No module named 'torch'` * [Integration Test / tests (3.8) / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319418) ([gh](https://github.com/pytorch/text/actions/runs/8438059886/job/23109319418)) `RuntimeError: Command docker exec -t 869f2c1b9a121f51f8e17265c5432459b2dae7bb03ea24d676dce7a0f15e2c6f /exec failed with exit code 1` * [Lint / python-source-and-configs / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109318203) ([gh](https://github.com/pytorch/text/actions/runs/8438059860/job/23109318203)) `RuntimeError: Command docker exec -t 2aca216b0772da77873aad81cee8e4ded5c4980622aeaf82db7b34054c8a865e /exec failed with exit code 1` * [Unit-tests on Linux CPU / tests (3.10) / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319069) ([gh](https://github.com/pytorch/text/actions/runs/8438059849/job/23109319069)) `RuntimeError: Command docker exec -t d000fa6478df201f40d788d0c97d29b9bca6a86cb933e4e2e81737ab5d3d1dd7 /exec failed with exit code 1` * [Unit-tests on Linux CPU / tests (3.8) / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109318190) ([gh](https://github.com/pytorch/text/actions/runs/8438059849/job/23109318190)) `RuntimeError: Command docker exec -t 9bbd64b9dabd0468d8458f90ef21a569c949741b88f87e053a66badcc57ea10d /exec failed with exit code 1` * [Unit-tests on Linux CPU / tests (3.9) / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319702) ([gh](https://github.com/pytorch/text/actions/runs/8438059849/job/23109319702)) `RuntimeError: Command docker exec -t 2ab97ff1c7cdb07e2f50aaabe90809437b6b6a565db5dabd97008efa5c7ec2aa /exec failed with exit code 1` * [Unit-tests on Linux GPU / tests (3.8, 11.7) / linux-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319264) ([gh](https://github.com/pytorch/text/actions/runs/8438059861/job/23109319264)) `RuntimeError: Command docker exec -t 6d8d2a6375c6a21346044e065ef4bec622b8e3322c675d9bbfdf43cedde57ac2 /exec failed with exit code 1` * [Unit-tests on Macos CPU / tests (3.9) / macos-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109320021) ([gh](https://github.com/pytorch/text/actions/runs/8438059853/job/23109320021)) ` thinc/backends/numpy_ops.cpp:5948:3: error: no member named 'use_tracing' in '_PyCFrame'`

BROKEN TRUNK - The following jobs failed but were present on the merge base:

šŸ‘‰ Rebase onto the `viable/strict` branch to avoid these failures

* [Unit-tests on Macos CPU / tests (3.10) / macos-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109318635) ([gh](https://github.com/pytorch/text/actions/runs/8438059853/job/23109318635)) ` thinc/backends/numpy_ops.cpp:5948:3: error: no member named 'use_tracing' in '_PyCFrame'` * [Unit-tests on Macos CPU / tests (3.8) / macos-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319492) ([gh](https://github.com/pytorch/text/actions/runs/8438059853/job/23109319492)) ` thinc/backends/numpy_ops.cpp:5948:3: error: no member named 'use_tracing' in '_PyCFrame'` * [Unit-tests on Windows CPU / tests (3.10) / windows-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109318937) ([gh](https://github.com/pytorch/text/actions/runs/8438059865/job/23109318937)) `ImportError: DLL load failed while importing pywintypes: The specified module could not be found.` * [Unit-tests on Windows CPU / tests (3.8) / windows-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109319580) ([gh](https://github.com/pytorch/text/actions/runs/8438059865/job/23109319580)) `ImportError: DLL load failed while importing pywintypes: The specified module could not be found.` * [Unit-tests on Windows CPU / tests (3.9) / windows-job](https://hud.pytorch.org/pr/pytorch/text/2248#23109320053) ([gh](https://github.com/pytorch/text/actions/runs/8438059865/job/23109320053)) `ImportError: DLL load failed while importing pywintypes: The specified module could not be found.`

This comment was automatically generated by Dr. CI and updates every 15 minutes.