{"id":10008291,"date":"2023-09-19T19:06:33","date_gmt":"2023-09-19T11:06:33","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008291"},"modified":"2023-09-19T19:06:33","modified_gmt":"2023-09-19T11:06:33","slug":"%e5%8f%88%e4%b8%80%e4%b8%aa%e5%85%a8%e6%96%b0%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%ef%bc%8c%e8%af%9e%e7%94%9f%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008291","title":{"rendered":"\u53c8\u4e00\u4e2a\u5168\u65b0\u7f16\u7a0b\u8bed\u8a00\uff0c\u8bde\u751f\u4e86\uff01"},"content":{"rendered":"<p>\u6700\u8fd1\uff0c\u7f16\u7a0b\u9886\u57df\u53c8\u4e00\u4e2a\u9ed1\u9a6c\u5ffd\u7136\u51b2\u8fdb\u4e86\u5f00\u53d1\u8005\u4eec\u7684\u89c6\u91ce\u5e76\u6b63\u5f0f\u5f00\u653e\u4e0b\u8f7d\u3002<\/p>\n<p>\u5b83\u7684\u540d\u5b57\u53eb<strong>Mojo<\/strong>\uff0c\u76f8\u4fe1\u6709\u4e0d\u5c11\u5c0f\u4f19\u4f34\u6700\u8fd1\u4e5f\u770b\u5230\u4e86\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230430\" alt=\"\" title=\"\"><\/p>\n<p>Mojo\u662f\u4e3aAI\u5f00\u53d1\u8005\u6240\u51c6\u5907\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u8bed\u6cd5\u6709\u70b9\u50cfPython\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230431\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6839\u636eMojo\u5b98\u7f51\u7684\u63cf\u8ff0\uff0c\u5b83\u7ed3\u5408\u4e86Python\u7684\u6613\u7528\u6027\u548cC\u8bed\u8a00\u7684\u9ad8\u6027\u80fd\uff0c\u89e3\u9501\u4e86AI\u786c\u4ef6\u7684\u53ef\u7f16\u7a0b\u6027\u548cAI\u6a21\u578b\u7684\u53ef\u6269\u5c55\u6027\u3002<\/p>\n<p>Mojo\u770b\u8d77\u6765\u597d\u50cf\u633a\u80fd\u6253\uff0c\u5b83\u5230\u5e95\u662f\u54ea\u4e2a\u516c\u53f8\u6240\u63a8\u51fa\u6765\u7684\u5462\uff1f<\/p>\n<p>\u770b\u4e86\u4e00\u4e0b\u624d\u53d1\u73b0Mojo\u662f\u7531\u4eba\u5de5\u667a\u80fd\u516c\u53f8Modular\u6240\u63a8\u51fa\u7684\u5168\u65b0\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<p>\u800cModular\u8fd9\u4e2a\u516c\u53f8\u5219\u662f\u4e00\u4e2a\u975e\u5e38\u5e74\u8f7b\u7684\u65b0\u751fAI\u521b\u4e1a\u516c\u53f8\uff0c\u4e8e2022\u5e74\u7531Chris Lattner\u548cTim Davis\u6240\u521b\u7acb\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230432\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u63d0\u5230\u8fd9\u4e24\u4e2a\u521b\u59cb\u4eba\uff0c\u76f8\u4fe1\u6709\u4e9b\u540c\u5b66\u4e5f\u6709\u6240\u4e86\u89e3\uff0c\u90fd\u662f\u4e1a\u5185\u9876\u7ea7\u4e13\u5bb6\u3002\u5176\u4e2dChris Lattner\u8fd8\u88ab\u79f0\u4e3a\u201cLLVM\u4e4b\u7236\u201d\u548c\u201cSwift\u4e4b\u7236\u201d\uff0c\u5728\u82f9\u679c\u3001\u8c37\u6b4c\u3001\u7279\u65af\u62c9\u7b49\u591a\u5bb6\u77e5\u540d\u79d1\u6280\u5de8\u5934\u91cc\u66fe\u5e26\u9886\u6784\u5efa\u4e86AI\u548c\u6838\u5fc3\u7cfb\u7edf\u3002<\/p>\n<p>Modular\u516c\u53f8\u7684\u613f\u666f\u975e\u5e38\u5b8f\u4f1f\uff0c\u76ee\u6807\u662f\u81ea\u4e0b\u800c\u4e0a\u91cd\u5851AI\u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<p>\u53bb\u5e74\u7684\u65f6\u5019\uff0cModular AI\u66fe\u83b7\u5f97\u8fc73000\u4e07\u7f8e\u91d1\u7684\u878d\u8d44\u3002\u800c\u5c31\u5728\u524d\u4e9b\u5929\uff0cModular\u53c8\u518d\u6b21\u5ba3\u5e03\u6210\u529f\u878d\u8d44 1 \u4ebf\u7f8e\u91d1\uff0c\u8fd9\u5bf9\u4e8e\u4e00\u4e2a\u521a\u8bde\u751f\u4e0d\u4e45\u7684\u521d\u521b\u578b\u516c\u53f8\u800c\u8a00\u53ef\u8c13\u662f\u6210\u7ee9\u6590\u7136\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230433\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u53e6\u5916\u5728\u516c\u53f8\u5b98\u7f51\u7684\u6295\u8d44\u8005\u540d\u5355\u91cc\u80fd\u770b\u5230\uff0c\u4e0d\u5c11AI\u9886\u57df\u7684\u77e5\u540d\u6295\u8d44\u673a\u6784\u90fd\u6709\u53c2\u4e0e\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230434\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>Mojo\u8fd9\u4e2a\u7f16\u7a0b\u8bed\u8a00\u6709\u51e0\u4e2a\u6bd4\u8f83\u660e\u663e\u7684\u7279\u70b9\u3002<\/p>\n<p><strong>1\u3001\u9996\u5148\u662f\u6027\u80fd\u65b9\u9762\u3002<\/strong><\/p>\n<p>Mojo\u5145\u5206\u5229\u7528\u786c\u4ef6\u7684\u7279\u6027\u548c\u529f\u80fd\uff0c\u5305\u62ec\u591a\u6838\u3001\u77e2\u91cf\u5355\u5143\u548c\u52a0\u901f\u5668\u5355\u5143\uff0c\u4ee5\u53ca\u5148\u8fdb\u7684\u7f16\u8bd1\u5668\u548c\u5f02\u6784\u8fd0\u884c\u65f6\u673a\u5236\uff0c\u5728\u4e0d\u589e\u52a0\u590d\u6742\u6027\u7684\u524d\u63d0\u4e0b\u5b9e\u73b0\u4e86\u4e0eC++\u548cCUDA\u76f8\u5f53\u7684\u6027\u80fd\u3002<\/p>\n<p>\u5728\u5e76\u884c\u5316\u8fd9\u4e00\u5757\uff0cMojo\u5229\u7528MLIR\uff0c\u4f7fMojo\u5f00\u53d1\u8005\u80fd\u591f\u5145\u5206\u5229\u7528\u5411\u91cf\u3001\u7ebf\u7a0b\u548cAI\u786c\u4ef6\u5355\u5143\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230435\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>2\u3001\u5176\u6b21\u662f\u4e92\u64cd\u4f5c\u6027\u65b9\u9762\u3002<\/strong><\/p>\n<p>\u5927\u5bb6\u90fd\u77e5\u9053\uff0c\u53d1\u5c55\u5230\u4eca\u5929\uff0cPython\u7684\u751f\u6001\u6781\u5176\u7e41\u8363\uff0c\u5404\u79cd\u51fd\u6570\u3001\u5e93\u3001\u6846\u67b6\u3001\u6a21\u578b\u3001\u5de5\u5177\u7b49\u7b49\u6570\u4e0d\u80dc\u6570\u3002<\/p>\n<p>\u800cMojo\u5219\u53ef\u4ee5\u8bbf\u95ee\u6574\u4e2aPython\u751f\u6001\u3002\u6bd4\u5982\u4f7f\u7528Mojo\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u65e0\u7f1d\u5730\u63a5\u5165\u548c\u6df7\u5408\u50cfNumpy\u548cMatplotlib\u7b49\u5e93\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230436\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>3\u3001\u518d\u8005\u5c31\u662f\u53ef\u6269\u5c55\u6027\u65b9\u9762\u3002<\/strong><\/p>\n<p>\u53ef\u6269\u5c55\u6027\u8fd9\u5757\u4e5f\u662fMojo\u7684\u4f18\u52bf\u3002Mojo\u53ef\u4ee5\u5347\u7ea7\u7528\u6237\u6a21\u578b\u4e2d\u7684\u5df2\u6709\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u9884\u5904\u7406\u3001\u540e\u5904\u7406\u3001\u81ea\u5b9a\u4e49\u66ff\u6362\u7b49\u64cd\u4f5c\u6765\u8f7b\u677e\u5730\u6269\u5c55\u7528\u6237\u7684\u6a21\u578b\u3002<\/p>\n<p>Mojo\u6700\u521d\u53d1\u5e03\u4e8e\u4eca\u5e74\u76845\u6708\u521d\uff0c\u4e0a\u7ebf\u6570\u6708\u4ee5\u6765\u5c31\u5df2\u5f62\u6210\u57fa\u672c\u89c4\u6a21\u548c\u751f\u6001\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230437\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u524d\u4e0d\u4e45\uff0cModular\u5b98\u7f51\u5ba3\u5e03<strong>Mojo\u6b63\u5f0f\u5f00\u653e\u4e0b\u8f7d<\/strong>\uff0c\u9996\u5148\u662f\u4eceLinux\u7cfb\u7edf\u5f00\u59cb\uff0c\u5e76\u5728\u540e\u7eed\u7684\u8fed\u4ee3\u7248\u672c\u4e2d\u5c06\u9646\u7eed\u6dfb\u52a0\u5bf9Mac\u548cWindows\u7684\u652f\u6301\u3002<\/p>\n<p>\u8fd9\u4e5f\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7Mojo SDK\u8fdb\u884c\u5c1d\u8bd5\u5e76\u7f16\u5199\u81ea\u5df1\u7684Mojo\u4ee3\u7801\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230438\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u800c\u5c31\u5728Mojo\u5b98\u5ba3\u53ef\u4ee5\u4e0b\u8f7d\u540e\u4e0d\u4e45\uff0c\u4e00\u4f4d\u540d\u53ebAydyn Tairov\u5f00\u6e90\u4f5c\u8005\u5c31\u5229\u7528Mojo\u6765\u505a\u4e86\u4e00\u4e2a\u7a81\u7834\u6027\u7684\u5c1d\u8bd5\u3002<\/p>\n<p>\u8fd9\u4e2a\u4f5c\u8005\u4e4b\u524d\u66fe\u5c06GitHub\u4e0a\u706b\u70ed\u7684\u7531\u7eafC\u5b9e\u73b0\u7684llama2.c\u9879\u76ee\u79fb\u690d\u5230\u4e86\u57fa\u4e8ePython\u7684llama2.py\u3002<\/p>\n<p>\u800c\u8fd9\u6b21Aydyn Tairov\u53c8\u5c06llama2.py\u79fb\u690d\u5230\u4e86llama2.mojo\uff0c\u7ed3\u679c\u975e\u5e38\u51fa\u4e4e\u610f\u6599\uff0c\u79fb\u690d\u540e\u6027\u80fd\u63d0\u5347\u4e86\u8fd1250\u500d\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230439\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5373\u4fbf\u5982\u6b64\uff0c\u4f5c\u8005\u4ecd\u7136\u8ba4\u4e3a\u91cc\u9762\u8fd8\u6709\u4e00\u4e9b\u6539\u8fdb\u7684\u7a7a\u95f4\u3002<\/p>\n<p>\u770b\u5230Mojo\u5982\u6b64\u7684\u8868\u73b0\uff0c\u6709\u4e0d\u5c11\u7f51\u53cb\u8bf4Python\u8fd9\u6b21\u53ef\u8c13\u662f\u906d\u9047\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u5bf9\u624b\uff0cMojo\u751a\u81f3\u6709\u53ef\u80fd\u5728\u672a\u6765\u4f1a\u53d6\u4ee3Python\uff1f<\/p>\n<p>\u5bf9\u6b64\uff0c\u516c\u53f8CEO Chris Lattner\u76f4\u63a5\u56de\u5e94\u79f0\uff1a<\/p>\n<p>Mojo\u5e76\u4e0d\u4f1a\u5bf9Python\u9020\u6210\u5a01\u80c1\uff0c\u76f8\u53cd\uff0c\u8fd8\u4f1a\u5e2e\u52a9Python\u5f00\u53d1\u8005\u53d8\u5f97\u66f4\u5f3a\u5927\u3002\u8981\u62c5\u5fc3\u7684\u4e5f\u4e0d\u662fPython\uff0c\u800c\u662fC++\u4eec\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044230440\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6587\u7ae0\u7684\u6700\u540e\u4e5f\u9644\u4e0a\u76f8\u5173\u7684\u9875\u9762\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n<ul>\n<li>Mojo\u5730\u5740\uff1a<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=AfAk2JsiIphJrW5Xr%2BYx6A%3D%3D.xnF%2BxRPdiiHY1YafJn4HOQ8ItVqQI9Nkn8BsyoLyvHM%3D\" rel=\"noopener noreferrer\">https:\/\/www.modular.com\/mojo<\/a><\/li>\n<li>Mojo\u6587\u6863\uff1a<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=AJIejgUpnw%2FL7NQIF9OECg%3D%3D.4NHX9h4iU8kUoximikGElMn5%2Bzz2TRilisR2it3g%2FoA%3D\" rel=\"noopener noreferrer\">https:\/\/docs.modular.com\/mojo<\/a><\/li>\n<\/ul>\n<p>\u81f3\u4e8e\u8fd9\u95e8\u7f16\u7a0b\u8bed\u8a00\u5728\u63a5\u4e0b\u6765\u7684AI\u65f6\u4ee3\u4f1a\u53d1\u5c55\u5982\u4f55\uff0c\u6211\u4eec\u53ef\u4ee5\u62ed\u76ee\u4ee5\u5f85\u3002<\/p>\n<blockquote><p>\u6ce8\uff1a\u672c\u6587\u5728GitHub\u5f00\u6e90\u4ed3\u5e93\u300c\u7f16\u7a0b\u4e4b\u8def\u300d <a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=a101S97Bwz0RHRudfW%2FBOw%3D%3D.4Lq%2F4kuFRKuvdE%2FZO%2FsiRzNHLEUNcsr3d%2Bev1ffasRFV36q%2Fgta%2FtZpdheQreX2z\" rel=\"noopener noreferrer\">https:\/\/github.com\/rd2coding\/Road2Coding<\/a> \u4e2d\u5df2\u7ecf\u6536\u5f55\uff0c\u91cc\u9762\u6709\u6211\u6574\u7406\u76846\u5927\u7f16\u7a0b\u65b9\u5411(\u5c97\u4f4d)\u7684\u81ea\u5b66\u8def\u7ebf+\u77e5\u8bc6\u70b9\u5927\u68b3\u7406\u3001\u9762\u8bd5\u8003\u70b9\u3001\u6211\u7684\u7b80\u5386\u3001\u51e0\u672c\u786c\u6838pdf\u7b14\u8bb0\uff0c\u4ee5\u53ca\u7a0b\u5e8f\u5458\u751f\u6d3b\u548c\u611f\u609f\uff0c\u6b22\u8fcestar\u3002<\/p><\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044230428\">https:\/\/segmentfault.com\/a\/1190000044230428<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\uff0c\u7f16\u7a0b\u9886\u57df\u53c8\u4e00\u4e2a\u9ed1\u9a6c\u5ffd\u7136\u51b2\u8fdb\u4e86\u5f00\u53d1\u8005\u4eec\u7684\u89c6\u91ce\u5e76\u6b63\u5f0f\u5f00\u653e\u4e0b\u8f7d\u3002 \u5b83\u7684\u540d\u5b57\u53ebMojo\uff0c\u76f8\u4fe1\u6709\u4e0d\u5c11\u5c0f\u4f19\u4f34\u6700\u8fd1\u4e5f\u770b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008291","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008291"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008291\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}