Skip to content

Conversation

@larryliu0820
Copy link
Contributor

Summary:
We want to be able to support more than 1 implementation of tokenizer. Currently tokenizer.cpp is adopted from llama2.c but we also wanted to support Tiktoken (will be added in next PR).

This PR extract out a base class Tokenizer and make it extendable by different implementations.

Differential Revision: D56052583

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 12, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3009

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

✅ No Failures

As of commit 4d1d502 with merge base 17c64a3 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Differential Revision: D56052583
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Differential Revision: D56052583
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Differential Revision: D56052583
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Differential Revision: D56052583
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Differential Revision: D56052583
@mergennachin mergennachin self-requested a review April 12, 2024 21:21
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

larryliu0820 added a commit that referenced this pull request Apr 12, 2024
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Reviewed By: mergennachin

Differential Revision: D56052583
Summary:
Pull Request resolved: #3009

We want to be able to support more than 1 implementation of tokenizer. Currently `tokenizer.cpp` is adopted from `llama2.c` but we also wanted to support `Tiktoken` (will be added in next PR).

This PR extract out a base class `Tokenizer` and make it extendable by different implementations.

Reviewed By: mergennachin

Differential Revision: D56052583
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56052583

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 21fdc4e.

@mergennachin mergennachin mentioned this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants