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

UnicodeDecodeError while running benchmark #2794

Closed
carina-ding opened this issue Jul 7, 2024 · 5 comments
Closed

UnicodeDecodeError while running benchmark #2794

carina-ding opened this issue Jul 7, 2024 · 5 comments

Comments

@carina-ding
Copy link

carina-ding commented Jul 7, 2024

Hi, Thank you for developing this amazing benchmark!

I created a virtual environment using anaconda and successfully installed crfm-helm (I followed the instructions from the official document https://crfm-helm.readthedocs.io/en/latest/installation/).

When I tried to run benchmarking with the example given in the document https://crfm-helm.readthedocs.io/en/latest/quick_start/, I followed exactly the instructions given. However, when I run "helm-run --conf-paths run_entries.conf --suite v1 --max-eval-instances 10", I got this error: "UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 5580: character maps to undefined". I attached some screenshots of traceback below.

Could anyone help me with this issue?

Thank you very much!

helm_ss1
helm_ss2
helm_ss3

@yifanmai
Copy link
Collaborator

yifanmai commented Jul 9, 2024

Hi @carina-ding, it looks like you have a malformed model_metadata.yaml file. The YAML parser is complaining that it is invalid YAML. You can check this by running this:

import dacite
import yaml

from helm.benchmark.model_metadata_registry import ModelMetadataList


path = "path/to/model_metadata.yaml"

with open(path, "r") as f:
    raw = yaml.safe_load(f)

model_metadata_list = dacite.from_dict(ModelMetadataList, raw)

@carina-ding
Copy link
Author

Hi @yifanmai , thank you very much for your reply!

Sorry for the slight delay, as I was away last week.

I tried running the codes that you provided, it seems that it's producing the same error while running the codes.

I have attached some screenshots below, please let me know if I did anything wrong.

Thank you!

helm_ss4
helm_ss5
helm_ss6

@yifanmai
Copy link
Collaborator

It looks like the problem is because you're running on Windows, which is not officially supported yet. We're planning to add support in the next couple of months. In the meantime, you could consider running it on Linux using WSL2.

@carina-ding
Copy link
Author

Hi @yifanmai , thank you very much for your reply and suggestions! I will try to run it using WSL2.
Thank you!

@yifanmai
Copy link
Collaborator

yifanmai commented Aug 8, 2024

Closing this issue due to staleness; feel free to reopen if you have further questions.

I opened a new issue to track adding Windows support. Feel free to subscribe to it for updates: #2907

@yifanmai yifanmai closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants