Two different GPUs for Keras (Python)?












1












$begingroup$


One question guys, someone knows if it should be ok to get one more GPU of type Nvidia Geforce GTX 1070 (gaming version), given that now I have GTX 1070 Titanium? They don't have another Titanium card available here, so I have to get a different one, but closely similar, and I wonder if for using Keras (with TensorFlow backend), will it work fine? They are not exactly the same cards, but similar enough maybe. I want 2 GPUs for Keras.










share|improve this question







New contributor




MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    1












    $begingroup$


    One question guys, someone knows if it should be ok to get one more GPU of type Nvidia Geforce GTX 1070 (gaming version), given that now I have GTX 1070 Titanium? They don't have another Titanium card available here, so I have to get a different one, but closely similar, and I wonder if for using Keras (with TensorFlow backend), will it work fine? They are not exactly the same cards, but similar enough maybe. I want 2 GPUs for Keras.










    share|improve this question







    New contributor




    MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      1












      1








      1





      $begingroup$


      One question guys, someone knows if it should be ok to get one more GPU of type Nvidia Geforce GTX 1070 (gaming version), given that now I have GTX 1070 Titanium? They don't have another Titanium card available here, so I have to get a different one, but closely similar, and I wonder if for using Keras (with TensorFlow backend), will it work fine? They are not exactly the same cards, but similar enough maybe. I want 2 GPUs for Keras.










      share|improve this question







      New contributor




      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      One question guys, someone knows if it should be ok to get one more GPU of type Nvidia Geforce GTX 1070 (gaming version), given that now I have GTX 1070 Titanium? They don't have another Titanium card available here, so I have to get a different one, but closely similar, and I wonder if for using Keras (with TensorFlow backend), will it work fine? They are not exactly the same cards, but similar enough maybe. I want 2 GPUs for Keras.







      python keras tensorflow gpu nvidia






      share|improve this question







      New contributor




      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      MachineLearningGodMachineLearningGod

      82




      82




      New contributor




      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      MachineLearningGod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          I tried training with a 1080 and a 2080 ti and I found that I didn't get any speed up from multi-gpu training because the 1080 acted as a bottleneck. So I while I think this would work fine, you would be better served to run a different model on each GPU rather than trying to train across GPUs.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
            $endgroup$
            – MachineLearningGod
            2 days ago












          • $begingroup$
            That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
            $endgroup$
            – Luke
            2 days ago











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "557"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          MachineLearningGod is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46633%2ftwo-different-gpus-for-keras-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          I tried training with a 1080 and a 2080 ti and I found that I didn't get any speed up from multi-gpu training because the 1080 acted as a bottleneck. So I while I think this would work fine, you would be better served to run a different model on each GPU rather than trying to train across GPUs.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
            $endgroup$
            – MachineLearningGod
            2 days ago












          • $begingroup$
            That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
            $endgroup$
            – Luke
            2 days ago
















          0












          $begingroup$

          I tried training with a 1080 and a 2080 ti and I found that I didn't get any speed up from multi-gpu training because the 1080 acted as a bottleneck. So I while I think this would work fine, you would be better served to run a different model on each GPU rather than trying to train across GPUs.






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
            $endgroup$
            – MachineLearningGod
            2 days ago












          • $begingroup$
            That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
            $endgroup$
            – Luke
            2 days ago














          0












          0








          0





          $begingroup$

          I tried training with a 1080 and a 2080 ti and I found that I didn't get any speed up from multi-gpu training because the 1080 acted as a bottleneck. So I while I think this would work fine, you would be better served to run a different model on each GPU rather than trying to train across GPUs.






          share|improve this answer









          $endgroup$



          I tried training with a 1080 and a 2080 ti and I found that I didn't get any speed up from multi-gpu training because the 1080 acted as a bottleneck. So I while I think this would work fine, you would be better served to run a different model on each GPU rather than trying to train across GPUs.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          LukeLuke

          1183




          1183












          • $begingroup$
            Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
            $endgroup$
            – MachineLearningGod
            2 days ago












          • $begingroup$
            That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
            $endgroup$
            – Luke
            2 days ago


















          • $begingroup$
            Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
            $endgroup$
            – MachineLearningGod
            2 days ago












          • $begingroup$
            That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
            $endgroup$
            – Luke
            2 days ago
















          $begingroup$
          Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
          $endgroup$
          – MachineLearningGod
          2 days ago






          $begingroup$
          Thank you. So even in worst case scenario that my two different GPUs don't contribute to speedup together, I can train models separately on each, and get speedup that way, but either way I get speedup, it should not be the case that getting the second GPU is a total loss, agree? Just to make sure I understand you correctly.
          $endgroup$
          – MachineLearningGod
          2 days ago














          $begingroup$
          That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
          $endgroup$
          – Luke
          2 days ago




          $begingroup$
          That is correct. I think the best approach for you would be to train model separately. You may need to think about how many PCIe lanes you have though. Because if you don't have enough, you may bottleneck on data loading. Then again, according to Tim Dettmers PCIe lanes don't matter when you have 3 GPUs or less.
          $endgroup$
          – Luke
          2 days ago










          MachineLearningGod is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          MachineLearningGod is a new contributor. Be nice, and check out our Code of Conduct.













          MachineLearningGod is a new contributor. Be nice, and check out our Code of Conduct.












          MachineLearningGod is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46633%2ftwo-different-gpus-for-keras-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to label and detect the document text images

          Vallis Paradisi

          Tabula Rosettana