torchchat icon indicating copy to clipboard operation
torchchat copied to clipboard

Unified tokenizer type onboarding

Open srikary12 opened this issue 1 year ago • 10 comments

Resolves #1536

Moves TokenizerType to a centralized place.

Adds support at different places.

To do

Add documentation for future tokenizer onboard

srikary12 avatar May 11 '25 07:05 srikary12

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1540

Note: Links to docs will display an error until the docs builds have been completed.

:x: 8 New Failures, 3 Cancelled Jobs

As of commit 22fdd564deec0ebaf35bdc333ffbb1b27f3e9369 with merge base 71552fdea3361aaecc37ca3f2d8d29b7ce3e8901 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

pytorch-bot[bot] avatar May 11 '25 07:05 pytorch-bot[bot]

Hi @srikary12!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

facebook-github-bot avatar May 11 '25 07:05 facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

facebook-github-bot avatar May 11 '25 08:05 facebook-github-bot

cc @Jack-Khuu for a review as well.

zhenyan-zhang-meta avatar May 13 '25 18:05 zhenyan-zhang-meta

@zhenyan-zhang-meta I've modified dist_run.py and resolved conversations.

srikary12 avatar May 14 '25 14:05 srikary12

I'll fix test cases. Looks like I missed some comparisons.

srikary12 avatar May 14 '25 17:05 srikary12

@zhenyan-zhang-meta I've checked all the cases. Let me know if I am missing something.

srikary12 avatar May 27 '25 02:05 srikary12

@srikary12 I think overall it looks fine, thanks for the contribution! Just turned on the CI for some extra checks.

Meanwhile if you could update the doc it would be great.

zhenyan-zhang-meta avatar May 28 '25 06:05 zhenyan-zhang-meta

@zhenyan-zhang-meta we might need to check CI/CD. Not sure if I am missing something. I'll try to add documentation asap.

srikary12 avatar Jun 02 '25 16:06 srikary12

Tokenizers:tiktoken.cpp:71

I'll update it as required and should I add documentation? A few CI are breaking while installing requirements.

srikary12 avatar Jul 01 '25 16:07 srikary12