mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 18:22:34 +06:00
Fix trainer.py not showing signature columns (#38465)
Fix trainer.py not showing signature columns
This commit is contained in:
parent
4c3c177ecf
commit
2ff964bcb4
@ -932,7 +932,7 @@ class Trainer:
|
|||||||
columns = [k for k in signature_columns if k in dataset.column_names]
|
columns = [k for k in signature_columns if k in dataset.column_names]
|
||||||
if len(columns) == 0:
|
if len(columns) == 0:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"No columns in the dataset match the model's forward method signature: ({', '.join(signature_columns)}). "
|
f"No columns in the dataset match the model's forward method signature: ({', '.join(signature_columns)}). "
|
||||||
f"The following columns have been ignored: [{', '.join(ignored_columns)}]. "
|
f"The following columns have been ignored: [{', '.join(ignored_columns)}]. "
|
||||||
"Please check the dataset and model. You may need to set `remove_unused_columns=False` in `TrainingArguments`."
|
"Please check the dataset and model. You may need to set `remove_unused_columns=False` in `TrainingArguments`."
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user