Train Multple keras model simultaneously

456 views
Skip to first unread message

arman....@gmail.com

unread,
Apr 16, 2018, 7:37:01 PM4/16/18
to Keras-users
I am new in the field of deep learning. I am using keras framework for designing neural network model. I need to train 8 NN model simultaneously on the same computer using 8 different datasets. Does anyone have any idea regarding how to do it in keras ?

Gary Bake

unread,
Apr 17, 2018, 4:53:14 AM4/17/18
to Keras-users
I don't know if keras supports it directly. If the 8 tests are independent you can just execute the code 8 times and your os should handle running them in parallel.
Have a look at the python multiprocessing library if you want to tie it all into a single script or the bash '&' and 'wait' functions.

Daπid

unread,
Apr 17, 2018, 7:03:37 AM4/17/18
to arman....@gmail.com, Keras-users
Why do you need them to train them simultaneously?

On 17 April 2018 at 01:37, <arman....@gmail.com> wrote:
I am new in the field of deep learning. I am using keras framework for designing neural network model. I need to train 8 NN model simultaneously on the same computer using 8 different datasets. Does anyone have any idea regarding how to do it in keras ?

--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/7c0e8024-ab9b-4264-956d-561516dff5ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

arman....@gmail.com

unread,
Apr 22, 2018, 4:42:25 AM4/22/18
to Keras-users
Hi gary
thank a lot for this suggestion,
Can you please more direct me in the exact direction as I am still a bit lost. Although I lookied at thread pool python library. can you please link a page that shows a demo not extly with keras of what you state. It would be of great help thank you.

Regards,
Arman

Gary Bake

unread,
May 9, 2018, 5:42:14 AM5/9/18
to Keras-users
I think this issue may prevent you running multiple instances of keras.

Reply all
Reply to author
Forward
0 new messages