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

code error #6

Open
jvyou opened this issue Oct 16, 2024 · 3 comments
Open

code error #6

jvyou opened this issue Oct 16, 2024 · 3 comments

Comments

@jvyou
Copy link

jvyou commented Oct 16, 2024

run python run.py configs/eval_sailor.py -w outputs/sailor --hf-num-gpus 1 --max-num-workers 64
error:
Traceback (most recent call last):
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3544, in _map_single
writer.write(example)
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_writer.py", line 500, in write
self.write_examples_on_file()
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_writer.py", line 455, in write_examples_on_file
row[0][col].to_pylist()[0] if isinstance(row[0][col], (pa.Array, pa.ChunkedArray)) else row[0][col]
~~~~~~^^^^^
KeyError: 'options_2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/run.py", line 4, in
main()
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/cli/main.py", line 299, in main
tasks = partitioner(cfg)
^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/partitioners/base.py", line 83, in call
tasks = self.partition(**model_and_dataset_args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/partitioners/num_worker.py", line 69, in partition
dataset_size = self.get_size(dataset)
^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/partitioners/num_worker.py", line 141, in get_size
dataset = build_dataset_from_cfg(dataset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/utils/build.py", line 13, in build_dataset_from_cfg
return LOAD_DATASET.build(dataset_cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg
obj = obj_cls(**args) # type: ignore
^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/datasets/base.py", line 12, in init
self.dataset = self.load(**kwargs)
^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/lizhengyang/sailor-llm/opencompass/opencompass/datasets/m3exam.py", line 45, in load
return dataset.map(preprocess)
^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 602, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 567, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3167, in map
for rank, done, content in Dataset._map_single(**dataset_kwargs):
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_dataset.py", line 3593, in _map_single
writer.finalize()
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_writer.py", line 599, in finalize
self.write_examples_on_file()
File "/ofs/llm-for-dptd/conda-envs/dev/lib/python3.12/site-packages/datasets/arrow_writer.py", line 455, in write_examples_on_file
row[0][col].to_pylist()[0] if isinstance(row[0][col], (pa.Array, pa.ChunkedArray)) else row[0][col]
~~~~~~^^^^^
KeyError: 'options_2'

@jvyou jvyou closed this as completed Oct 16, 2024
@jvyou jvyou reopened this Oct 17, 2024
@SivilTaram
Copy link
Collaborator

@jvyou Thanks for your interest and reporting! We will look into this problem and get back

@SivilTaram
Copy link
Collaborator

SivilTaram commented Oct 17, 2024

@jvyou Hi, may I know if you would have connection problems on using HuggingFace?

@jvyou
Copy link
Author

jvyou commented Oct 17, 2024

@jvyou Hi, may I know if you would have connection problems on using HuggingFace?

Without a ladder hanging, there may be connection issues

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

2 participants