我正在学习如何使用 Huggingface Transformers 库,在 Kaggle Twitter 灾难数据集上构建二元分类 BERT 模型。
进入训练循环后,在forward()函数执行期间出现以下错误:
Epoch 1/50
----------
Aici incepe train_epoch
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py:477: UserWarning: This DataLoader will create 4 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
cpuset_checked))
----Checkpoint train_epoch 2----
----Checkpoint train_epoch …Run Code Online (Sandbox Code Playgroud)