Skip to content
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

Remove templating utility #2611

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Remove templating utility #2611

merged 1 commit into from
Oct 16, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Oct 16, 2024

This is a clean-up PR to remove any templating-related utility from huggingface_hub.

These methods/objects have been added ~6 months and have never been promoted or documented anywhere. I think it's safe to delete them without prior notice. At that point, some models were served with TGI (most of them), others with transformers. Since TGI-served models have a /v1/chat/completion, we didn't and don't need to do client-side rendering. However, for transformers-backed models we had to implement client-side rendering to be on-par feature-wise.

Now that all conversational text-generation models in InferenceAPI are served with TGI (even when it's transformers behind the scenes), we don't use client-side templating at all. This is a clean-up PR to get read of the utilities altogether.

In theory, this is a breaking change. In practice I don't think we should care given the small-ish timeframe (a few versions) and that we never promoted them. Worth mentioning it in the release notes though.

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

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.

Lovely PR

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

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

i love cleaning up PRs

@Wauplin Wauplin merged commit 07896ee into main Oct 16, 2024
18 checks passed
@Wauplin Wauplin deleted the remove-templating-utility branch October 16, 2024 15:20
@Wauplin
Copy link
Contributor Author

Wauplin commented Oct 16, 2024

Ahah, don't get too used to it 😄

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

👍 thanks for the cleanup

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.

5 participants