error when I load the data with load_dataset
#1
by
brothersczzl - opened
DataFilesNotFoundError: No (supported) data files found in mercor/apex-agents
Hey, can you try downloading the dataset directly from here? All the files are uploaded here. As there are a lot of them, it can be easier to just rip them as one download.
Hey @Bertievidgen ,
I also ran into the error. What is recommended way to use the dataset, if datasets library isn't supported. I did see any example in https://github.com/Mercor-Intelligence/archipelago?tab=readme-ov-file. I wish, the download of dataset was much easier.
299 raise ValueError(f"Couldn't infer the same data file format for all splits. Got {split_modules}")
300 if not module_name:
--> 301 raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else ""))
302 return module_name, default_builder_kwargs
DataFilesNotFoundError: No (supported) data files found in mercor/apex-agents
Okay. I found a way to download the dataset without right-clicking on each file.
from huggingface_hub import snapshot_download
REPO_ID = "mercor/apex-agents"
LOCAL_DIR = "./apex-agents"
# Download entire dataset repo (all files & folders)
snapshot_download(
repo_id=REPO_ID,
repo_type="dataset",
local_dir=LOCAL_DIR,
allow_patterns=["*"], # "*" = download everything
)
print(f"Downloaded dataset to {LOCAL_DIR}")