use_multiprocessing = False doesn't seem to work?
See original GitHub issueHi!
I’ve implemented a T5.1-large fine tune training pipeline in Colab but I keep getting the following error message, even after use_multiprocessing = False:
Epoch 1 of 1: 0%
0/1 [00:00<?, ?it/s]
Epochs 0/1. Running Loss: 2.2631: 100%
75331/75331 [5:26:14<00:00, 3.90it/s]
0%
1/93864 [00:30<797:05:36, 30.57s/it]
Exception in thread Thread-16:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.7/multiprocessing/pool.py", line 470, in _handle_results
task = get()
File "/usr/lib/python3.7/multiprocessing/connection.py", line 251, in recv
return _ForkingPickler.loads(buf.getbuffer())
File "/usr/local/lib/python3.7/dist-packages/torch/multiprocessing/reductions.py", line 294, in rebuild_storage_fd
storage = cls._new_shared_fd(fd, size)
RuntimeError: unable to mmap 360 bytes from file <filename not specified>: Cannot allocate memory (12)
I’ve tried numerous combinations of batch size and eval size and whatnot, to no avail; it seems like use_multiprocessing = False is being ignored by modelargs, or perhaps this is tokenizer multithreading that is at issue?
TIA
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
fit_generator using use_multiprocessing=True does not work ...
I am running it on Windows 10. Setting workers to a number that is bigger than 1 seems to improve the speed even...
Read more >python - Is there a working sample for fit_generator with ...
Having hard time to make Keras' fit_generator(...,use_multiprocessing=True) work, while use_multiprocessing=False has always been working. Tried ...
Read more >Tip – fit_generator in keras – how to parallelise correctly
With a thread-safe implementation, multiple workers have no problem with both use_multiprocessing = True / False . Multiple generators are ...
Read more >Custom Image Augmentation with Keras - Veritable Tech Blog
Use multiprocessing=False . This one is obvious. Run a “warmup” round of one epoch without validation data seems to solve the problem. The ......
Read more >'generator' object has no attribute 'shape' - You.com
HigherIncreases the frequency the app appears ... Keras requires a thread-safe generator when `use_multiprocessing=False, workers > 1`.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this would do the trick
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.