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

add apply_chat_template method to TokenizerSpec + AutoTokenizer #12878

Merged
merged 7 commits into from
Apr 6, 2025

Conversation

akoumpa
Copy link
Member

@akoumpa akoumpa commented Apr 4, 2025

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

Signed-off-by: Alexandros Koumparoulis <[email protected]>
@github-actions github-actions bot added the common label Apr 4, 2025
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/add_apply_chat_template branch from b986189 to c601e4e Compare April 4, 2025 06:44
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/add_apply_chat_template branch from 7fbd20c to d990378 Compare April 4, 2025 07:16
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/add_apply_chat_template branch from f8bf5af to ad41691 Compare April 4, 2025 07:17
Signed-off-by: Alexandros Koumparoulis <[email protected]>
@akoumpa akoumpa force-pushed the akoumparouli/add_apply_chat_template branch from 613e139 to 51db77e Compare April 4, 2025 07:18
@akoumpa akoumpa changed the title add apply_chat_template method add apply_chat_template method to TokenizerSpec + AutoTokenizer Apr 4, 2025
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Copy link
Contributor

github-actions bot commented Apr 5, 2025

[🤖]: Hi @akoumpa 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully

So it might be time to merge this PR or get some approvals

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

@github-actions github-actions bot removed the Run CICD label Apr 5, 2025
@akoumpa akoumpa marked this pull request as ready for review April 6, 2025 17:29
@akoumpa akoumpa enabled auto-merge (squash) April 6, 2025 17:29
@akoumpa akoumpa merged commit d8ad2ed into main Apr 6, 2025
383 of 452 checks passed
@akoumpa akoumpa deleted the akoumparouli/add_apply_chat_template branch April 6, 2025 17:30
rrbale-nvidia pushed a commit to rrbale-nvidia/NeMo that referenced this pull request Apr 11, 2025
…IA#12878)

* add apply_chat_template method

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* add test

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* fix

Signed-off-by: Alexandros Koumparoulis <[email protected]>

* Apply isort and black reformatting

Signed-off-by: artbataev <[email protected]>

* skip test if transformers not installed

Signed-off-by: Alexandros Koumparoulis <[email protected]>

---------

Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: artbataev <[email protected]>
Co-authored-by: artbataev <[email protected]>
Signed-off-by: Ritvik Bale <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants