text icon indicating copy to clipboard operation
text copied to clipboard

[RFC] Deprecate/Stop TorchText releases starting with Pytorch release 2.4

Open atalman opened this issue 1 year ago • 12 comments

🚀 Deprecation of TorchText releases

As of September 2023 we have paused active development of TorchText because our focus has shifted away from building out this library offering.

We would like to do the following:

  • For TorchText Release 0.17.2 and 0.18.x TorchData dependency is removed from TorchText [COMPLETED]
    • Users can still install torchdata manually to use the datasets
  • Minor PyTorch Release 2.3 will be last Release where we release TorchText 0.18
  • Starting PyTorch Release 2.4 we would like to stop releasing TorchText.
  • TorchText will still be available from nightlies on a best effort basis, with no guarantee that we'll be fixing issues and breakages

For reference here is the PyTorch Release schedule: https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-cadence

cc @seemethere @malfet @matthewdzmura @NicolasHug

atalman avatar Mar 28 '24 21:03 atalman

Do we recommend any alternatives? Ex: TorchServe has a text_classifier handler and tests associated with these ( uses TorchText) https://github.com/pytorch/serve/blob/master/ts/torch_handler/text_classifier.py

So, wondering whats the strategy. Should we replace it with HuggingFace and PyTorch would come up another solution at a later date?

agunapal avatar Mar 28 '24 22:03 agunapal

Can we release TorchText in PyTorch 2.3 for all platforms (ex: aarch64, not sure what other platform has this missing for PyTorch 2.2) ?

agunapal avatar Mar 28 '24 22:03 agunapal

Yes. we will release same set of binaries as for PyTorch 2.2: https://hud2.pytorch.org/hud/pytorch/text/release%2F0.18/1?per_page=50

atalman avatar Mar 28 '24 22:03 atalman

Do we recommend any alternatives?

This would be case-by-case. For the TorchServe example the simple alternative is to copy/paste the one functionality that was used from torchtext into the example. It's very short and simple, so that's a viable solution.

https://github.com/pytorch/text/blob/main/torchtext/data/utils.py#L207-L228

NicolasHug avatar Apr 02 '24 09:04 NicolasHug

Do we recommend any alternatives?

This would be case-by-case. For the TorchServe example the simple alternative is to copy/paste the one functionality that was used from torchtext into the example. It's very short and simple, so that's a viable solution.

https://github.com/pytorch/text/blob/main/torchtext/data/utils.py#L207-L228

Thanks. This seems like a good idea. We also use from torchtext.data.utils import get_tokenizer . Looking at the code, it doesn't seem too complicated to copy paste it for basic_english

agunapal avatar Apr 02 '24 22:04 agunapal

cc @matthewdzmura @seemethere : releng team and @malfet propose to stop releasing TorchText as of release 2.3 since we can't ensure the quality of the release.

atalman avatar Apr 10 '24 17:04 atalman

What would be the alternative if I need a preprocessing for bert / vocab / regex operations compiled with my model?

HadiSDev avatar Apr 18 '24 08:04 HadiSDev

keras.io is a viable alternative ...

ffquintella avatar Apr 30 '24 12:04 ffquintella

Is there any alternative for c++-only environments, that need native tokenizers now?

gluefox avatar May 02 '24 09:05 gluefox