Skip to content

Conversation

@Rocketknight1
Copy link
Member

The chat template docs reference Blenderbot, but this model is quite obsolete and doesn't actually have a chat template. The examples worked for a while because a default chat template was set, but these have now been deprecated.

This update rewrites the doc with more modern models.

Fixes #33246

@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.

@Rocketknight1
Copy link
Member Author

Ready for review, cc @LysandreJik !

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, much better to feature more recent models. Thanks for the doc update @Rocketknight1

@Rocketknight1 Rocketknight1 merged commit 0d86727 into main Sep 3, 2024
@Rocketknight1 Rocketknight1 deleted the chat_template_doc_fix branch September 3, 2024 11:18
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* Update docs to remove obsolete Blenderbot

* Remove another reference to Blenderbot
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.

ValueError: Cannot use apply_chat_template() because tokenizer.chat_template is not set

3 participants