Skip to content

update arguments #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions swift/llm/utils/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ def _handle_dataset_sample(self):
return
_dataset = self.dataset[0]
train_sample = parse_dataset_name(_dataset)[3]
if train_sample is None:
if train_sample == -1:
train_sample = self.train_dataset_sample
elif self.train_dataset_sample < train_sample:
_dataset = _dataset[:_dataset.find('#')]
train_sample = self.train_dataset_sample
_dataset = _dataset[:_dataset.find('#')]
_dataset = f'{_dataset}#{train_sample}'
self.dataset[0] = _dataset
self.train_dataset_sample = -1
Expand Down