Skip to content

fix: update trl to 0.15.2 for compatibility with transformers 4.51.3 - #37

Open
kuishou68 wants to merge 1 commit into
Lordog:mainfrom
kuishou68:fix/issue-36-trl-transformers-version
Open

fix: update trl to 0.15.2 for compatibility with transformers 4.51.3#37
kuishou68 wants to merge 1 commit into
Lordog:mainfrom
kuishou68:fix/issue-36-trl-transformers-version

Conversation

@kuishou68

Copy link
Copy Markdown

Summary

The documents/chapter11/requirements.txt pins trl==0.9.4 together with transformers==4.51.3, which are incompatible — TRL 0.9.4 targets Transformers ~4.40 and its internal APIs diverge significantly from 4.46+. This causes import errors when running the RLHF notebook.

This PR updates trl to 0.15.2, which is aligned with the Transformers 4.51.x API.

Closes #36

Signed-off-by: Cocoon-Break 54054995+kuishou68@users.noreply.github.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.

fix: incompatible version pins trl==0.9.4 vs transformers==4.51.3 in chapter11/requirements.txt

1 participant