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

visualize_tokens可视化化 #178

Open
ziwang-com opened this issue Jul 11, 2023 · 0 comments
Open

visualize_tokens可视化化 #178

ziwang-com opened this issue Jul 11, 2023 · 0 comments

Comments

@ziwang-com
Copy link
Owner


取自 OpenAI 的 tiktoken 存储库,我添加了一个 visualize_tokens() 函数来可视化 BPE 代币,我制作了visualize_tokens来处理 tokenizer.encode() 函数的输出,因为当前支持的嵌入基于 BERT,并且不使用与 GPT-4 相同的标记化。
image

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

No branches or pull requests

1 participant