How to install torchtext with ROCm?

I’m using rocm/pytorch docker and torchtext is not installed.
When I pip install torchtext, it will try to install cuda version pytorch.
Any other way to install it?
(I tried to build from source but failed)