Skip to content

Conversation

@zucchini-nlp
Copy link
Member

What does this PR do?

As discussed internally, we don't have tests for chat templates loading-pushing to hub and a few bugs were encountered recently

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

@zucchini-nlp
Copy link
Member Author

@Rocketknight1 kind ping

@zucchini-nlp
Copy link
Member Author

It got stale a bit, so ping again @Rocketknight1 . Whenever you got some time 😄

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

It looks good, and the tests are really helpful! One comment about the Hub change, though, it conflicts with one of my PRs. My fault, though - your PR came first.

try:
return [
entry.path.removeprefix(f"{CHAT_TEMPLATE_DIR}/")
entry.path.removeprefix(f"{CHAT_TEMPLATE_DIR}/").removesuffix(".jinja")
Copy link
Member

Choose a reason for hiding this comment

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

This might conflict with #40455 ! If you think this is better, you can revert the changes from #40455 and use something like this instead.

@zucchini-nlp zucchini-nlp enabled auto-merge (squash) October 15, 2025 08:37
@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: auto

@zucchini-nlp zucchini-nlp merged commit 313afcc into huggingface:main Oct 15, 2025
22 checks passed
ngazagna-qc pushed a commit to ngazagna-qc/transformers that referenced this pull request Oct 23, 2025
* update templates push to hub

* rvert jinja suffix and move it to processor file
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.

3 participants