{"id":8358,"date":"2026-06-09T14:03:03","date_gmt":"2026-06-09T06:03:03","guid":{"rendered":"https:\/\/ab123.xyz\/?p=8358"},"modified":"2026-06-09T14:03:03","modified_gmt":"2026-06-09T06:03:03","slug":"google-pathways-on-tpu-v5e-for-mixture-of-experts%ef%bc%9a%e5%bc%80%e5%90%af%e6%b7%b7%e5%90%88%e4%b8%93%e5%ae%b6%e6%a8%a1%e5%9e%8b%e6%96%b0%e7%ba%aa%e5%85%83","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=8358","title":{"rendered":"Google Pathways on TPU v5e for Mixture of Experts\uff1a\u5f00\u542f\u6df7\u5408\u4e13\u5bb6\u6a21\u578b\u65b0\u7eaa\u5143"},"content":{"rendered":"<p>Google Pathways \u662f Google \u4e3a\u4e0b\u4e00\u4ee3\u4eba\u5de5\u667a\u80fd\u6253\u9020\u7684\u57fa\u7840\u67b6\u6784\uff0c\u65e8\u5728\u8ba9\u6a21\u578b\u80fd\u591f\u9ad8\u6548\u5730\u5904\u7406\u591a\u79cd\u4efb\u52a1\u5e76\u6cdb\u5316\u5230\u65b0\u573a\u666f\u3002\u5f53 Pathways \u67b6\u6784\u4e0e\u6700\u65b0\u4e00\u4ee3 TPU v5e \u82af\u7247\u4ee5\u53ca\u6df7\u5408\u4e13\u5bb6\u6a21\u578b\uff08Mixture of Experts, MoE\uff09\u76f8\u7ed3\u5408\u65f6\uff0c\u4fbf\u8bde\u751f\u4e86\u76ee\u524d\u4e1a\u754c\u6700\u5177\u6548\u7387\u7684\u5927\u89c4\u6a21\u6df1\u5ea6\u5b66\u4e60\u89e3\u51b3\u65b9\u6848\u4e4b\u4e00\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e00\u667a\u80fd\u5de5\u5177\u7684\u6838\u5fc3\u529f\u80fd\u3001\u6280\u672f\u4f18\u52bf\u3001\u5178\u578b\u5e94\u7528\u573a\u666f\u4ee5\u53ca\u4f7f\u7528\u65b9\u5f0f\u3002<\/p>\n<h2>\u4ec0\u4e48\u662f Google Pathways on TPU v5e for MoE<\/h2>\n<p>Google Pathways \u662f\u4e00\u79cd\u5168\u65b0\u7684 AI \u7cfb\u7edf\u8bbe\u8ba1\u7406\u5ff5\uff0c\u5b83\u7a81\u7834\u4e86\u4f20\u7edf\u5355\u4e00\u6a21\u578b\u53ea\u80fd\u5b8c\u6210\u5355\u4e00\u4efb\u52a1\u7684\u9650\u5236\uff0c\u8ba9\u6a21\u578b\u53ef\u4ee5\u50cf\u4eba\u4e00\u6837\u201c\u5b66\u4f1a\u5b66\u4e60\u201d\uff0c\u5728\u4e0d\u540c\u7684\u4efb\u52a1\u4e4b\u95f4\u5171\u4eab\u77e5\u8bc6\u548c\u7ec4\u4ef6\u3002\u800c TPU v5e \u662f Google Cloud \u5728 2023 \u5e74\u63a8\u51fa\u7684\u4e13\u7528 AI \u52a0\u901f\u5668\uff0c\u5176\u663e\u5b58\u5e26\u5bbd\u548c\u7b97\u529b\u8f83\u524d\u4ee3\u5927\u5e45\u63d0\u5347\u3002\u5728\u6b64\u57fa\u7840\u4e0a\uff0cGoogle \u4e13\u95e8\u9488\u5bf9\u6df7\u5408\u4e13\u5bb6\u6a21\u578b\uff08MoE\uff09\u8fdb\u884c\u4e86\u6df1\u5ea6\u4f18\u5316\u2014\u2014MoE \u901a\u8fc7\u201c\u7a00\u758f\u6fc0\u6d3b\u201d\u673a\u5236\uff0c\u6bcf\u6b21\u63a8\u7406\u53ea\u8c03\u7528\u90e8\u5206\u4e13\u5bb6\u7f51\u7edc\uff0c\u4ece\u800c\u5728\u4fdd\u6301\u6a21\u578b\u5bb9\u91cf\u7684\u540c\u65f6\u5927\u5e45\u964d\u4f4e\u8ba1\u7b97\u6210\u672c\u3002Pathways \u67b6\u6784\u5219\u8d1f\u8d23\u534f\u8c03\u8fd9\u4e9b\u4e13\u5bb6\u7684\u8def\u7531\u3001\u8d1f\u8f7d\u5747\u8861\u4ee5\u53ca\u8de8\u4efb\u52a1\u8fc1\u79fb\u3002<\/p>\n<p>\u5b98\u65b9\u94fe\u63a5\uff1a<a href=\"https:\/\/cloud.google.com\/tpu\" target=\"_blank\">Google Cloud TPU \u5b98\u65b9\u7f51\u7ad9<\/a><\/p>\n<h2>\u6838\u5fc3\u529f\u80fd\u4e0e\u6280\u672f\u4f18\u52bf<\/h2>\n<h3>\u9ad8\u6548\u7684\u7a00\u758f\u8def\u7531\u4e0e\u8d1f\u8f7d\u5747\u8861<\/h3>\n<p>Pathways \u5185\u7f6e\u4e86\u667a\u80fd\u7684\u8def\u7531\u6a21\u5757\uff0c\u80fd\u591f\u6839\u636e\u8f93\u5165\u6570\u636e\u7684\u7279\u5f81\u52a8\u6001\u9009\u62e9\u6fc0\u6d3b\u54ea\u4e9b\u4e13\u5bb6\uff0c\u5e76\u901a\u8fc7\u5206\u5e03\u5f0f\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u786e\u4fdd\u5404\u4e13\u5bb6\u82af\u7247\u7684\u5229\u7528\u7387\u63a5\u8fd1\u6700\u4f18\u3002\u7ed3\u5408 TPU v5e \u7684\u9ad8\u5e26\u5bbd\u5185\u5b58\uff08HBM2e\uff09\uff0c\u4e13\u5bb6\u95f4\u7684\u6570\u636e\u4f20\u8f93\u5ef6\u8fdf\u88ab\u964d\u81f3\u5fae\u79d2\u7ea7\u3002<\/p>\n<h3>\u8fd1\u4e4e\u7ebf\u6027\u7684\u6269\u5c55\u80fd\u529b<\/h3>\n<p>\u4f20\u7edf\u5927\u6a21\u578b\u5728\u6269\u5c55\u53c2\u6570\u91cf\u65f6\u5f80\u5f80\u9762\u4e34\u901a\u4fe1\u74f6\u9888\u3002\u800c Pathways on TPU v5e \u5229\u7528 v5e \u7684\u201c\u591a\u5207\u7247\u201d\uff08multislice\uff09\u62d3\u6251\uff0c\u53ef\u4ee5\u4f7f MoE \u6a21\u578b\u4ece\u5343\u4ebf\u53c2\u6570\u5e73\u6ed1\u6269\u5c55\u81f3\u4e07\u4ebf\u53c2\u6570\uff0c\u4e14\u6269\u5c55\u6548\u7387\u4fdd\u6301\u5728 90% \u4ee5\u4e0a\u3002<\/p>\n<h3>\u591a\u4efb\u52a1\u96f6\u6837\u672c\u8fc1\u79fb<\/h3>\n<p>\u57fa\u4e8e Pathways \u7684\u201c\u4efb\u52a1\u8def\u7531\u201d\u673a\u5236\uff0c\u8bad\u7ec3\u597d\u7684 MoE \u6a21\u578b\u53ef\u4ee5\u65e0\u9700\u5fae\u8c03\u76f4\u63a5\u5904\u7406\u672a\u89c1\u8fc7\u7684\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u540c\u65f6\u5305\u542b\u8bed\u8a00\u7406\u89e3\u3001\u56fe\u50cf\u8bc6\u522b\u548c\u4ee3\u7801\u751f\u6210\u7684\u6df7\u5408\u4e13\u5bb6\u6a21\u578b\uff0c\u53ef\u4ee5\u5728\u65b0\u4efb\u52a1\u4e0a\u901a\u8fc7\u8def\u7531\u6743\u91cd\u81ea\u52a8\u91cd\u7ec4\u4e13\u5bb6\uff0c\u5b9e\u73b0\u96f6\u6837\u672c\u6cdb\u5316\u3002<\/p>\n<h2>\u5178\u578b\u5e94\u7528\u573a\u666f<\/h2>\n<ul>\n<li><strong>\u8d85\u5927\u89c4\u6a21\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff1a<\/strong>\u8bad\u7ec3\u4e07\u4ebf\u53c2\u6570\u7ea7\u7684\u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\uff0c\u5982\u5bf9\u8bdd\u7cfb\u7edf\u3001\u7ffb\u8bd1\u5f15\u64ce\uff0c\u5728\u4fdd\u6301\u54cd\u5e94\u901f\u5ea6\u7684\u540c\u65f6\u964d\u4f4e\u63a8\u7406\u6210\u672c\u3002<\/li>\n<li><strong>\u591a\u6a21\u6001\u7406\u89e3\u4e0e\u751f\u6210\uff1a<\/strong>\u5c06\u89c6\u89c9\u3001\u8bed\u97f3\u3001\u6587\u672c\u7b49\u4e0d\u540c\u6a21\u6001\u7684\u4e13\u5bb6\u7f51\u7edc\u96c6\u6210\u5230\u540c\u4e00\u6a21\u578b\u4e2d\uff0c\u5b9e\u73b0\u8de8\u6a21\u6001\u641c\u7d22\u3001\u5185\u5bb9\u751f\u6210\u7b49\u4efb\u52a1\u3002<\/li>\n<li><strong>\u63a8\u8350\u7cfb\u7edf\u4e0e\u5e7f\u544a\u6392\u5e8f\uff1a<\/strong>\u5229\u7528 MoE \u7684\u7a00\u758f\u6027\u5904\u7406\u6d77\u91cf\u7528\u6237\u7279\u5f81\uff0c\u5b9e\u65f6\u4e3a\u6bcf\u4e2a\u7528\u6237\u751f\u6210\u4e2a\u6027\u5316\u63a8\u8350\u5217\u8868\uff0c\u51cf\u5c11\u8ba1\u7b97\u8d44\u6e90\u6d88\u8017\u3002<\/li>\n<li><strong>\u79d1\u5b66\u8ba1\u7b97\u4e0e\u836f\u7269\u53d1\u73b0\uff1a<\/strong>\u5206\u5b50\u52a8\u529b\u5b66\u6a21\u62df\u3001\u86cb\u767d\u8d28\u7ed3\u6784\u9884\u6d4b\u7b49\u9700\u8981\u5927\u91cf\u4e13\u5bb6\u77e5\u8bc6\u878d\u5408\u7684\u573a\u666f\uff0cPathways \u53ef\u9ad8\u6548\u7ec4\u5408\u4e0d\u540c\u9886\u57df\u7684\u9884\u8bad\u7ec3\u4e13\u5bb6\u3002<\/li>\n<\/ul>\n<h2>\u5982\u4f55\u4f7f\u7528 Google Pathways on TPU v5e<\/h2>\n<p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7 Google Cloud \u7684 TPU \u670d\u52a1\u76f4\u63a5\u7533\u8bf7\u4f7f\u7528\u3002\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a<br \/>1. \u5728 Google Cloud Console \u521b\u5efa TPU v5e \u865a\u62df\u673a\uff08\u9009\u62e9\u201c5e\u201d\u673a\u578b\uff09\u3002<br \/>2. \u5b89\u88c5\u6700\u65b0\u7248\u7684 TensorFlow \u6216 JAX \u6846\u67b6\uff0c\u5e76\u542f\u7528 Pathways \u8fd0\u884c\u65f6\uff08\u901a\u8fc7<code>pathways<\/code> pip \u5305\uff09\u3002<br \/>3. \u4f7f\u7528 JAX \u7684 <code>pmap<\/code>\/<code>shmap<\/code> \u4ee5\u53ca Pathways \u63d0\u4f9b\u7684 <code>pathways.api.controllers<\/code> \u6765\u5b9a\u4e49 MoE \u6a21\u578b\u548c\u6570\u636e\u5e76\u884c\u7b56\u7565\u3002<br \/>4. \u8c03\u7528 <code>pathways.experimental.moe<\/code> \u6a21\u5757\u4e2d\u7684\u4e13\u5bb6\u8def\u7531\u51fd\u6570\uff0c\u8bbe\u7f6e\u4e13\u5bb6\u6570\u91cf\u3001\u5bb9\u91cf\u56e0\u5b50\u7b49\u53c2\u6570\u3002<\/p>\n<h3>\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<p>\u5efa\u8bae\u7528\u6237\u4e3a\u6bcf\u4e2a\u4e13\u5bb6\u5206\u914d\u81f3\u5c11 8 \u4e2a TPU \u6838\u5fc3\u4ee5\u4fdd\u8bc1\u901a\u4fe1\u6548\u7387\uff1b\u540c\u65f6\u5229\u7528 Pathways \u7684\u201c\u5206\u5c42\u8d1f\u8f7d\u5747\u8861\u201d\u529f\u80fd\uff0c\u907f\u514d\u70ed\u70b9\u4e13\u5bb6\u5bfc\u81f4\u7684\u6570\u636e\u503e\u659c\u3002Google \u5b98\u65b9\u63d0\u4f9b\u4e86\u591a\u4e2a MoE \u793a\u4f8b\uff08\u5982 GLaM\u3001Switch Transformer\uff09\u7684\u6307\u5357\uff0c\u53ef\u5728 GitHub \u4e0a\u83b7\u53d6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Pathways \u662f Google \u4e3a\u4e0b\u4e00\u4ee3\u4eba\u5de5\u667a\u80fd\u6253\u9020\u7684\u57fa\u7840\u67b6\u6784\uff0c\u65e8\u5728\u8ba9\u6a21\u578b\u80fd\u591f\u9ad8\u6548\u5730\u5904\u7406\u591a\u79cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[10401,10398,10399,10402,10400],"class_list":["post-8358","post","type-post","status-publish","format-standard","hentry","category-4","tag-ai","tag-google-pathways","tag-tpu-v5e","tag-10402","tag-10400"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8358"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8358\/revisions"}],"predecessor-version":[{"id":8359,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8358\/revisions\/8359"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}