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

feat: add guideline to chat request and template #2391

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Aug 9, 2024

This PR adds support for a guideline input to chat request. This is required for some models who contain a guideline in their template like https://huggingface.co/google/shieldgemma-9b

Copy link
Collaborator

@Narsil Narsil left a comment

Choose a reason for hiding this comment

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

Shouldn't we add a test for that ? (Unit test in the router ?)

@drbh
Copy link
Collaborator Author

drbh commented Aug 9, 2024

updated to include a test and bump docs

Copy link
Member

@ErikKaum ErikKaum left a comment

Choose a reason for hiding this comment

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

this should do the job, thank you 🙌

@drbh drbh merged commit 0d06aed into main Aug 9, 2024
9 checks passed
@drbh drbh deleted the support-guideline-in-chat-template branch August 9, 2024 14:56
yuanwu2017 pushed a commit to yuanwu2017/tgi-gaudi that referenced this pull request Sep 26, 2024
* feat: add guideline to chat request and template

* fix: add template test and update docs
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