Skip to content

Update dataset#9543

Merged
Jintao-Huang merged 3 commits into
modelscope:mainfrom
Jintao-Huang:update_dataset_0612
Jun 12, 2026
Merged

Update dataset#9543
Jintao-Huang merged 3 commits into
modelscope:mainfrom
Jintao-Huang:update_dataset_0612

Conversation

@Jintao-Huang

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors dataset loading by moving the core loading logic into a new load_dataset method on BaseArguments, which simplifies both sft.py and driver_utils.py. However, the changes in driver_utils.py introduce a regression by removing the preprocessing logic and restricting the supported RLHF types to only grpo and gkd via an assertion. The review feedback correctly identifies that this breaks support for other RLHF types (such as dpo and kto) and provides actionable suggestions to restore the template parameter and conditionally apply the preprocessing steps.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread swift/ray/megatron/driver_utils.py
Comment thread swift/ray/megatron/driver_utils.py
Comment thread swift/ray/megatron/driver_utils.py
@Jintao-Huang Jintao-Huang merged commit da262a7 into modelscope:main Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants