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

Incorrect import in tokenizer colab notebook #8

Open
RdoubleA opened this issue May 24, 2024 · 3 comments
Open

Incorrect import in tokenizer colab notebook #8

RdoubleA opened this issue May 24, 2024 · 3 comments

Comments

@RdoubleA
Copy link

Hello folks, a lot of awesome tools here :) I was going through the tokenizer notebook to understand how the template has changed with tool calling and I wasn't able to run it. It looks like one of the imports needs to be updated:

ModuleNotFoundError: No module named 'mistral_common.tokens.instruct.normalize'

I believe this just needs to be updated to from mistral_common.protocol.instruct.request import ChatCompletionRequest?

@almatkai
Copy link

almatkai commented Jun 2, 2024

I have the same issue. I can not count my tokens

@matheus-prandini
Copy link
Contributor

@RdoubleA Same here. I opened a PR today with this fix.

@wissamee
Copy link

change it with this from mistral_common.protocol.instruct.request import ChatCompletionRequest

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

4 participants