The author did not mention it in requirement.txt, but after testing, you had better use torch2.0 and the torchtext of the corresponding version. 作者在requirement.txt中没有讲,但经过测试,pytorch2.0以及对应的torchtext版本是必须的。