starcoder
starcoder copied to clipboard
KeyError: 'response '
Hi,I am trying to run the fine-tuning code on my computer, but I got KeyError: 'response',the environment is installed according to the README.
Traceback (most recent call last):
File "/home/starcoder/finetune/finetune.py", line 313, in
Hi. It seems like the dataset that you use do not have a column 'response'. You should check the name of columns of your dataset and those you want to use for the fine-tuning. And there is a space at the end of 'response ', you should probably remove it and use response.
Hi. It seems like the dataset that you use do not have a column
'response'. You should check the name of columns of your dataset and those you want to use for the fine-tuning. And there is a space at the end of'response ', you should probably remove it and useresponse.
Yes, I took into account all the situations you mentioned, I tried to print the sample dataset used by the model, as shown below, the dataset has a 'response' key and no space after it. What I did was to reproduce this project, try to run through this fine-tuning code, the environment and datasets were installed according to README, I tried to replace the relevant parameters directly with 'response' in the code, but it didn't work.
Can you share the command you used in order to run the code?
Hi. It seems like the dataset that you use do not have a column
'response'. You should check the name of columns of your dataset and those you want to use for the fine-tuning. And there is a space at the end of'response ', you should probably remove it and useresponse.
Additional comments on Armel's reply: there is a invisible tailing space after the backslash of "response"\ , which causes parsing issue:
--output_column_name="response"\
When running the fine-tuning code, removing that extra space should fix the issue.