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

运行开源模型报错,请问是为什么 #22

Open
3252152 opened this issue Jan 23, 2025 · 1 comment
Open

运行开源模型报错,请问是为什么 #22

3252152 opened this issue Jan 23, 2025 · 1 comment

Comments

@3252152
Copy link

3252152 commented Jan 23, 2025

(D:\py.conda) PS D:\py> python .\bytepiece_demo.py
Traceback (most recent call last):
File "D:\py\bytepiece_demo.py", line 3, in
tokenizer = Tokenizer('D:\py\model\bytepiece_80k.model')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\py.conda\Lib\site-packages\bytepiece-0.6.3-py3.11-win-amd64.egg\bytepiece\bytepiece.py", line 302, in init
self._automaton.add_word(k, (len(k), np.log(v) - log_total))
TypeError: string expected

Image

@3252152
Copy link
Author

3252152 commented Jan 23, 2025

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