Skip to content

Fix KTOTrainer._prepare_dataset type hint#6207

Merged
qgallouedec merged 2 commits into
mainfrom
fix-kto-type-hint
Jul 2, 2026
Merged

Fix KTOTrainer._prepare_dataset type hint#6207
qgallouedec merged 2 commits into
mainfrom
fix-kto-type-hint

Conversation

@qgallouedec

@qgallouedec qgallouedec commented Jun 29, 2026

Copy link
Copy Markdown
Member

Basic type hint fix.


Note

Low Risk
Annotation-only change with no behavioral impact.

Overview
Tightens the args parameter on KTOTrainer._prepare_dataset from KTOConfig | None to KTOConfig, matching how the method is always called (with args or self.args after __init__ has already replaced a missing config with a default).

No runtime logic changes—type checking and documentation only.

Reviewed by Cursor Bugbot for commit ee22434. Bugbot is set up for automated code reviews on this repo. Configure here.

@bot-ci-comment

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@qgallouedec qgallouedec changed the title Fox KTOTrainer._prepare_dataset type hint Fix KTOTrainer._prepare_dataset type hint Jun 30, 2026
@qgallouedec qgallouedec merged commit 49f5efb into main Jul 2, 2026
5 checks passed
@qgallouedec qgallouedec deleted the fix-kto-type-hint branch July 2, 2026 14:34
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