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

[HANDS-ON BUG] Unit 7, push_to_hub failed #576

Open
TPK-MAKG opened this issue Nov 15, 2024 · 2 comments
Open

[HANDS-ON BUG] Unit 7, push_to_hub failed #576

TPK-MAKG opened this issue Nov 15, 2024 · 2 comments

Comments

@TPK-MAKG
Copy link

Describe the bug

I am running miniconda on my machine. The model trained fine and I entered the hugging-face token as well. However, when I tried to push to hub, it fails, and says "'charmap' codec can't decode byte 0x90 in position 641: character maps to " .
Is this an issue with my username? It contains a dash(-). I checked the run id and local directory, but they don't seem to be the issue.

Material

Trained the model locally.

  • Windows 11
  • Version 23H2 (OS Build 22631.4460)
@TPK-MAKG
Copy link
Author

"'charmap' codec can't decode byte 0x90 in position 641: character maps to (undefined)" is the full error message.

@TPK-MAKG
Copy link
Author

Update: The issue is due to the incorrect encoding method being used to read a file in rl\lib\pathlib.py. At line 1135, in read_text, the encoding method is set to None, when it should be "utf8". Setting encoding="utf8" will fix the push_to_hub issue. Leaving this issue open for posterity.

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