Skip to content

August 18, 2022

[Solved] HuggingFace Transformers Model Return “‘ValueError: too many values to unpack (expected 2)’, upon training a Bert binary classification model”

Last Updated on 2022-08-18 by Clay

In the current deep learning framework, whether using Tensorflow, PyTorch or others… the input and output of the model, the flow of data, we need to pay great attention to the shape of data. Because if you are not careful, the model will return an error message.

Read More »[Solved] HuggingFace Transformers Model Return “‘ValueError: too many values to unpack (expected 2)’, upon training a Bert binary classification model”
Exit mobile version