-
Notifications
You must be signed in to change notification settings - Fork 31.1k
[chat template] update when "push_to_hub" #39815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chat template] update when "push_to_hub" #39815
Conversation
|
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 kind ping |
|
It got stale a bit, so ping again @Rocketknight1 . Whenever you got some time 😄 |
Rocketknight1
left a comment
There was a problem hiding this 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.
src/transformers/utils/hub.py
Outdated
| try: | ||
| return [ | ||
| entry.path.removeprefix(f"{CHAT_TEMPLATE_DIR}/") | ||
| entry.path.removeprefix(f"{CHAT_TEMPLATE_DIR}/").removesuffix(".jinja") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto |
* update templates push to hub * rvert jinja suffix and move it to processor file
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