transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Error reported when fine tuning on my dataset using ''run_language_modeling.py"

Open jasonachonu opened this issue 6 years ago • 1 comments

🐛 Bug

Information

Model I am using (RoBerta):

Language I am using the model on (English):

The problem arises when using:

  • [ ] the official example scripts: (give details below) Using the script provided in run_language_modeling.py I tried to fine tune the model on my own dataset. But it shows a "KeyError 1" when It is about to run the first epoch and first iteration
  • [ ] my own modified scripts: (give details below) i only modified the script to read in my dataset using the LineByLineTextDataset class to read in my sentence which is in an excel file and convert them to a list like in the class

Please advice, if there a proper format my data-set should be in, before fine tuning it.

The tasks I am working on is:

  • [ ] an official GLUE/SQUaD task: (give the name)
  • [ ] my own task or dataset: (give details below) To Fine tuning the language model of Bert on our my own data.

To reproduce

Steps to reproduce the behavior:

1. 2. 3.

Expected behavior

Environment info

  • transformers version:
  • Platform:
  • Python version:
  • PyTorch version (GPU?): yes
  • Tensorflow version (GPU?):
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: yes

jasonachonu avatar Mar 09 '20 19:03 jasonachonu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 09 '20 12:05 stale[bot]