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

FileNotFoundError: No files matching "datasets/fineweb-edu-dedup/*.ds" found in /home/nanotron/datasets/fineweb-edu-dedup #257

Open
sankexin opened this issue Dec 2, 2024 · 2 comments

Comments

@sankexin
Copy link

sankexin commented Dec 2, 2024

https://github.com/huggingface/smollm/blob/main/pre-training/README.md
https://github.com/huggingface/smollm/blob/main/pre-training/smollm1/config_smollm1_1B.yaml

smollm1 use some dataset:

dataset_folder: 
  - datasets/fineweb-edu-dedup
  - datasets/cosmopedia-v2
  - datasets/open-web-math
  - datasets/python-edu
  - datasets/stackoverflow
  - datasets/deepmind_mathematics

the datasets of HF is .parquet,but it get this ".ds" error:

for example "fineweb-edu-dedup":
https://huggingface.co/datasets/argilla-warehouse/fineweb-edu-dedup-filtered/tree/main/data

[rank0]: Traceback (most recent call last):
[rank0]:   File "/home/nanotron/run_train.py", line 234, in <module>
[rank0]:     dataloader = get_dataloader(trainer)
[rank0]:   File "/home/nanotron/run_train.py", line 204, in get_dataloader
[rank0]:     get_dataloader_from_data_stage(
[rank0]:   File "/home/nanotron/run_train.py", line 152, in get_dataloader_from_data_stage
[rank0]:     train_dataset = Nanoset(
[rank0]:   File "/home/nanotron/src/nanotron/data/nanoset.py", line 52, in __init__
[rank0]:     DatatroveFolderDataset(
[rank0]:   File "/usr/local/lib/python3.10/site-packages/datatrove/utils/dataset.py", line 101, in __init__
[rank0]:     raise FileNotFoundError(f'No files matching "{filename_pattern}" found in {folder_path}')
[rank0]: FileNotFoundError: No files matching "datasets/fineweb-edu-dedup/*.ds" found in /home/nanotron/datasets/fineweb-edu-dedup

docs/nanoset.md: https://github.com/huggingface/nanotron/blob/main/docs/nanoset.md

python3 tools/preprocess_data.py \
       --tokenizer-name-or-path meta-llama/Meta-Llama-3-8B \
       --output-folder datasets/emotion \
       --n-tasks 16 \
       hf \
       --dataset dair-ai/emotion \
@hz-nm
Copy link

hz-nm commented Dec 3, 2024

Use the training script in example/custom-dataloader.py to train model on your own or different datasets.

@sankexin
Copy link
Author

sankexin commented Dec 4, 2024

convert to *.ds

python3 tools/preprocess_data.py \
       --tokenizer-name-or-path meta-llama/Meta-Llama-3-8B \
       --output-folder datasets/emotion \
       --n-tasks 16 \
       hf \
       --dataset dair-ai/emotion \

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