huggingface / huggingface/course

setup_chat_template still used in chapter 11 of the LLM course

Open
#1,168 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
4.2k
Forks
1.4k
Avg merge
13m
Merged PRs (30d)
1

Description

In Chapter 11.3 of the [Huggingface LLM course](https://huggingface.co/learn/llm-course/chapter11/3), the code snippet to start fine-tuning the model uses the `setup_chat_template` function which is deprecated and removed from newer versions of the `trl` library.

I have created a pull request with proposed changes updating that snippet to use `clone_chat_template` instead.

Here is the PR link. I would love a review on it. This fix will keep learners from having to track down what the replacement function is. https://github.com/huggingface/course/pull/1167

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.