Skip to content

Python

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

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”