-
Notifications
You must be signed in to change notification settings - Fork 372
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
multi GPU support? #20
Comments
config has GPUdeviceNumber variable but looks like it is never used actually. On my machine TF always use both unless limited in environment variables. |
Thanks for your advice!@antolix TF could use both gpus but keras processed on two gpus, but only one actually working. |
export CUDA_VISIBLE_DEVICES=GPU_ID in the terminal would make sure that only that GPU is used. |
Thanks for your reply! @ksaluja15 |
You could patch model a bit using this feature of keras |
@anatolix Thank your very much! lol |
I've implemented it in my fork. side effect is weight_LY_SX_loss renamed to concatenate_ZZZ_loss, but total loss is calculated ok. for my setup it doesn't give a large boost to speed one of the card are always underloaded, and load jumps, but I have 2 different cards, may be your will be better. It needs last keras and TF 1.4 |
Thanks for your advice.@anatolix. The two GPU did not work full speed as before, or as the training performance as caffe code. May be the data preprocessing? or the mutli-gpu did not work well. |
Mostly looks like multi-gpu problem. Data preprocessing could feed 5 gpus with current speed |
Dear All,
I have problem when using multi-GPU to train the model. How to set multi-gpu to boost the training procedure.
I tried following methods:
but can not work.
Thanks for your reply!
@michalfaber
The text was updated successfully, but these errors were encountered: