Try this, this will solve the issue.
!pip3 install -q torch==2.2.0 torchtext==0.17.0 --index-url https://download.pytorch.org/whl/cu118 !pip install -q -U portalocker==2.8.2
`