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

ValueError('cannot mmap an empty file') #47

Open
s5248 opened this issue Jun 30, 2023 · 1 comment
Open

ValueError('cannot mmap an empty file') #47

s5248 opened this issue Jun 30, 2023 · 1 comment

Comments

@s5248
Copy link

s5248 commented Jun 30, 2023

FileExistsError: [Errno 17] File exists: '/000000_shard_access_times'

During handling of the above exception, another exception occurred:

InstantiationException: Error in call to target 'diffusion.datasets.laion.laion.build_streaming_laion_dataloader':
ValueError('cannot mmap an empty file')
full_key: dataset.train_dataset
ERROR:composer.cli.launcher:Rank 0 crashed with exit code 1.
Waiting up to 30 seconds for all training processes to terminate. Press Ctrl-C to exit immediately.
Global rank 0 (PID 34542) exited with code 1
ERROR:composer.cli.launcher:Global rank 0 (PID 34542) exited with code 1

I'm wondering why it need to write in the root directory?, it seems set self.local to empty, please help

@s5248 s5248 changed the title TypeError("'NoneType' object is not iterable") ValueError('cannot mmap an empty file') Jun 30, 2023
@Landanjs
Copy link
Contributor

Apologies for the delay! This might be from an ungraceful termination in the streaming process. Did you have have a previous run that failed?

Could you try streaming.base.util.clean_stale_shared_memory? This should remove any corrupted data

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