To disable this warning, please explicitly set TOKENIZERS_PARALLELISM=(true | false)

pytorch transformers训练模型时报错:To disable this warning, please explicitly set TOKENIZERS_PARALLELISM=(true | false)

解决方法:

代码中导入:

import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"

你可能感兴趣的:(报错解决)