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

ConnectionError: Couldn't reach 'allenai/c4' on the Hub (ConnectionError)数据集下不下来,怎么回事 #7197

Open
Mrgengli opened this issue Oct 4, 2024 · 1 comment

Comments

@Mrgengli
Copy link

Mrgengli commented Oct 4, 2024

Describe the bug

from datasets import load_dataset
print("11")
traindata = load_dataset('ptb_text_only', 'penn_treebank', split='train')
print("22")
valdata = load_dataset('ptb_text_only',
'penn_treebank',
split='validation')

Steps to reproduce the bug

1

Expected behavior

1

Environment info

1

@skpig
Copy link

skpig commented Oct 4, 2024

Also cant download "allenai/c4", but with different error reported:

Traceback (most recent call last):                                                                                                                                                                                                                                                                                                                                                                          
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 2074, in load_dataset                                                                                                                                              
    builder_instance = load_dataset_builder(                                                                                                                                                                                                                  
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 1795, in load_dataset_builder                                                                                                                                      
    dataset_module = dataset_module_factory(                                                                                                                                                                                                                  
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 1659, in dataset_module_factory                                                                                                                                    
    raise e1 from None                                                                                                                                                                                                                                        
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 1647, in dataset_module_factory                                                                                                                                    
    ).get_module()                                                                                                                                                                                                                                            
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 1069, in get_module                                                                                                                                                
    module_name, default_builder_kwargs = infer_module_for_data_files(                                                                                                                                                                                        
  File "/***/lib/python3.10/site-packages/datasets/load.py", line 594, in infer_module_for_data_files                                                                                                                                
    raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else ""))                                                                                                                                                         
datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in allenai/c4  

Code to reproduce

dataset = load_dataset("allenai/c4", "en", split="train", streaming=True,trust_remote_code=True,
                        cache_dir="dataset/en",
                       download_mode="force_redownload")

Environment

datasets 3.0.1
huggingface_hub 0.25.1

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