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

Bus error (core dump) during training #40

Open
ChenYutongTHU opened this issue Jan 23, 2021 · 1 comment
Open

Bus error (core dump) during training #40

ChenYutongTHU opened this issue Jan 23, 2021 · 1 comment

Comments

@ChenYutongTHU
Copy link

Hi, thanks for sharing this project.

I prepared all the required h5py files and caption annotations files for COCO Caption finetuning as instructed in README. The training went normally at the beginning, but got killed (bus error (core dumped)) after around 70k~100k iteration.

I wonder if it was an out-of-memory issue caused by data loading. It seemed that huge memory was progressively consumed by the program, perhaps due to reading more and more image features from h5py files. Using del or gc.collect() didn't help free unreferenced objects' memory.

Is there any good solution to save memory for the multimodal training? Or idea on what was going on in my case. Thanks a lot!

@LuoweiZhou
Copy link
Owner

@ChenYutongTHU With a quick google search, this one seems to be relevant: https://stackoverflow.com/questions/14653259/how-to-set-cache-settings-while-using-h5py-high-level-interface You will at some point stop caching the upcoming .h5 files I believe (I am nowhere near being an expert on this so please let me know once you find a good solution).

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