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

[tiny] add gpt2 chat template, and update tests to use it #617

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

oelachqar
Copy link
Contributor

Changes

  • Add a dummy template for gpt2. This template ignores all the roles and just concatenates all the inputs, and is similar to what was used in transformers <4.45.0
  • Update tests that relied on hardcoded gpt2 responses to use the template

Closes OPE-115
Towards OPE-490

@oelachqar oelachqar requested review from taenin, wizeng23 and nikg4 October 9, 2024 03:49
Copy link

linear bot commented Oct 9, 2024

OPE-115

OPE-490

@oelachqar oelachqar merged commit ed574e4 into main Oct 9, 2024
1 check passed
@oelachqar oelachqar deleted the oelachqar/add_gpt2_template branch October 9, 2024 04:01
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.

2 participants