Skip to content

Conversation

larryliu0820
Copy link
Contributor

Summary: Make sure tiktoken.cpp gives correct error when file is invalid. Make sure runner.cpp is able to fallback to BPETokenizer when an invalid tokenizer.model file is given.

Test Plan: Rely on unittest

Reviewers:

Subscribers:

Tasks:

Tags:

Summary: Make sure `tiktoken.cpp` gives correct error when file is
invalid. Make sure `runner.cpp` is able to fallback to BPETokenizer when
an invalid tokenizer.model file is given.

Test Plan: Rely on unittest

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Sep 3, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit fefc958 with merge base f824c1e (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 Sep 3, 2024
@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@swolchok swolchok left a comment

Choose a reason for hiding this comment

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

looks like on line 410 you need to change return Result(res) to return Result<std::vector<uint64_t>>(res) (and ideally std::move(res) as well).

Thanks!

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot merged commit 79b97e4 into main Sep 4, 2024
37 checks passed
@facebook-github-bot facebook-github-bot deleted the fix_tokenizer branch September 4, 2024 22:23
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants