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

load_dataset error with Kaggle environment #596

Open
TrieuLe0801 opened this issue Oct 26, 2023 · 0 comments
Open

load_dataset error with Kaggle environment #596

TrieuLe0801 opened this issue Oct 26, 2023 · 0 comments

Comments

@TrieuLe0801
Copy link

Hi, I tried to finetune model with alpaca_data_cleaned_archieve.json but I got the error

Traceback (most recent call last):
  File "/kaggle/working/alpaca-lora/finetune.py", line 283, in <module>
    fire.Fire(train)
  File "/opt/conda/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/opt/conda/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/opt/conda/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/kaggle/working/alpaca-lora/finetune.py", line 187, in train
    data = load_dataset("json", data_files=data_path)
  File "/opt/conda/lib/python3.10/site-packages/datasets/load.py", line 1691, in load_dataset
    builder_instance.download_and_prepare(
  File "/opt/conda/lib/python3.10/site-packages/datasets/builder.py", line 605, in download_and_prepare
    self._download_and_prepare(
  File "/opt/conda/lib/python3.10/site-packages/datasets/builder.py", line 694, in _download_and_prepare
    self._prepare_split(split_generator, **prepare_split_kwargs)
  File "/opt/conda/lib/python3.10/site-packages/datasets/builder.py", line 1151, in _prepare_split
    for key, table in logging.tqdm(
  File "/opt/conda/lib/python3.10/site-packages/tqdm/std.py", line 1170, in __iter__
    for obj in iterable:
  File "/opt/conda/lib/python3.10/site-packages/datasets/packaged_modules/json/json.py", line 150, in _generate_tables
    f"This JSON file contain the following fields: {str(list(dataset.keys()))}. "
AttributeError: 'list' object has no attribute 'keys'

I am using Kaggle with T4 GPU Accelerate.

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