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

Chat Templates #955

Open
stbaione opened this issue Feb 11, 2025 · 0 comments
Open

Chat Templates #955

stbaione opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@stbaione
Copy link
Contributor

Discussion for this here.

Different servers have options to specify a chat template, which essentially wraps the user prompt is model specific tags, so that the LLM can process and respond better.

An example of how the tags can impact the accuracy of the model can be found here.

We temporarily updated our user docs to include the tags, but it's pretty garbage to ask users to add those tags themselves.

As can be seen by the link above, SGLang defaults their server to use a ChatTemplate, based on the model that was specified at startup. We should do the same.

If a user runs a llama model, we should default to use the llama-3 chat template, unless otherwise specified at startup. As we add more chat models, we should add more ChatTemplates

@stbaione stbaione added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant