Skip to content

Conversation

@qheaden
Copy link

@qheaden qheaden commented Jan 26, 2026

The old setup_chat_template function from trl has been deprecated and removed from the latest versions of the library in favor of the clone_chat_template function. For new learners following this chapter of the course, this fix prevents them from getting errors from trying to import the removed function.

The old `setup_chat_template` function from `trl` has been deprecated and removed from the latest versions of the library in favor of the `clone_chat_template` function. For new learners following this chapter of the course, this fix prevents them from getting errors from trying to import the removed function.
@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.

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