寰蒋鍜岃胺姝屽垎鍒紑婧愬垎甯冨紡娣卞害瀛︿範妗嗘灦锛屽悇鑷帀瀹冲湪鍝紵
Posted 澶ф暟鎹枃鎽?/a>
寰
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了寰蒋鍜岃胺姝屽垎鍒紑婧愬垎甯冨紡娣卞害瀛︿範妗嗘灦锛屽悇鑷帀瀹冲湪鍝紵相关的知识,希望对你有一定的参考价值。
寰蒋鍜岃胺姝屼竴鐩村湪绉瀬鐮旂┒鐢ㄤ簬璁粌娣卞害绁炵粡缃戠粶鐨勬柊妗嗘灦锛屽苟涓斿湪鏈€杩戝皢鍚勮嚜鐨勬垚鏋滃紑婧愨€斺€?span>寰蒋鐨凱ipeDream鍜岃胺姝岀殑GPipe銆?/strong>
鍘熷垯涓婄湅锛屼粬浠兘閬靛惊浜嗙被浼肩殑鍘熷垯鏉ヨ缁冩繁搴﹀涔犳ā鍨嬨€傝繖涓や釜椤圭洰宸插湪鍚勮嚜鐨勭爺绌惰鏂囷紙PipeDream锛孏Pipe锛変腑杩涜浜嗚缁嗕粙缁嶏紝杩欑瘒鏂囩珷灏嗗姝よ繘琛屾€荤粨銆?/span>
https://github.com/msr-fiddle/pipedream
https://github.com/tensorflow/lingvo/blob/master/lingvo/core/gpipe.py
浼楁墍鍛ㄧ煡锛屽湪瀹為獙杩囩▼涓紝铏界劧璁粌鍩烘湰妯″瀷姣旇緝鐞愮锛屼絾澶嶆潅搴﹀嵈闅忔ā鍨嬬殑璐ㄩ噺鍜屽ぇ灏忕嚎鎬у鍔犮€?/strong>渚嬪锛?014骞碔mageNet瑙嗚璇嗗埆鎸戞垬璧涚殑鍐犲啗鏄疓oogleNet锛屽畠閫氳繃400涓囦釜鍙傛暟鑾峰緱浜?4.8锛呯殑top1鍑嗙‘鎬э紝鑰屼粎浠呬笁骞翠箣鍚庯紝2017骞碔mageNet鎸戞垬璧涚殑鍐犲啗灏变娇鐢?.458浜夸釜鍙傛暟锛堝浜?6鍊嶏級鐨勬渶鏂扮缁忕綉缁滃疄鐜颁簡top1鍑嗙‘鐜団€斺€?2.7锛呫€備絾鏄紝鍦ㄥ悓涓€鏃舵湡锛孏PU鍐呭瓨浠呭鍔犱簡绾?鍊嶃€?/span>
闅忕潃妯″瀷缂╂斁浠ヨ揪鍒版洿楂樼殑鍑嗙‘鎬э紝瀵硅繖浜涙ā鍨嬬殑璁粌鍙樺緱瓒婃潵瓒婂叿鏈夋寫鎴樻€с€傚墠闈㈢殑鏍锋湰涔熸樉绀轰簡锛屼緷闈燝PU鍩虹缁撴瀯鐨勬敼杩涙潵瀹炵幇鏇村ソ鐨勮缁冩槸涓嶅彲鎸佺画鐨勩€傛垜浠渶瑕佸垎甯冨紡璁$畻鏂规硶锛岃繖浜涙柟娉曞彲浠ュ苟琛屽寲璺ㄤ笉鍚岃妭鐐圭殑璁粌宸ヤ綔閲忥紝浠ユ墿灞曡缁冭妯°€?span>鍒嗗竷寮忚缁冪殑姒傚康鍚捣鏉ュ緢鐞愮锛屼絾瀹為檯涓婂嵈鏋佸叾澶嶆潅銆?/strong>
GPipe涓撴敞浜庢墿灞曟繁搴﹀涔犺鍒掔殑璁粌宸ヤ綔閲忋€?/span>
浠庡熀纭€鏋舵瀯鐨勮搴︽潵鐪嬶紝璁粌杩囩▼鐨勫鏉傛€ф槸娣卞害瀛︿範妯″瀷缁忓父琚拷瑙嗙殑涓€涓柟闈€傝缁冩暟鎹泦瓒婃潵瓒婂ぇ锛岃秺鏉ヨ秺澶嶆潅銆備緥濡傦紝鍦ㄥ尰鐤椾繚鍋ラ鍩燂紝闇€瑕佷娇鐢ㄦ暟鐧句竾涓珮鍒嗚鲸鐜囧浘鍍忚繘琛岃缁冪殑妯″瀷骞朵笉缃曡銆傜粨鏋滐紝璁粌杩囩▼閫氬父瑕佽姳璐瑰緢闀挎椂闂存墠鑳藉畬鎴愶紝骞朵笖鍐呭瓨鍜孋PU娑堣€楅潪甯稿ぇ銆?/span>
鎬濊€冩繁搴﹀涔犳ā鍨嬬殑鍒嗗竷寮忕殑鏈夋晥鏂规硶鏄皢鍏跺垝鍒嗕负鏁版嵁鍒嗗竷寮忓拰妯″瀷鍒嗗竷寮忋€傛暟鎹垎甯冨紡鏂规硶閲囩敤澶у瀷鏈哄櫒闆嗙兢锛屽皢杈撳叆鏁版嵁鎷嗗垎鍒板畠浠箣闂淬€傛ā鍨嬪垎甯冨紡灏濊瘯灏嗘ā鍨嬬Щ鑷冲叿鏈夌壒瀹氱‖浠剁殑鍔犻€熷櫒锛屼緥濡侴PU鎴朤PU锛屼互鍔犻€熸ā鍨嬭缁冦€?/span>
姒傚康涓婄湅锛屽嚑涔庢墍鏈夎缁冩暟鎹泦閮藉彲浠ユ寜鐓т竴瀹氱殑閫昏緫杩涜鍒嗗竷寮忚缁冿紝浣嗘槸鍏充簬妯″瀷鐨勮娉曞嵈涓嶅敖鐩稿悓銆備緥濡傦紝涓€浜涙繁搴﹀涔犳ā鍨嬬敱鍙互鐙珛璁粌鐨勫苟琛屽垎鏀粍鎴愩€傚湪閭g鎯呭喌涓嬶紝缁忓吀绛栫暐鏄皢璁$畻鍒掑垎涓哄涓垎鍖猴紝骞跺皢涓嶅悓鐨勫垎鍖哄垎閰嶇粰涓嶅悓鐨勫垎鏀€備絾鏄紝杩欑绛栫暐鍦ㄦ寜椤哄簭鍫嗗彔鍚勫眰鐨勬繁搴﹀涔犳ā鍨嬩腑鏄笉瓒崇殑锛?/span>
GPipe閫氳繃鍒╃敤涓€绉嶇О涓烘祦姘寸嚎鐨勬妧鏈皢鏁版嵁鍜屾ā鍨嬪垎甯冨紡缁撳悎鍦ㄤ竴璧枫€備粠姒傚康涓婅锛孏Pipe鏄竴涓垎甯冨紡鏈哄櫒瀛︿範搴擄紝瀹冧娇鐢ㄥ悓姝ラ殢鏈烘搴︿笅闄嶅拰娴佹按绾垮垎甯冨紡杩涜璁粌锛岄€傜敤浜庣敱澶氫釜杩炵画灞傜粍鎴愮殑浠讳綍DNN銆?/span>
GPipe鍦ㄤ笉鍚岀殑鍔犻€熷櫒涔嬮棿鍒掑垎妯″瀷锛屽苟鑷姩灏嗕竴灏忔壒璁粌鏍锋湰鎷嗗垎涓鸿緝灏忕殑寰壒銆傝妯″瀷鍏佽GPipe鐨勫姞閫熷櫒骞惰杩愯锛屼粠鑰屾渶澶ч檺搴﹀湴鎻愰珮浜嗚缁冭繃绋嬬殑鍙墿灞曟€с€?/span>
涓嬪浘璇存槑浜嗗叿鏈夎繛缁眰鐨勭缁忕綉缁滅殑GPipe妯″瀷鍦ㄥ洓涓姞閫熷櫒涔嬮棿鍒嗛厤銆侳k鏄k涓垎鍖虹殑澶嶅悎姝e悜璁$畻鍑芥暟銆侭k鏄浉搴旂殑鍙嶅悜浼犳挱鍑芥暟銆侭k鍙栧喅浜庝笂灞傜殑Bk + 1鍜孎k鐨勪腑闂存縺娲汇€傚湪椤剁骇妯″瀷涓紝鎴戜滑鍙互鐪嬪埌缃戠粶鐨勯『搴忔€ц川濡備綍瀵艰嚧璧勬簮鍒╃敤涓嶈冻銆備笅鍥炬樉绀轰簡GPipe鏂规硶锛屽叾涓皢杈撳叆鐨勮糠浣犳壒澶勭悊鍒嗕负杈冨皬鐨勫畯鎵瑰鐞嗭紝杩欎簺瀹忔壒澶勭悊鍙敱鍔犻€熷櫒鍚屾椂澶勭悊銆?/span>
https://arxiv.org/pdf/1811.06965.pdf
鍑犱釜鏈堝墠锛屽井杞爺绌堕櫌瀹e竷鍒涘缓Project Fiddle锛岃繖鏄竴绯诲垪鏃ㄥ湪绠€鍖栧垎甯冨紡娣卞害瀛︿範鐨勭爺绌堕」鐩€侾ipeDreams鏄疐iddle椤圭洰棣栨鍙戝竷鐨勭増鏈箣涓€锛?span>涓撴敞浜庢繁搴﹀涔犳ā鍨嬭缁冪殑骞惰鍖栥€?/strong>
PipeDream閲囩敤涓庡叾浠栨柟娉曚笉鍚岀殑鏂规硶鏉ュ埄鐢ㄧО涓虹閬撳垎甯冨紡鐨勬妧鏈潵鎵╁睍娣卞害瀛︿範妯″瀷鐨勮缁冦€傝繖绉嶆柟娉曡瘯鍥捐В鍐虫暟鎹拰妯″瀷骞惰鎶€鏈殑涓€浜涙寫鎴橈紝渚嬪GPipe涓娇鐢ㄧ殑鎶€鏈€?/span>
閫氬父锛屽湪浜戝熀纭€鏋舵瀯涓婅繘琛岃缁冩椂锛屾暟鎹苟琛屾柟娉曞湪瑙勬ā涓婁細鎵垮彈杈冮珮鐨勯€氫俊鎴愭湰锛屽苟涓旈殢鐫€鏃堕棿鐨勬帹绉讳細鎻愰珮GPU璁$畻閫熷害銆傜被浼煎湴锛屾ā鍨嬪垎甯冨紡鎶€鏈€氬父鍦ㄥ埄鐢ㄧ‖浠惰祫婧愪笂鏇村姞鏁堢巼浣庝笅锛岀▼搴忓憳闇€瑕佸喅瀹氬浣曞湪缁欏畾纭欢閮ㄧ讲鐨勬儏鍐典笅鎷嗗垎鍏剁壒瀹氭ā鍨嬶紝缁欎粬浠甫鏉ヤ簡涓嶅繀瑕佺殑璐熸媴銆?/span>
http://www.microsoft.com/zh-cn/research/uploads/prod/2019/08/fiddle_pipedream_sosp19.pdf
PipeDream灏濊瘯閫氳繃浣跨敤绉颁负绠¢亾鍒嗗竷寮忕殑鎶€鏈潵鍏嬫湇鏁版嵁妯″瀷鍒嗗竷寮忔柟娉曠殑涓€浜涙寫鎴樸€?/span>
浠庢蹇典笂璁诧紝绠¢亾鍒嗗竷璁$畻娑夊強灏咲NN妯″瀷鐨勫悇灞傚垝鍒嗕负澶氫釜闃舵锛屽叾涓瘡涓樁娈靛潎鐢辨ā鍨嬩腑鐨勪竴缁勮繛缁眰缁勬垚銆傛瘡涓樁娈甸兘鏄犲皠鍒颁竴涓崟鐙殑GPU锛岃GPU瀵硅闃舵涓殑鎵€鏈夊眰鎵ц姝e悜浼犻€掞紙鍜屽弽鍚戜紶閫掞級銆?/span>
缁欏畾涓€涓壒瀹氱殑娣卞害绁炵粡缃戠粶锛孭ipeDream浼氬熀浜庡湪鍗曚釜GPU涓婃墽琛岀殑绠€鐭瑕佸垎鏋愶紝鑷姩纭畾濡備綍瀵笵NN鐨勮繍绠楃杩涜鍒嗗尯锛屽湪涓嶅悓闃舵涔嬮棿骞宠 璁$畻璐熻浇锛屽悓鏃舵渶澶х▼搴﹀湴鍑忓皯涓庣洰鏍囧钩鍙扮殑閫氫俊銆傚嵆浣垮瓨鍦ㄦā鍨嬪鏍锋€э紙璁$畻鍜岄€氫俊锛夊拰骞冲彴澶氭牱鎬э紙浜掕繛鎷撴墤鍜屽垎灞傚甫瀹斤級锛孭ipeDream涔熶細鏈夋晥鍦板疄鐜拌礋杞藉钩琛°€侾ipeDream璁粌鍒嗗竷寮忕殑鏂规硶鐨勫師鐞嗘瘮鏁版嵁妯″瀷鍒嗗竷寮忔柟娉曞叿鏈夊涓紭鐐广€?/span>
瀵逛簬鍒濆鑰呰€岃█锛孭ipeDream闇€瑕佸湪宸ヤ綔绋嬪簭鑺傜偣涔嬮棿杩涜杈冨皯鐨勯€氫俊锛屽洜涓虹閬撴墽琛屼腑鐨勬瘡涓伐浣滅▼搴忎粎闇€瑕佸皢娓愬彉鐨勫瓙闆嗗拰杈撳嚭婵€娲讳俊鎭紶杈剧粰鍗曚釜鍏朵粬宸ヤ綔绋嬪簭銆?/span>
https
://www.microsoft.com/zh-cn/research/uploads/prod/2019/08/fiddle_pipedream_sosp19.pdf
璁粌鍒嗗竷寮忔槸鏋勫缓鏇村ぇ銆佹洿鍑嗙‘鐨勬繁搴﹀涔犳ā鍨嬬殑鍏抽敭鎸戞垬涔嬩竴銆傚垎甯冨紡璁粌鏂规硶鏄繁搴﹀涔犵ぞ鍖轰腑涓€涓椿璺冪殑鐮旂┒棰嗗煙锛岄渶瑕佸皢鏈夋晥鐨勫苟鍙戠紪绋嬫妧鏈笌娣卞害瀛︿範妯″瀷鐨勬湰璐ㄧ浉缁撳悎銆傚敖绠′粛澶勪簬鏃╂湡闃舵锛屼絾Google鐨凣Pipe鍜孧icrosoft鐨凱ipeDream鏈韩宸茬粡鏄緢浼樼鐨勪骇鍝侊紝瀹冩槸娣卞害瀛︿範寮€鍙戜汉鍛樺彲鐢ㄧ殑涓ょ鏈€鍏峰垱閫犳€х殑鍒嗗竷寮忚缁冩柟娉曘€?/span>
https://medium.com/dataseries/microsoft-and-google-open-sourced-these-frameworks-based-on-their-work-scaling-deep-learning-c0510e907038
以上是关于寰蒋鍜岃胺姝屽垎鍒紑婧愬垎甯冨紡娣卞害瀛︿範妗嗘灦锛屽悇鑷帀瀹冲湪鍝紵的主要内容,如果未能解决你的问题,请参考以下文章
TiKV 鎴愪负 CNCF 鎵樼椤圭洰鈥斺€旀灦鏋勫師鐞嗕簡瑙d竴涓嬶紵| Meetup 棰勫憡
娣卞害瀛︿範_1_Tensorflow_1
娣卞害瀛︿範涓嶯LP
浜笢鎺ㄥ嚭杞婚噺绾у垎甯冨紡 RPC 妗嗘灦 鈥?EasyRPC
娣卞害瀛︿範鍘熺悊璇﹁В鍙奝ython浠g爜瀹炵幇
Spring Boot锛堝崄涓€锛塕edis闆嗘垚浠嶥ocker瀹夎鍒板垎甯冨紡Session鍏变韩