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

Fix pytorch converter text encodings #78

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

LostRuins
Copy link
Contributor

On some situations, the script fails with the error : UnicodeDecodeError: 'charmap' codec can't decode byte (byte) in position (number) : character maps to <undefined>
This is probably because the encodings are incorrect.
Explicitly specifying them as UTF-8 seems to resolve the issue and allow for correct conversion.

LostRuins and others added 3 commits April 10, 2023 12:29
…16 tables were not initialized thus f16 to f32 conversion was failing.
…ror: 'charmap' codec can't decode byte (byte) in position (number) : character maps to <undefined>

This is probably because the encodings are incorrect.
Explicitly specifying them as UTF-8 seems to resolve the issue and allow for correct conversion.
@ggerganov ggerganov merged commit 945685b into ggerganov:master Apr 13, 2023
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

Successfully merging this pull request may close these issues.

2 participants