Comparing GPU and TPU training performance on Google ...

文章推薦指數: 80 %
投票人數:10人

... training time on the TPU accelerator is compared to the existing GPU (NVIDIA K80) accelerator. The Colab notebook I made to perform the testing is here. HomeNotificationsListsStoriesWritePublishedinDataDrivenInvestorComparingGPUandTPUtrainingperformanceonGoogleColaboratoryIlateSeptember,GooglemadeavailabletheirTPUasanacceleratoroptioninGoogleColaboratory.Theexamplenotebookprovidedemonstrateshowitworks.HerearesometestsIdidtoseehowmuchbetter(orworse)thetrainingtimeontheTPUacceleratoriscomparedtotheexistingGPU(NVIDIAK80)accelerator.TheColabnotebookImadetoperformthetestingishere.ThenumberofTPUcoreavailablefortheColabnotebooksis8currently.Dataset:CIFAR-10Trainingsamples:50000Validationsamples:10000ScenarioIModeltype:KerasMobilenetV1(alpha0.75)Parameters:1.84MTotalepochs:25Experimenta—Batchsize:100,Iterationsperepoch:1000ScenarioIa:ComparingGPU&TPUtrainingperformanceExperimentb—Batchsize:1000,Iterationsperepoch:100ScenarioIb:ComparingGPU&TPUtrainingperformanceScenarioIIModeltype:CustomCNN(3convolutionallayers+1denselayer)Parameters:197kTotalepochs:50Experimenta—Batchsize:100,Iterationsperepoch:1000ScenarioIIa:ComparingGPU&TPUtrainingperformanceExperimenta—Batchsize:1000,Iterationsperepoch:100ScenarioIIb:ComparingGPU&TPUtrainingperformanceTakeaways:Fromobservingthetrainingtime,itcanbeseenthattheTPUtakesconsiderablymoretrainingtimethantheGPUwhenthebatchsizeissmall.ButwhenbatchsizeincreasestheTPUperformanceiscomparabletothatoftheGPU.HaveanyoneelsedonecomparisonsbetweenTPUandGPU?Pleaseletmeknowincomments.MorefromDataDrivenInvestorFollowempowermentthroughdata,knowledge,andexpertise.subscribetoDDIntelathttps://ddintel.datadriveninvestor.comReadmorefromDataDrivenInvestorGetstartedSibyJosePlathottam17FollowersFollowRelatedFromWindowstoVolcanoes:HowPyTorchIsHelpingUsUnderstandGlassHowAICouldHelpCodingOr,OnGitHubCopilotand(Ruby’s)RubocopAutoMLwithSuccessiveHalfingandHyperbandAfterhavinggivenashortintroductionintoAutomatedMachineLearning(AutoML)inmylastfewMediumposts(seeAutomatedMachine…CreatingaParaphraseGeneratorModelusingT5andDeployingonAinizeHelpStatusWritersBlogCareersPrivacyTermsAboutKnowable



請為這篇文章評分?