Key Error 'loss' while fine tuning GPT-2 with the Trainer utility

mpaangela
Mon, 12 Jul 2021 20:27:14 +0000

I have similar issue. After I change the label key into exactly the word ‘labels’. Then it worked.