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

Update Chat Template #71

Merged

Conversation

thameem-abbas
Copy link
Collaborator

This PR is to update the default chat template (to prompt only) and introduce support for custom prompt formats.

  1. vLLM uses tokenizer provided chat templates in the /v1/chat/completions endpoint.
  2. vLLM does not add anything in the /v1/completions endpoint and allows us to precisely control/filter the sequences sent in the request. This PR now allows us to also use custom prompts via the "custom_prompt_format" field.

This PR fixes #67

dataset.py Outdated Show resolved Hide resolved
@thameem-abbas thameem-abbas self-assigned this Jan 7, 2025
Copy link
Collaborator

@dagrayvid dagrayvid left a comment

Choose a reason for hiding this comment

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

Looks good to me now!

@dagrayvid dagrayvid merged commit 6e43ce8 into openshift-psap:main Jan 8, 2025
1 check passed
@thameem-abbas thameem-abbas deleted the dev/update-chat-template branch January 8, 2025 19:19
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.

Fix prompt formatting features
2 participants