Skip to content

fix: support dict access in SFT Trainer #3677

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 7 commits into from
Jul 4, 2025
Merged

Conversation

jannisborn
Copy link
Contributor

What does this PR do?

Fixes #3641 (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

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.

jannisborn and others added 2 commits July 2, 2025 14:37
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
@kashif
Copy link
Collaborator

kashif commented Jul 2, 2025

thanks @jannisborn one more formatting left... perhaps easiest if you run make precommit in the root dir of TRL

@jannisborn
Copy link
Contributor Author

Thanks @kashif for catching this, the format-on-save in my IDE reorganized the entire file, so I had to disable it. Should be fixed now!

@kashif
Copy link
Collaborator

kashif commented Jul 2, 2025

@jannisborn yes the formatting is tricky... still failing

@kashif
Copy link
Collaborator

kashif commented Jul 2, 2025

@jannisborn I believe the CI is failing due to un-releated reasons... I will double check locally

@jannisborn
Copy link
Contributor Author

Indeed @kashif -- it seemed like a network issue, maybe just rerunning the CI will fix it. I rebased to main now

@kashif kashif merged commit 7eb52c1 into huggingface:main Jul 4, 2025
marcandrelarochelle pushed a commit to marcandrelarochelle/trl that referenced this pull request Jul 29, 2025
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
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.

Unnecessary breaking change in SFTTrainer._prepare_dataset from 0.19.0 compared to 0.18.2
3 participants