We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8bc461 commit d066874Copy full SHA for d066874
swift/llm/argument/base_args/template_args.py
@@ -64,11 +64,12 @@ def __post_init__(self):
64
self.truncation_strategy = 'delete'
65
66
def get_template_kwargs(self):
67
+ from ..train_args import TrainArguments
68
truncation_strategy = self.truncation_strategy
69
if truncation_strategy == 'delete':
70
truncation_strategy = 'raise'
- remove_unused_columns = self.remove_unused_columns
71
- if hasattr(self, 'rlhf_type') and self.rlhf_type == 'grpo':
+ remove_unused_columns = self.remove_unused_columns # from DataArguments
72
+ if not isinstance(self, TrainArguments) or hasattr(self, 'rlhf_type') and self.rlhf_type == 'grpo':
73
remove_unused_columns = True
74
return {
75
'default_system': self.system,
0 commit comments