Running seems to be trapped in a dead cycle

#1
by pathfinder996 - opened

I followed the author's open-source main.py on GitHub and downloaded the RedPajama dataset, only making two modifications to main.py,
1- Changed 'from lm_dataformat.lm_dataformat import Reader' in many py files to 'from lm_dataformat import Reader' because an error was reported in my environment
2- Modified 'lmd.Archive(f"{output_dir_path}/chunk{i}", threads=10)' in shuffle_holdout.py to 'lmd.Archive(f"{output_dir_path}/chunk{i}")', because an error was reported in my environment
Then I run the following command,
'python main.py /RedPajama/'
But I saw such a log on the console, which has been continuously executing. I don't know where I made the mistake, and I hope to get help. Thank you

78e851f4a1d0e3b3ad5e554bad50307.png

I followed the author's open-source main.py on GitHub and downloaded the RedPajama dataset, only making two modifications to main.py,
1- Changed 'from lm_dataformat.lm_dataformat import Reader' in many py files to 'from lm_dataformat import Reader' because an error was reported in my environment
2- Modified 'lmd.Archive(f"{output_dir_path}/chunk{i}", threads=10)' in shuffle_holdout.py to 'lmd.Archive(f"{output_dir_path}/chunk{i}")', because an error was reported in my environment
Then I run the following command,
'python main.py /RedPajama/'
But I saw such a log on the console, which has been continuously executing. I don't know where I made the mistake, and I hope to get help. Thank you

78e851f4a1d0e3b3ad5e554bad50307.png

@pathfinder996 the output is produced in this line: code ptr, could you double check if you have input files in the directory that you provide in [step 4]

@daria-soboleva
I am very happy to get your reply. I took a closer look and found that the input should have a file. Now I don’t know what to do(=@_@=).

run screenshot 1.png

file list screenshot.png

@pathfinder996 could you also check the content of the chunks inside pass1? are they all empty? From the screenshot I can say that it looks like everything went well before "Interleave & Shuffle part". So essentially, if you discover an issue with this part from main.py, we can proceed with just running next stages manually based on the guide here instead of re-running everything from scratch with main.py.

Sign up or log in to comment