{"id":1440,"date":"2021-11-10T17:03:47","date_gmt":"2021-11-10T09:03:47","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=1440"},"modified":"2021-11-10T17:03:47","modified_gmt":"2021-11-10T09:03:47","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e6%95%b0%e6%8d%ae%e7%a7%91%e5%ad%a6%e5%ae%b6%e4%b8%8d%e9%9c%80%e8%a6%81%e4%ba%86%e8%a7%a3kubernetes","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2021\/11\/10\/1440\/","title":{"rendered":"\u4e3a\u4ec0\u4e48\u6570\u636e\u79d1\u5b66\u5bb6\u4e0d\u9700\u8981\u4e86\u89e3Kubernetes"},"content":{"rendered":"<section>\n<section>\n<section>\n<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1441\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-7.jpg\" width=\"1080\" height=\"719\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-7.jpg 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-7-300x200.jpg 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-7-1024x682.jpg 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-7-768x511.jpg 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/section>\n<\/section>\n<section>\u4f5c\u8005 | Chip Huyen\u00a0<\/section>\n<section>\u8bd1\u8005 | \u5e73\u5ddd<\/section>\n<section>\u7b56\u5212 | Tina<\/section>\n<\/section>\n<\/section>\n<section><\/section>\n<section>\u6700\u8fd1\uff0c\u5173\u4e8e\u6570\u636e\u79d1\u5b66\u5bb6\u7684\u5de5\u4f5c\u5e94\u8be5\u5305\u542b\u54ea\u4e9b\uff0c\u6709\u8bb8\u591a\u6fc0\u70c8\u7684\u8ba8\u8bba\u3002\u8bb8\u591a\u516c\u53f8\u90fd\u5e0c\u671b\u6570\u636e\u79d1\u5b66\u5bb6\u662f\u5168\u6808\u7684\uff0c\u5176\u4e2d\u5305\u62ec\u4e86\u89e3\u6bd4\u8f83\u5e95\u5c42\u7684\u57fa\u7840\u8bbe\u65bd\u5de5\u5177\uff0c\u5982 Kubernetes\uff08K8s\uff09\u548c\u8d44\u6e90\u7ba1\u7406\u3002\u672c\u6587\u65e8\u5728\u8bf4\u660e\uff0c\u867d\u7136\u6570\u636e\u79d1\u5b66\u5bb6\u5177\u5907\u5168\u6808\u77e5\u8bc6\u6709\u597d\u5904\uff0c\u4f46\u5982\u679c\u4ed6\u4eec\u6709\u4e00\u4e2a\u826f\u597d\u7684\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\u53ef\u4ee5\u4f7f\u7528\uff0c\u90a3\u4e48\u5373\u4f7f\u4ed6\u4eec\u4e0d\u4e86\u89e3 K8s\uff0c\u4f9d\u7136\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u5b9e\u9645\u7684\u6570\u636e\u79d1\u5b66\u5de5\u4f5c\uff0c\u800c\u4e0d\u662f\u7f16\u5199\u6709\u6548\u7684 YAML \u6587\u4ef6\u3002<\/section>\n<p>\u672c\u6587\u662f\u57fa\u4e8e\u8fd9\u6837\u4e00\u4e2a\u5047\u8bbe\uff0c\u5373\u5bf9\u4e8e\u5168\u6808\u6570\u636e\u79d1\u5b66\u5bb6\u7684\u671f\u671b\u6765\u81ea\u8fd9\u4e9b\u516c\u53f8\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u7684\u5de8\u5927\u5dee\u5f02\u3002\u63a5\u4e0b\u6765\uff0c\u672c\u6587\u8ba8\u8bba\u4e86\u6d88\u9664\u73af\u5883\u5dee\u5f02\u7684\u4e24\u4e2a\u6b65\u9aa4\uff1a\u7b2c\u4e00\u6b65\u662f\u5bb9\u5668\u5316\uff1b\u7b2c\u4e8c\u6b65\u662f\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u3002<\/p>\n<p>\u5bf9\u4e8e\u5bb9\u5668\u5316\uff0c\u4eba\u4eec\u6216\u591a\u6216\u5c11\u90fd\u6709\u6240\u4e86\u89e3\uff0c\u4f46\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u662f\u76f8\u5bf9\u6bd4\u8f83\u65b0\u7684\u4e00\u7c7b\u5de5\u5177\uff0c\u8bb8\u591a\u4eba\u4ecd\u7136\u628a\u5b83\u4eec\u548c\u5de5\u4f5c\u6d41\u7f16\u6392\u5f04\u6df7\u3002\u672c\u6587\u6700\u540e\u4e00\u90e8\u5206\u662f\u6bd4\u8f83\u5404\u79cd\u5de5\u4f5c\u6d41\u7f16\u6392\u548c\u57fa\u7840\u8bbe\u65bd\u5de5\u5177\uff0c\u5305\u62ec Airflow\u3001Argo\u3001Prefect\u3001Kubeflow \u548c Metaflow\u3002<\/p>\n<blockquote><p>Roles and Responsibilities:<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>Automate horrible business practices<\/li>\n<li>Write ad hoc SQL as needed<\/li>\n<\/ul>\n<p>REQUIRED EXPERIENCE:<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>15 years exp deep learning in Python<\/li>\n<li>PhD thesis on Bayesian modeling<\/li>\n<li>NLP experience in 7 languages<\/li>\n<li>10 years of creating Hadoop clusters from scratch<\/li>\n<\/ul>\n<p>\u2014 Nick Heitzman (@NickDoesData) February 12, 2019 Requirementsfor data scientists in real-time Network latency from VermontTworeal-life data scientist job descriptions<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img img_loading\" src=\"data:image\/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-fileid=\"100065869\" data-ratio=\"0.2578288100208768\" data-type=\"png\" data-w=\"1916\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YriaiaJPb26VOSYrTxPGBIuBgFwWNoFkzYgnW5ia9QaWDOAet45J2vr3FA6oQrwibmIUKpaIqiadhLziaE83G0XKCELg\/640?wx_fmt=png\" \/><\/p>\n<p>\u4e24\u4efd\u771f\u5b9e\u7684\u6570\u636e\u79d1\u5b66\u804c\u4f4d\u63cf\u8ff0<\/p>\n<section>1\u76ee\u5f55<\/section>\n<ul class=\"list-paddingleft-2\">\n<li>\u5168\u6808\u7684\u671f\u671b<\/li>\n<li>\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u5206\u79bb<\/li>\n<li>\u6d88\u9664\u5dee\u5f02\u7b2c\u4e00\u6b65\uff1a\u5bb9\u5668\u5316<\/li>\n<li>\u6d88\u9664\u5dee\u5f02\u7b2c\u4e8c\u90e8\uff1a\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61<\/li>\n<li>\u5de5\u4f5c\u6d41\u7f16\u6392 vs. \u57fa\u7840\u8bbe\u65bd\u62bd\u8c61<\/li>\n<li>\u5de5\u4f5c\u6d41\u7f16\u6392\uff1aAirflow vs. Prefect vs. Argo<\/li>\n<li>\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\uff1aKubeflow vs. Metaflow<\/li>\n<\/ul>\n<section>2\u6ce8\u610f<\/section>\n<ol class=\"list-paddingleft-2\">\n<li>\n<section>\u751f\u4ea7\u662f\u4e00\u4e2a\u8303\u7574\u3002\u5bf9\u4e8e\u6709\u4e9b\u56e2\u961f\uff0c\u751f\u4ea7\u610f\u5473\u7740\u4ece\u7b14\u8bb0\u672c\u751f\u6210\u7684\u7ed3\u679c\u751f\u6210\u6f02\u4eae\u7684\u56fe\u8868\u5411\u4e1a\u52a1\u56e2\u961f\u5c55\u793a\u3002\u5bf9\u4e8e\u5176\u4ed6\u56e2\u961f\uff0c\u751f\u4ea7\u610f\u5473\u7740\u4fdd\u8bc1\u6bcf\u5929\u670d\u52a1\u4e8e\u6570\u767e\u4e07\u7528\u6237\u7684\u6a21\u578b\u6b63\u5e38\u8fd0\u884c\u3002\u5728\u7b2c\u4e00\u79cd\u60c5\u51b5\u4e0b\uff0c\u751f\u4ea7\u73af\u5883\u548c\u5f00\u53d1\u73af\u5883\u7c7b\u4f3c\u3002\u672c\u6587\u63d0\u5230\u7684\u751f\u4ea7\u73af\u5883\u66f4\u63a5\u8fd1\u4e8e\u7b2c\u4e8c\u79cd\u60c5\u51b5\u3002<\/section>\n<\/li>\n<li>\n<section>\u672c\u6587\u4e0d\u662f\u8981\u8bba\u8bc1 K8s \u662f\u5426\u6709\u7528\u3002K8s \u6709\u7528\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u53ea\u8ba8\u8bba\u6570\u636e\u79d1\u5b66\u5bb6\u662f\u5426\u9700\u8981\u4e86\u89e3 K8s\u3002<\/section>\n<\/li>\n<li>\u672c\u6587\u4e0d\u662f\u8981\u8bba\u8bc1\u5168\u6808\u6ca1\u7528\u3002\u5982\u679c\u4f60\u7cbe\u901a\u8fd9\u4e2a\u7ba1\u9053\u4e2d\u7684\u6bcf\u4e2a\u90e8\u5206\uff0c\u6211\u8ba4\u4e3a\u4f1a\u6709\u5341\u51e0\u5bb6\u516c\u53f8\u5f53\u573a\u96c7\u7528\u4f60\uff08\u5982\u679c\u4f60\u5141\u8bb8\u7684\u8bdd\uff0c\u6211\u4e5f\u4f1a\u52aa\u529b\u62db\u52df\u4f60\uff09\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u60f3\u6210\u4e3a\u4e00\u540d\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u4e0d\u8981\u60f3\u7740\u8981\u638c\u63e1\u5168\u6808\u3002<\/li>\n<\/ol>\n<section>3\u5168\u6808\u7684\u671f\u671b<\/section>\n<p>\u5927\u7ea6 1 \u5e74\u524d\uff0c\u6211\u5728\u63a8\u7279\u4e0a\u7f57\u5217\u4e86\u5bf9\u4e8e\u4e00\u540d ML \u5de5\u7a0b\u5e08\u6216\u6570\u636e\u79d1\u5b66\u5bb6\u800c\u8a00\u975e\u5e38\u91cd\u8981\u7684\u6280\u80fd\u3002\u8be5\u5217\u8868\u51e0\u4e4e\u6db5\u76d6\u4e86\u5de5\u4f5c\u6d41\u7684\u6bcf\u4e00\u90e8\u5206\uff1a\u6570\u636e\u67e5\u8be2\u3001\u5efa\u6a21\u3001\u5206\u5e03\u5f0f\u8bad\u7ec3\u3001\u914d\u7f6e\u7aef\u70b9\uff0c\u751a\u81f3\u8fd8\u5305\u62ec\u50cf Kubernetes \u548c Airflow \u8fd9\u6837\u7684\u5de5\u5177\u3002<\/p>\n<blockquote><p>\u5982\u679c\u6211\u60f3\u81ea\u5b66\u6210\u4e3a\u4e00\u540d ML \u5de5\u7a0b\u5e08\uff0c\u90a3\u4e48\u6211\u4f1a\u4f18\u5148\u5b66\u4e60\u4e0b\u5217\u5185\u5bb9\uff1a<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>\u7248\u672c\u63a7\u5236<\/li>\n<li>SQL + NoSQL<\/li>\n<li>Python<\/li>\n<li>Pandas\/Dask<\/li>\n<li>\u6570\u636e\u7ed3\u6784<\/li>\n<li>\u6982\u7387 &amp; \u7edf\u8ba1<\/li>\n<li>ML algos<\/li>\n<li>\u5e76\u884c\u8ba1\u7b97<\/li>\n<li>REST API<\/li>\n<li>Kubernetes + Airflow<\/li>\n<li>\u5355\u5143 \/ \u96c6\u6210\u6d4b\u8bd5<\/li>\n<\/ol>\n<p>\u2014\u2014\u2014 Chip Huyen (@chipro)\uff0c2020 \u5e74 11 \u6708 11 \u65e5<\/p><\/blockquote>\n<p>\u8fd9\u6761\u63a8\u7279\u4f3c\u4e4e\u5f15\u8d77\u4e86\u6211\u7684\u7c89\u4e1d\u7684\u5171\u9e23\u3002\u4e4b\u540e\uff0cEugene Yan \u7ed9\u6211\u53d1\u6d88\u606f\u8bf4\uff0c\u4ed6\u4e5f\u64b0\u6587\u8ba8\u8bba\u4e86\u6570\u636e\u79d1\u5b66\u5bb6\u5982\u4f55\u5728\u66f4\u5927\u7a0b\u5ea6\u4e0a\u505a\u5230\u7aef\u5230\u7aef\u3002Stitch Fix \u9996\u5e2d\u7b97\u6cd5\u5b98 Eric Colson\uff08\u4e4b\u524d\u662f Netflix \u6570\u636e\u79d1\u5b66\u548c\u5de5\u7a0b\u526f\u603b\u88c1\uff09\u4e5f\u5199\u4e86\u4e00\u7bc7\u535a\u6587\u201c\u5168\u6808\u6570\u636e\u79d1\u5b66\u901a\u624d\u7684\u5f3a\u5927\u4e0e\u804c\u80fd\u5206\u5de5\u7684\u5371\u9669\u6027\u201d\u3002<\/p>\n<p>\u5728\u6211\u53d1\u90a3\u6761\u63a8\u7279\u65f6\uff0c\u6211\u8ba4\u4e3a Kubernetes \u662f DS\/ML \u5de5\u4f5c\u6d41\u5fc5\u4e0d\u53ef\u5c11\u7684\u90e8\u5206\u3002\u8fd9\u4e2a\u770b\u6cd5\u6e90\u4e8e\u6211\u5728\u5de5\u4f5c\u4e2d\u7684\u632b\u8d25\u611f\u2014\u2014\u6211\u662f\u4e00\u540d ML \u5de5\u7a0b\u5e08\uff0c\u5982\u679c\u6211\u80fd\u66f4\u719f\u7ec3\u5730\u4f7f\u7528 K8s\uff0c\u90a3\u4e48\u6211\u7684\u5de5\u4f5c\u4f1a\u66f4\u7b80\u5355\u3002<\/p>\n<p>\u7136\u800c\uff0c\u968f\u7740\u5bf9\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u4e86\u89e3\u7684\u6df1\u5165\uff0c\u6211\u8ba4\u8bc6\u5230\uff0c\u671f\u671b\u6570\u636e\u79d1\u5b66\u5bb6\u4e86\u89e3\u8fd9\u4e9b\u5e76\u4e0d\u5408\u7406\u3002\u57fa\u7840\u8bbe\u65bd\u9700\u8981\u7684\u6280\u80fd\u96c6\u4e0e\u6570\u636e\u79d1\u5b66\u7684\u9700\u6c42\u5b8c\u5168\u4e0d\u540c\u3002\u7406\u8bba\u4e0a\uff0c\u4f60\u53ef\u4ee5\u90fd\u5b66\u3002\u4f46\u5b9e\u9645\u4e0a\uff0c\u4f60\u5728\u4e00\u4e2a\u65b9\u9762\u82b1\u7684\u65f6\u95f4\u591a\uff0c\u5728\u53e6\u4e00\u4e2a\u65b9\u9762\u82b1\u7684\u65f6\u95f4\u80af\u5b9a\u5c31\u5c11\u3002\u6211\u5f88\u559c\u6b22 Erik Bernhardsson \u6253\u7684\u90a3\u4e2a\u6bd4\u65b9\uff0c\u671f\u671b\u6570\u636e\u79d1\u5b66\u5bb6\u4e86\u89e3\u57fa\u7840\u8bbe\u65bd\u5c31\u50cf\u671f\u671b\u5e94\u7528\u5f00\u53d1\u4eba\u5458\u4e86\u89e3 Linux \u5185\u6838\u7684\u5de5\u4f5c\u539f\u7406\u3002\u6211\u6210\u4e3a\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u662f\u56e0\u4e3a\u6211\u60f3\u628a\u66f4\u591a\u65f6\u95f4\u82b1\u5728\u6570\u636e\u4e0a\uff0c\u800c\u4e0d\u662f\u82b1\u5728\u542f\u52a8 AWS \u5b9e\u4f8b\u3001\u7f16\u5199 Dockerfile\u3001\u8c03\u5ea6 \/ \u6269\u5c55\u96c6\u7fa4\u6216\u662f\u8c03\u8bd5 YAML \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1443\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-12.png\" width=\"952\" height=\"678\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-12.png 952w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-12-300x214.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-12-768x547.png 768w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/p>\n<section>4\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u5206\u79bb<\/section>\n<p>\u90a3\u4e48\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u79cd\u4e0d\u5408\u7406\u7684\u9884\u671f\uff1f<\/p>\n<p>\u5728\u6211\u770b\u6765\uff0c\u4e00\u4e2a\u539f\u56e0\u662f\u6570\u636e\u79d1\u5b66\u7684\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e4b\u95f4\u5b58\u5728\u7740\u5f88\u5927\u7684\u5dee\u522b\u3002\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e4b\u95f4\u6709\u8bb8\u591a\u4e0d\u540c\u7684\u5730\u65b9\uff0c\u4f46\u662f\u6709\u4e24\u4e2a\u5173\u952e\u7684\u5dee\u5f02\u4f7f\u5f97\u6570\u636e\u79d1\u5b66\u5bb6\u4e0d\u5f97\u4e0d\u638c\u63e1\u4e24\u4e2a\u73af\u5883\u7684\u4e24\u5957\u5de5\u5177\uff0c\u90a3\u5c31\u662f<strong>\u89c4\u6a21<\/strong>\u548c<strong>\u72b6\u6001<\/strong>\u3002<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img img_loading\" src=\"data:image\/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-fileid=\"100065871\" data-ratio=\"0.36363636363636365\" data-type=\"png\" data-w=\"869\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YriaiaJPb26VOSYrTxPGBIuBgFwWNoFkzY54fy4VjNzIFwKU4dYwGbqTVwQmlicSHcOCRbv3SjOpW1VE1jRotEicRw\/640?wx_fmt=png\" \/><\/p>\n<p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u80fd\u4f1a\u542f\u52a8\u4e00\u4e2a conda \u73af\u5883\uff0c\u4f7f\u7528 notebook\uff0c\u501f\u52a9 pandas \u7684 DataFrame \u64cd\u4f5c\u9759\u6001\u6570\u636e\uff0c\u501f\u52a9 sklearn\u3001PyTorch \u6216 TensorFlow \u7f16\u5199\u6a21\u578b\u4ee3\u7801\uff0c\u8fd0\u884c\u5e76\u8ddf\u8e2a\u591a\u4e2a\u5b9e\u9a8c\u3002<\/p>\n<p>\u4e00\u65e6\u5bf9\u7ed3\u679c\u6ee1\u610f\u4e86\uff08\u6216\u662f\u6ca1\u65f6\u95f4\u4e86\uff09\uff0c\u4f60\u5c31\u4f1a\u9009\u53d6\u6700\u597d\u7684\u6a21\u578b\u5c06\u5176\u6295\u5165\u751f\u4ea7\u5e94\u7528\u3002\u5c06\u6a21\u578b\u6295\u5165\u751f\u4ea7\u5e94\u7528\u57fa\u672c\u4e0a\u662f\u8bf4\u201c\u5c06\u5176\u4ece\u5f00\u53d1\u73af\u5883\u79fb\u5230\u751f\u4ea7\u73af\u5883\u201d\u3002<\/p>\n<p>\u5e78\u8fd0\u7684\u8bdd\uff0c\u5f00\u53d1\u73af\u5883\u4e2d\u7684 Python \u4ee3\u7801\u53ef\u4ee5\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u91cd\u7528\uff0c\u4f60\u6240\u8981\u505a\u7684\u662f\u5c06 notebook \u4ee3\u7801\u7c98\u8d34\u590d\u5236\u5230\u5408\u9002\u7684\u811a\u672c\u4e2d\u3002\u5982\u679c\u8fd0\u6c14\u4e0d\u597d\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5c06 Python \u4ee3\u7801\u7528 C++ \u6216\u516c\u53f8\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u7684\u5176\u4ed6\u8bed\u8a00\u6765\u91cd\u5199\u3002\u4f9d\u8d56\u9879\uff08pandas\u3001dask\u3001PyTorch\u3001TF \u7b49\uff09\u5c31\u9700\u8981\u5728\u8fd0\u884c\u6a21\u578b\u7684\u751f\u4ea7\u5b9e\u4f8b\u4e0a\u91cd\u65b0\u6253\u5305\u548c\u751f\u6210\u3002\u5982\u679c\u4f60\u7684\u6a21\u578b\u670d\u52a1\u4e8e\u5927\u91cf\u7684\u6d41\u91cf\uff0c\u5e76\u4e14\u9700\u8981\u5927\u91cf\u7684\u8ba1\u7b97\u8d44\u6e90\uff0c\u90a3\u4e48\u4f60\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u4efb\u52a1\u8c03\u5ea6\u3002\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u624b\u52a8\u542f\u52a8\u5b9e\u4f8b\uff0c\u6216\u662f\u5728\u6d41\u91cf\u6bd4\u8f83\u5c0f\u7684\u65f6\u5019\u5173\u95ed\u5b9e\u4f8b\uff0c\u4f46\u73b0\u5728\uff0c\u5927\u90e8\u5206\u516c\u6709\u4e91\u63d0\u4f9b\u5546\u90fd\u5e2e\u6211\u4eec\u505a\u4e86\u8fd9\u9879\u5de5\u4f5c\u3002<\/p>\n<p>\u5728\u4f20\u7edf\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0cCI\/CD \u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5f25\u8865\u8fd9\u79cd\u5dee\u8ddd\u3002\u7cbe\u5fc3\u5f00\u53d1\u7684\u6d4b\u8bd5\u96c6\u8ba9\u6211\u4eec\u53ef\u4ee5\u6d4b\u51fa\u5728\u672c\u5730\u8fdb\u884c\u7684\u4fee\u6539\u5230\u751f\u4ea7\u73af\u5883\u4f1a\u4ea7\u751f\u4ec0\u4e48\u884c\u4e3a\u3002\u4e0d\u8fc7\uff0c\u5bf9\u4e8e\u6570\u636e\u79d1\u5b66\u800c\u8a00\uff0c\u53ea\u6709 CI\/CD \u8fd8\u4e0d\u591f\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u6570\u636e\u5206\u5e03\u4e00\u76f4\u5728\u53d8\u5316\u3002\u4e0d\u7ba1\u4f60\u7684 ML \u6a21\u578b\u5728\u5f00\u53d1\u73af\u5883\u4e2d\u6548\u679c\u591a\u597d\uff0c\u4f60\u90fd\u65e0\u6cd5\u786e\u5b9a\u5b83\u4eec\u5728\u5b9e\u9645\u7684\u751f\u4ea7\u73af\u5883\u4e2d\u8868\u73b0\u5982\u4f55\u3002<\/p>\n<p>\u7531\u4e8e\u5b58\u5728\u8fd9\u79cd\u5dee\u522b\uff0c\u6240\u4ee5\u6570\u636e\u79d1\u5b66\u9879\u76ee\u4f1a\u6d89\u53ca\u4e24\u5957\u5de5\u5177\uff1a\u4e00\u5957\u7528\u4e8e\u5f00\u53d1\u73af\u5883\uff0c\u4e00\u5957\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<section>5\u6d88\u9664\u5dee\u5f02\u7b2c\u4e00\u6b65\uff1a\u5bb9\u5668\u5316<\/section>\n<p>\u5bb9\u5668\u5316\u6280\u672f\uff0c\u5305\u62ec Docker\uff0c\u5176\u8bbe\u8ba1\u521d\u8877\u5c31\u662f\u4e3a\u4e86\u5e2e\u52a9\u6211\u4eec\u5728\u751f\u4ea7\u673a\u5668\u4e0a\u91cd\u5efa\u5f00\u53d1\u73af\u5883\u3002\u4f7f\u7528 Dokcer \u7684\u65f6\u5019\uff0c\u4f60\u521b\u5efa\u4e00\u4e2a Dockerfile \u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u6b65\u6b65\u7684\u6307\u4ee4\uff08\u5b89\u88c5\u8fd9\u4e2a\u5305\uff0c\u4e0b\u8f7d\u8fd9\u4e2a\u9884\u8bad\u7ec3\u7684\u6a21\u578b\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u5bfc\u822a\u5230\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7b49\u7b49\uff09\uff0c\u8ba9\u4f60\u53ef\u4ee5\u91cd\u5efa\u8fd0\u884c\u6a21\u578b\u7684\u73af\u5883\u3002\u8fd9\u4e9b\u6307\u4ee4\u8ba9\u4f60\u7684\u4ee3\u7801\u53ef\u4ee5\u5728\u4efb\u4f55\u5730\u65b9\u7684\u786c\u4ef6\u8fd0\u884c\u4e0a\u8fd0\u884c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u505a\u4e86\u4ec0\u4e48\u6709\u8da3\u7684\u4e8b\u60c5\uff0c\u90a3\u4e48\u4f60\u53ef\u80fd\u9700\u8981\u4e0d\u53ea\u4e00\u4e2a\u5bb9\u5668\u3002\u8003\u8651\u8fd9\u6837\u4e00\u79cd\u60c5\u51b5\uff1a\u4f60\u7684\u9879\u76ee\u65e2\u5305\u542b\u8fd0\u884c\u901f\u5ea6\u5feb\u4f46\u9700\u8981\u5927\u91cf\u5185\u5b58\u7684\u7279\u5f81\u63d0\u53d6\u4ee3\u7801\uff0c\u4e5f\u5305\u542b\u8fd0\u884c\u901f\u5ea6\u6162\u4f46\u9700\u8981\u8f83\u5c11\u5185\u5b58\u7684\u6a21\u578b\u8bad\u7ec3\u4ee3\u7801\u3002\u5982\u679c\u8981\u5728\u76f8\u540c\u7684 GPU \u5b9e\u4f8b\u4e0a\u8fd0\u884c\u8fd9\u4e24\u90e8\u5206\u4ee3\u7801\uff0c\u5219\u9700\u8981\u5927\u5185\u5b58\u7684 GPU \u5b9e\u4f8b\uff0c\u8fd9\u53ef\u80fd\u975e\u5e38\u6602\u8d35\u3002\u76f8\u53cd\uff0c\u4f60\u53ef\u4ee5\u5728 CPU \u5b9e\u4f8b\u4e0a\u8fd0\u884c\u7279\u5f81\u63d0\u53d6\u4ee3\u7801\uff0c\u5728 GPU \u5b9e\u4f8b\u4e0a\u8fd0\u884c\u6a21\u578b\u8bad\u7ec3\u4ee3\u7801\u3002\u8fd9\u610f\u5473\u7740\u4f60\u9700\u8981\u4e00\u4e2a\u7279\u5f81\u63d0\u53d6\u5b9e\u4f8b\u7684\u5bb9\u5668\u548c\u4e00\u4e2a\u8bad\u7ec3\u5b9e\u4f8b\u7684\u5bb9\u5668\u3002<\/p>\n<p>\u5f53\u7ba1\u9053\u7684\u4e0d\u540c\u6b65\u9aa4\u5b58\u5728\u76f8\u4e92\u51b2\u7a81\u7684\u4f9d\u8d56\u9879\u65f6\uff0c\u4e5f\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u5bb9\u5668\uff0c\u5982\u7279\u5f81\u63d0\u53d6\u4ee3\u7801\u9700\u8981 NumPy 0.8\uff0c\u4f46\u6a21\u578b\u9700\u8981 NumPy 1.0\u3002<\/p>\n<p>\u5f53\u5b58\u5728\u591a\u4e2a\u5b9e\u4f8b\u7684\u591a\u4e2a\u5bb9\u5668\u65f6\uff0c\u4f60\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u7f51\u7edc\u6765\u5b9e\u73b0\u5b83\u4eec\u4e4b\u95f4\u7684\u901a\u4fe1\u548c\u8d44\u6e90\u5171\u4eab\u3002\u4f60\u53ef\u80fd\u8fd8\u9700\u8981\u4e00\u4e2a\u5bb9\u5668\u7f16\u6392\u5de5\u5177\u6765\u7ba1\u7406\u5b83\u4eec\uff0c\u4fdd\u8bc1\u9ad8\u53ef\u7528\u3002Kubernetes \u5c31\u662f\u5e72\u8fd9\u4e2a\u7684\u3002\u5f53\u4f60\u9700\u8981\u66f4\u591a\u7684\u8ba1\u7b97 \/ \u5185\u5b58\u8d44\u6e90\u65f6\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u542f\u52a8\u66f4\u591a\u5b9e\u4f8b\u7684\u5bb9\u5668\uff0c\u53cd\u8fc7\u6765\uff0c\u5f53\u4f60\u4e0d\u518d\u9700\u8981\u5b83\u4eec\u65f6\uff0c\u5b83\u53ef\u4ee5\u628a\u5b83\u4eec\u5173\u6389\u3002<\/p>\n<p>\u76ee\u524d\uff0c\u4e3a\u4e86\u534f\u8c03\u5f00\u53d1\u548c\u751f\u4ea7\u4e24\u4e2a\u73af\u5883\uff0c\u8bb8\u591a\u56e2\u961f\u9009\u62e9\u4e86\u4e0b\u9762\u4e24\u79cd\u65b9\u6cd5\u4e2d\u7684\u4e00\u79cd\uff1a<\/p>\n<section>\n<ol class=\"list-paddingleft-2\">\n<li><strong>\u7531\u4e00\u4e2a\u5355\u72ec\u7684\u56e2\u961f\u7ba1\u7406\u751f\u4ea7\u73af\u5883<\/strong><\/li>\n<li>\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c\u6570\u636e\u79d1\u5b66 \/ML \u56e2\u961f\u5728\u5f00\u53d1\u73af\u5883\u4e2d\u5f00\u53d1\u6a21\u578b\u3002\u7136\u540e\u7531\u4e00\u4e2a\u5355\u72ec\u7684\u56e2\u961f\uff08\u901a\u5e38\u662f Ops\/Platform\/MLE \u56e2\u961f\uff09\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5c06\u6a21\u578b\u751f\u4ea7\u5316\u3002\u8fd9\u79cd\u65b9\u6cd5\u5b58\u5728\u8bb8\u591a\u7f3a\u70b9\u3002\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1444\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-13.png\" width=\"888\" height=\"293\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-13.png 888w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-13-300x99.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-13-768x253.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/li>\n<li><strong>\u6570\u636e\u79d1\u5b66\u5bb6\u62e5\u6709\u6574\u4e2a\u8fc7\u7a0b<\/strong><\/li>\n<li>\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c\u6570\u636e\u79d1\u5b66\u56e2\u961f\u8fd8\u9700\u8981\u8003\u8651\u5982\u4f55\u5c06\u6a21\u578b\u6295\u5165\u751f\u4ea7\u5e94\u7528\u3002\u6570\u636e\u79d1\u5b66\u5bb6\u53d8\u6210\u4e86\u813e\u6c14\u66b4\u8e81\u7684\u72ec\u89d2\u517d\uff0c\u4eba\u4eec\u671f\u671b\u4ed6\u4eec\u4e86\u89e3\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u7684\u6240\u6709\u5de5\u4f5c\uff0c\u4e0e\u6570\u636e\u79d1\u5b66\u76f8\u6bd4\uff0c\u4ed6\u4eec\u6700\u7ec8\u53ef\u80fd\u8981\u5199\u51fa\u66f4\u591a\u7684\u6837\u677f\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<\/section>\n<section>6\u6d88\u9664\u5dee\u5f02\u7b2c\u4e8c\u6b65\uff1a\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61<\/section>\n<p>\u5982\u679c\u6211\u4eec\u6709\u4e00\u79cd\u62bd\u8c61\u65b9\u6cd5\uff0c\u8ba9\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u62e5\u6709\u7aef\u5230\u7aef\u7684\u8fc7\u7a0b\uff0c\u800c\u53c8\u4e0d\u5fc5\u62c5\u5fc3\u57fa\u7840\u8bbe\u65bd\u7684\u95ee\u9898\uff0c\u4f1a\u600e\u4e48\u6837\uff1f<\/p>\n<p>\u5982\u679c\u6211\u53ef\u4ee5\u76f4\u63a5\u544a\u8bc9\u5de5\u5177\uff1a\u8fd9\u91cc\u662f\u6211\u5b58\u50a8\u6570\u636e\u7684\u5730\u65b9\uff08S3\uff09\uff0c\u8fd9\u91cc\u662f\u6211\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\uff08\u7279\u5f81\u63d0\u53d6\u3001\u5efa\u6a21\uff09\uff0c\u8fd9\u91cc\u662f\u6211\u8fd0\u884c\u4ee3\u7801\u7684\u5730\u65b9\uff08EC2 \u5b9e\u4f8b\u3001AWS Batch\u3001Function \u7b49\u65e0\u670d\u52a1\u5668\u7c7b\u7684\u4e1c\u897f\uff09\uff0c\u8fd9\u91cc\u662f\u6211\u7684\u4ee3\u7801\u5728\u6bcf\u4e00\u6b65\u9700\u8981\u8fd0\u884c\u7684\u4e1c\u897f\uff08\u4f9d\u8d56\u9879\uff09\u3002\u7136\u540e\u8fd9\u4e2a\u5de5\u5177\u4f1a\u4e3a\u6211\u7ba1\u7406\u6240\u6709\u57fa\u7840\u8bbe\u65bd\u76f8\u5173\u7684\u5de5\u4f5c\uff0c\u90a3\u4f1a\u600e\u4e48\u6837\uff1f<\/p>\n<p>\u6839\u636e Stitch Fix \u548c Netflix \u7684\u8bf4\u6cd5\uff0c\u5168\u6808\u6570\u636e\u79d1\u5b66\u5bb6\u7684\u6210\u529f\u4f9d\u8d56\u4e8e\u4ed6\u4eec\u62e5\u6709\u7684\u5de5\u5177\u3002\u4ed6\u4eec\u9700\u8981\u7684\u5de5\u5177\u5e94\u8be5\u80fd\u591f\u201c\u5c06\u6570\u636e\u79d1\u5b66\u5bb6\u4ece\u5bb9\u5668\u5316\u3001\u5206\u5e03\u5f0f\u5904\u7406\u3001\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u53ca\u5176\u4ed6\u590d\u6742\u7684\u9ad8\u7ea7\u8ba1\u7b97\u673a\u79d1\u5b66\u6982\u5ff5\u4e2d\u62bd\u79bb\u51fa\u6765\u201d\u3002<\/p>\n<p>\u5728 Netflix \u7684\u6a21\u578b\u4e2d\uff0c\u4e13\u5bb6\u2014\u2014\u90a3\u4e9b\u539f\u672c\u5c31\u62e5\u6709\u90e8\u5206\u9879\u76ee\u7684\u4eba\u2014\u2014\u9996\u5148\u521b\u5efa\u4e86\u4f7f\u81ea\u5df1\u90a3\u90e8\u5206\u81ea\u52a8\u5316\u7684\u5de5\u5177\u3002\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u5b9e\u73b0\u81ea\u5df1\u9879\u76ee\u7684\u7aef\u5230\u7aef\u3002<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img img_loading\" src=\"data:image\/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-fileid=\"100065878\" data-ratio=\"0.3791895947973987\" data-type=\"png\" data-w=\"1999\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YriaiaJPb26VOSYrTxPGBIuBgFwWNoFkzYks0GMhnawz6GlYHOmx28iaLLPPRibd18aqOYibQ8qN5BCNyUPIDOafOqg\/640?wx_fmt=png\" \/><\/p>\n<p>Netflix \u7684\u5168\u751f\u547d\u5468\u671f\u5f00\u53d1\u4eba\u5458<\/p>\n<p>\u597d\u6d88\u606f\u662f\uff0c\u4f60\u4e0d\u5728 Netflix \u5de5\u4f5c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ed6\u4eec\u7684\u5de5\u5177\u3002\u4e24\u5e74\u524d\uff0cNetflix \u5f00\u6e90\u4e86 Metaflow\uff0c\u8fd9\u662f\u4e00\u4e2a\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\uff0c\u4f7f\u4ed6\u4eec\u7684\u6570\u636e\u79d1\u5b66\u5bb6\u80fd\u591f\u5f00\u5c55\u5168\u6808\u5de5\u4f5c\uff0c\u800c\u4e0d\u5fc5\u62c5\u5fc3\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<p>\u5bf9\u4e8e\u5927\u591a\u6570\u516c\u53f8\u6765\u8bf4\uff0c\u6570\u636e\u79d1\u5b66\u5bf9\u57fa\u7840\u8bbe\u65bd\u8fdb\u884c\u62bd\u8c61\u7684\u9700\u6c42\u662f\u4e00\u4e2a\u76f8\u5f53\u65b0\u7684\u95ee\u9898\u3002\u8fd9\u4e3b\u8981\u662f\u56e0\u4e3a\uff0c\u4ee5\u524d\u5728\u5927\u591a\u6570\u516c\u53f8\uff0c\u6570\u636e\u79d1\u5b66\u5de5\u4f5c\u7684\u89c4\u6a21\u5e76\u6ca1\u6709\u8fbe\u5230\u8ba9\u57fa\u7840\u8bbe\u65bd\u6210\u4e3a\u95ee\u9898\u7684\u7a0b\u5ea6\u3002\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u4e3b\u8981\u662f\u5728\u4e91\u8bbe\u7f6e\u76f8\u5f53\u590d\u6742\u7684\u65f6\u5019\u624d\u6709\u7528\u3002\u4ece\u4e2d\u53d7\u76ca\u6700\u591a\u7684\u516c\u53f8\u662f\u90a3\u4e9b\u62e5\u6709\u6570\u636e\u79d1\u5b66\u5bb6\u56e2\u961f\u3001\u5927\u578b\u5de5\u4f5c\u6d41\u7a0b\u548c\u591a\u4e2a\u751f\u4ea7\u6a21\u578b\u7684\u516c\u53f8\u3002<\/p>\n<section>7\u5de5\u4f5c\u6d41\u7f16\u6392 vs. \u57fa\u7840\u8bbe\u65bd\u62bd\u8c61<\/section>\n<p>\u56e0\u4e3a\u5bf9\u57fa\u7840\u8bbe\u65bd\u8fdb\u884c\u62bd\u8c61\u7684\u9700\u6c42\u662f\u6700\u8fd1\u624d\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5176\u524d\u666f\u5c1a\u4e0d\u786e\u5b9a\uff08\u800c\u4e14\u6781\u5176\u6df7\u4e71\uff09\u3002\u4f60\u662f\u5426\u66fe\u7ecf\u7591\u60d1\uff0cAirflow\u3001Kubeflow\u3001MLflow\u3001Metaflow\u3001Prefect\u3001Argo \u7b49\u4e4b\u95f4\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u5e76\u4e0d\u662f\u53ea\u6709\u4f60\u6709\u8fd9\u79cd\u611f\u89c9\u3002Paolo Di Tommaso \u7684 awesome-pipeline \u5b58\u50a8\u5e93\u4e2d\u6709\u8fd1 200 \u4e2a\u5de5\u4f5c\u6d41 \/ \u7ba1\u9053\u5de5\u5177\u5305\u3002\u5176\u4e2d\u5927\u591a\u6570\u662f\u5de5\u4f5c\u6d41\u7f16\u6392\u5de5\u5177\uff0c\u800c\u4e0d\u662f\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\uff0c\u4f46\u662f\uff0c\u4eba\u4eec\u5bf9\u8fd9\u4e24\u7c7b\u5de5\u5177\u591a\u6709\u6df7\u6dc6\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5b83\u4eec\u4e4b\u95f4\u7684\u4e00\u4e9b\u5173\u952e\u7684\u76f8\u4f3c\u6027\u548c\u5dee\u5f02\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1445\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14.png\" width=\"1080\" height=\"598\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14-300x166.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14-1024x567.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14-768x425.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>\u5f3a\u70c8\u5efa\u8bae\u4f01\u4e1a\u4e0d\u8981\u5728\u5de5\u5177\u540d\u79f0\u4e2d\u4f7f\u7528\u201cflow\u201d<\/p>\n<p>\u9020\u6210\u8fd9\u79cd\u6df7\u4e71\u7684\u4e00\u4e2a\u539f\u56e0\u662f\uff0c\u6240\u6709\u8fd9\u4e9b\u5de5\u5177\u7684\u57fa\u672c\u6982\u5ff5\u90fd\u76f8\u540c\u3002\u5b83\u4eec\u90fd\u628a\u5de5\u4f5c\u6d41\u7a0b\u5f53\u4f5c\u4e00\u4e2a DAG\uff0c\u5373\u6709\u5411\u65e0\u73af\u56fe\u3002\u5de5\u4f5c\u6d41\u7a0b\u4e2d\u7684\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u90fd\u5bf9\u5e94\u56fe\u4e0a\u7684\u4e00\u4e2a\u8282\u70b9\uff0c\u800c\u6b65\u9aa4\u4e4b\u95f4\u7684\u8fb9\u8868\u793a\u8fd9\u4e9b\u6b65\u9aa4\u7684\u6267\u884c\u987a\u5e8f\u3002\u5b83\u4eec\u7684\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\u5982\u4f55\u5b9a\u4e49\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5982\u4f55\u6253\u5305\u5b83\u4eec\u4ee5\u53ca\u5728\u54ea\u91cc\u6267\u884c\u3002<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img img_loading\" src=\"data:image\/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-fileid=\"100065880\" data-ratio=\"0.5447761194029851\" data-type=\"png\" data-w=\"536\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YriaiaJPb26VOSYrTxPGBIuBgFwWNoFkzYFYFxW3FLeibZ1lGTQ7Pfq5KyJicMLEBD3Te906HRBqRS7YBYTI2eIwcw\/640?wx_fmt=png\" \/><\/p>\n<p>\u5de5\u4f5c\u6d41\u7684 DAG \u8868\u793a<\/p>\n<section>8\u5de5\u4f5c\u6d41\u7f16\u6392\uff1aAirflow vs. Prefect vs. Argo<\/section>\n<p>Airflow \u6700\u521d\u662f\u7531 Airbnb \u5f00\u53d1\u7684\uff0c\u4e8e 2014 \u5e74\u53d1\u5e03\uff0c\u662f\u6700\u65e9\u7684\u5de5\u4f5c\u6d41\u7f16\u6392\u5668\u4e4b\u4e00\u3002\u5b83\u662f\u4e00\u4e2a\u4ee4\u4eba\u8d5e\u53f9\u7684\u4efb\u52a1\u8c03\u5ea6\u5668\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5927\u7684\u64cd\u4f5c\u7b26\u5e93\uff0c\u4f7f\u5f97 Airflow \u5f88\u5bb9\u6613\u4e0e\u4e0d\u540c\u7684\u4e91\u63d0\u4f9b\u5546\u3001\u6570\u636e\u5e93\u3001\u5b58\u50a8\u9009\u9879\u7b49\u4e00\u8d77\u4f7f\u7528\u3002Airflow \u662f\u201c\u914d\u7f6e\u5373\u4ee3\u7801\u201d\u539f\u5219\u7684\u5021\u5bfc\u8005\u3002\u5b83\u7684\u521b\u5efa\u8005\u8ba4\u4e3a\uff0c\u6570\u636e\u5de5\u4f5c\u6d41\u5f88\u590d\u6742\uff0c\u5e94\u8be5\u7528\u4ee3\u7801\uff08Python\uff09\u800c\u4e0d\u662f YAML \u6216\u5176\u4ed6\u58f0\u660e\u6027\u8bed\u8a00\u6765\u5b9a\u4e49\u3002(\u4ed6\u4eec\u662f\u5bf9\u7684\u3002)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1446\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-15.png\" width=\"1080\" height=\"1230\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-15.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-15-263x300.png 263w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-15-899x1024.png 899w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-15-768x875.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>Airflow \u4e2d\u4e00\u4e2a\u4f7f\u7528\u4e86 DockerOperator \u7684\u7b80\u5355\u5de5\u4f5c\u6d41\u3002\u672c\u793a\u4f8b\u6765\u81ea Airflow \u5b58\u50a8\u5e93\u3002<\/p>\n<p>\u7136\u800c\uff0c\u7531\u4e8e\u6bd4\u5176\u4ed6\u5927\u591a\u6570\u5de5\u5177\u521b\u5efa\u5f97\u66f4\u65e9\uff0c\u6240\u4ee5 Airflow \u6ca1\u6709\u4efb\u4f55\u5de5\u5177\u53ef\u4ee5\u501f\u9274\uff0c\u5e76\u56e0\u6b64\u6709\u5f88\u591a\u7f3a\u70b9\uff0cUber \u5de5\u7a0b\u516c\u53f8\u7684\u8fd9\u7bc7\u535a\u6587\u5bf9\u6b64\u505a\u4e86\u8be6\u7ec6\u8ba8\u8bba\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ea\u4ecb\u7ecd\u5176\u4e2d\u4e09\u4e2a\uff0c\u8ba9\u4f60\u5927\u6982\u6709\u4e2a\u4e86\u89e3\u3002<\/p>\n<p>\u9996\u5148\uff0cAirflow \u662f\u5355\u4f53\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u5c06\u6574\u4e2a\u5de5\u4f5c\u6d41\u7a0b\u6253\u5305\u6210\u4e86\u4e00\u4e2a\u5bb9\u5668\u3002\u5982\u679c\u4f60\u7684\u5de5\u4f5c\u6d41\u7a0b\u4e2d\u5b58\u5728\u4e24\u4e2a\u4e0d\u540c\u6b65\u9aa4\u6709\u4e0d\u540c\u7684\u8981\u6c42\uff0c\u7406\u8bba\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Airflow \u63d0\u4f9b\u7684 DockerOperator \u521b\u5efa\u4e0d\u540c\u7684\u5bb9\u5668\uff0c\u4f46\u8fd9\u5e76\u4e0d\u5bb9\u6613\u3002<\/p>\n<p>\u7b2c\u4e8c\uff0cAirflow \u7684 DAG \u6ca1\u6709\u53c2\u6570\u5316\uff0c\u8fd9\u610f\u5473\u7740\u4f60\u65e0\u6cd5\u5411\u5de5\u4f5c\u6d41\u4e2d\u4f20\u5165\u53c2\u6570\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u7528\u4e0d\u540c\u7684\u5b66\u4e60\u7387\u8fd0\u884c\u540c\u4e00\u4e2a\u6a21\u578b\uff0c\u5c31\u5fc5\u987b\u521b\u5efa\u4e0d\u540c\u7684\u5de5\u4f5c\u6d41\u3002<\/p>\n<p>\u7b2c\u4e09\uff0cAirflow \u7684 DAG \u662f\u9759\u6001\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4e0d\u80fd\u5728\u8fd0\u884c\u65f6\u6839\u636e\u9700\u8981\u81ea\u52a8\u521b\u5efa\u65b0\u6b65\u9aa4\u3002\u60f3\u8c61\u4e00\u4e0b\uff0c\u5f53\u4f60\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u6b65\u9aa4\u6765\u5904\u7406\u6570\u636e\u5e93\u4e2d\u7684\u6bcf\u4e00\u6761\u8bb0\u5f55\uff08\u5982\u8fdb\u884c\u9884\u6d4b\uff09\uff0c\u4f46\u4f60\u4e8b\u5148\u5e76\u4e0d\u77e5\u9053\u6570\u636e\u5e93\u4e2d\u6709\u591a\u5c11\u6761\u8bb0\u5f55\uff0cAirflow \u5904\u7406\u4e0d\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u4e0b\u4e00\u4ee3\u5de5\u4f5c\u6d41\u7f16\u6392\u5668\uff08Argo\u3001Prefect\uff09\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3 Airflow \u4e0d\u540c\u65b9\u9762\u7684\u7f3a\u70b9\u800c\u521b\u5efa\u7684\u3002<\/p>\n<p>Prefect \u9996\u5e2d\u6267\u884c\u5b98 Jeremiah Lowin \u662f Airflow \u7684\u6838\u5fc3\u8d21\u732e\u8005\u3002\u4ed6\u4eec\u5728\u65e9\u671f\u7684\u8425\u9500\u6d3b\u52a8\u4e2d\u5bf9 Prefect \u548c Airflow \u505a\u4e86\u5f3a\u70c8\u7684\u5bf9\u6bd4\u3002Prefect \u7684\u5de5\u4f5c\u6d41\u5b9e\u73b0\u4e86\u53c2\u6570\u5316\uff0c\u800c\u4e14\u662f\u52a8\u6001\u7684\uff0c\u4e0e Airflow \u76f8\u6bd4\u6709\u5f88\u5927\u7684\u6539\u8fdb\u3002\u5b83\u8fd8\u9075\u5faa \u201c\u914d\u7f6e\u5373\u4ee3\u7801\u201d\u7684\u539f\u5219\uff0c\u56e0\u6b64\u5de5\u4f5c\u6d41\u662f\u7528 Python \u5b9a\u4e49\u7684\u3002<\/p>\n<p>\u7136\u800c\uff0c\u50cf Airflow \u4e00\u6837\uff0c\u5bb9\u5668\u5316\u6b65\u9aa4\u5e76\u4e0d\u662f Prefect \u7684\u9996\u8981\u4efb\u52a1\u3002\u4f60\u53ef\u4ee5\u5728\u5bb9\u5668\u4e2d\u8fd0\u884c\u6bcf\u4e2a\u6b65\u9aa4\uff0c\u4f46\u4ecd\u7136\u9700\u8981\u5904\u7406 Dockerfile\uff0c\u5e76\u5728 Prefect \u4e2d\u6ce8\u518c\u5de5\u4f5c\u6d41 docker\u3002<\/p>\n<p>Argo \u89e3\u51b3\u4e86\u5bb9\u5668\u7684\u95ee\u9898\u3002\u5728 Argo \u7684\u5de5\u4f5c\u6d41\u7a0b\u4e2d\uff0c\u6bcf\u4e00\u6b65\u90fd\u5728\u81ea\u5df1\u7684\u5bb9\u5668\u4e2d\u8fd0\u884c\u3002\u7136\u800c\uff0cArgo \u7684\u5de5\u4f5c\u6d41\u662f\u7528 YAML \u5b9a\u4e49\u7684\uff0c\u8fd9\u8ba9\u4f60\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\u5b9a\u4e49\u6bcf\u4e2a\u6b65\u9aa4\u53ca\u5176\u8981\u6c42\u3002\u4f46 YAML \u4f1a\u8ba9\u4f60\u7684\u5de5\u4f5c\u6d41\u5b9a\u4e49\u53d8\u5f97\u6df7\u4e71\uff0c\u96be\u4ee5\u8c03\u8bd5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1447\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-16.png\" width=\"1045\" height=\"1280\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-16.png 1045w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-16-245x300.png 245w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-16-836x1024.png 836w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-16-768x941.png 768w\" sizes=\"auto, (max-width: 1045px) 100vw, 1045px\" \/><\/p>\n<p>\u8fd9\u662f Argo \u4e2d\u4e00\u4e2a\u63b7\u786c\u5e01\u7684\u5de5\u4f5c\u6d41\u3002\u53ef\u4ee5\u60f3\u8c61\u4e00\u4e0b\uff0c\u5982\u679c\u4f60\u505a\u7684\u4e8b\u60c5\u8fdc\u6bd4\u8fd9\u4e2a\u6709\u8da3\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6587\u4ef6\u4f1a\u591a\u4e48\u51cc\u4e71\u3002\u672c\u793a\u4f8b\u6765\u81ea Argo \u5b58\u50a8\u5e93\u3002<\/p>\n<p>\u9664\u4e86 YAML \u6587\u4ef6\u6bd4\u8f83\u4e71\u4e4b\u5916\uff0cArgo \u7684\u4e3b\u8981\u7f3a\u70b9\u662f\u5b83\u53ea\u80fd\u5728 Kubernetes \u96c6\u7fa4\u4e0a\u8fd0\u884c\uff0c\u800c\u901a\u5e38 Kubernetes \u96c6\u7fa4\u53ea\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u63d0\u4f9b\u3002\u5982\u679c\u4f60\u60f3\u5728\u672c\u5730\u6d4b\u8bd5\u540c\u6837\u7684\u5de5\u4f5c\u6d41\uff0c\u5c31\u5fc5\u987b\u4f7f\u7528 minikube \u6216 k3d\u3002<\/p>\n<section>9\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\uff1aKubeflow vs. Metaflow<\/section>\n<p>\u50cf Kubeflow \u548c Metaflow \u8fd9\u6837\u7684\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\uff0c\u65e8\u5728\u5c06\u8fd0\u884c Airflow \u6216 Argo \u901a\u5e38\u9700\u8981\u7684\u57fa\u7840\u8bbe\u65bd\u6a21\u677f\u4ee3\u7801\u62bd\u8c61\u51fa\u6765\uff0c\u5e2e\u52a9\u4f60\u5728\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e2d\u8fd0\u884c\u5de5\u4f5c\u6d41\u3002\u5b83\u4eec\u627f\u8bfa\u8ba9\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u4ece\u672c\u5730\u7b14\u8bb0\u672c\u4e0a\u8bbf\u95ee\u751f\u4ea7\u73af\u5883\u7684\u5168\u90e8\u8ba1\u7b97\u80fd\u529b\uff0c\u5b9e\u9645\u4e0a\uff0c\u8fd9\u5c31\u8ba9\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u5728\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u5c3d\u7ba1\u5b83\u4eec\u6709\u4e00\u4e9b\u5de5\u4f5c\u6d41\u7f16\u6392\u80fd\u529b\uff0c\u4f46\u5b83\u4eec\u662f\u8981\u4e0e\u771f\u6b63\u7684\u5de5\u4f5c\u6d41\u7f16\u6392\u5668\u642d\u914d\u4f7f\u7528\u7684\u3002\u4e8b\u5b9e\u4e0a\uff0cKubeflow \u7684\u5176\u4e2d\u4e00\u4e2a\u7ec4\u4ef6 Kubeflow Pipelines \u5c31\u662f\u57fa\u4e8e Argo \u6784\u5efa\u7684\u3002<\/p>\n<p>\u9664\u4e86\u4e3a\u4f60\u63d0\u4f9b\u4e00\u81f4\u7684\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u5916\uff0cKubeflow \u548c Metaflow \u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u4e00\u4e9b\u4e0d\u9519\u7684\u7279\u6027\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li><strong>\u7248\u672c\u63a7\u5236<\/strong>\uff1a\u81ea\u52a8\u751f\u6210\u5de5\u4f5c\u6d41\u6a21\u578b\u3001\u6570\u636e\u548c\u5de5\u4ef6\u7684\u5feb\u7167\u3002<\/li>\n<li><strong>\u4f9d\u8d56\u9879\u7ba1\u7406<\/strong>\uff1a\u7531\u4e8e\u5b83\u4eec\u5141\u8bb8\u5de5\u4f5c\u6d41\u7684\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u5728\u81ea\u5df1\u7684\u5bb9\u5668\u4e2d\u8fd0\u884c\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u63a7\u5236\u6bcf\u4e2a\u6b65\u9aa4\u7684\u4f9d\u8d56\u9879\u3002<\/li>\n<li><strong>\u53ef\u8c03\u8bd5\u6027<\/strong>\uff1a\u5f53\u4e00\u4e2a\u6b65\u9aa4\u5931\u8d25\u65f6\uff0c\u4f60\u53ef\u4ee5\u4ece\u5931\u8d25\u7684\u6b65\u9aa4\u6062\u590d\u5de5\u4f5c\u6d41\uff0c\u800c\u4e0d\u662f\u4ece\u5934\u5f00\u59cb\u3002<\/li>\n<li><strong>\u5b83\u4eec\u90fd\u662f\u5b8c\u5168\u53c2\u6570\u5316\u7684\uff0c\u800c\u4e14\u662f\u52a8\u6001\u7684\u3002<\/strong><\/li>\n<\/ul>\n<p>\u76ee\u524d\uff0cKubeflow \u66f4\u6d41\u884c\uff0c\u56e0\u4e3a\u5b83\u4e0e K8s \u96c6\u7fa4\u505a\u4e86\u96c6\u6210\uff08\u540c\u65f6\uff0c\u5b83\u662f\u7531\u8c37\u6b4c\u521b\u5efa\u7684\uff09\uff0c\u800c Metaflow \u53ea\u80fd\u7528\u4e8e AWS \u670d\u52a1\uff08Batch\u3001Step Functions \u7b49\uff09\u3002\u7136\u800c\uff0c\u5b83\u6700\u8fd1\u4ece Netflix \u5265\u79bb\u4e86\u51fa\u6765\uff0c\u6210\u4e86\u4e00\u5bb6\u521b\u4e1a\u516c\u53f8\uff0c\u6240\u4ee5\u6211\u9884\u8ba1\u5b83\u5f88\u5feb\u5c31\u4f1a\u53d1\u5c55\u5230\u66f4\u591a\u7684\u7528\u4f8b\u3002\u81f3\u5c11\uff0c\u539f\u751f\u7684 K8s \u96c6\u6210\u6b63\u5728\u8fdb\u884c\u4e2d\uff01<\/p>\n<p>\u4ece\u7528\u6237\u4f53\u9a8c\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u6211\u8ba4\u4e3a Metaflow \u66f4\u80dc\u4e00\u7b79\u3002\u5728 Kubeflow \u4e2d\uff0c\u867d\u7136\u4f60\u53ef\u4ee5\u7528 Python \u5b9a\u4e49\u5de5\u4f5c\u6d41\uff0c\u4f46\u4f60\u4ecd\u7136\u9700\u8981\u5199\u4e00\u4e2a Dockerfile \u548c\u4e00\u4e2a YAML \u6587\u4ef6\u6765\u6307\u5b9a\u6bcf\u4e2a\u7ec4\u4ef6\u7684\u89c4\u683c\uff08\u5982\u5904\u7406\u6570\u636e\u3001\u8bad\u7ec3\u3001\u90e8\u7f72\uff09\uff0c\u7136\u540e\u624d\u80fd\u5c06\u5b83\u4eec\u62fc\u63a5\u5230 Python \u5de5\u4f5c\u6d41\u4e2d\u3002\u56e0\u6b64\uff0cKubeflow \u5e2e\u52a9\u4f60\u62bd\u79bb\u4e86\u5176\u4ed6\u5de5\u5177\u7684\u6a21\u677f\uff0c\u4f60\u53ea\u9700\u8981\u7f16\u5199 Kubeflow \u6a21\u677f\u5c31\u884c\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1448\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-17.png\" width=\"1080\" height=\"676\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-17.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-17-300x188.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-17-1024x641.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/11\/4ffce04d92a4d6cb21c1494cdfcd6dc1-17-768x481.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>Kubeflow \u5de5\u4f5c\u6d41\u3002\u5c3d\u7ba1\u53ef\u4ee5\u7528 Python \u521b\u5efa Kubeflow \u5de5\u4f5c\u6d41\uff0c\u4f46\u4ecd\u6709\u8bb8\u591a\u914d\u7f6e\u6587\u4ef6\u9700\u8981\u7f16\u5199\u3002\u672c\u793a\u4f8b\u6765\u81ea Kubeflow \u5b58\u50a8\u5e93\u3002<\/p>\n<p>\u5728 Metaflow \u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Python \u88c5\u9970\u5668<code>@conda<\/code>\u6765\u6307\u5b9a\u6bcf\u4e2a\u6b65\u9aa4\u7684\u9700\u6c42\u2014\u2014\u6240\u9700\u7684\u5e93\u3001\u5185\u5b58\u548c\u8ba1\u7b97\u8d44\u6e90\u9700\u6c42\u2014\u2014Metaflow \u5c06\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u6ee1\u8db3\u6240\u6709\u8fd9\u4e9b\u8981\u6c42\u7684\u5bb9\u5668\u6765\u6267\u884c\u8be5\u6b65\u9aa4\u3002\u4f60\u4e0d\u7528\u518d\u7f16\u5199 Dockerfiles \u6216 YAML \u6587\u4ef6\u3002<\/p>\n<p>Metaflow \u8ba9\u4f60\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a notebook\/ \u811a\u672c\u4e2d\u5b9e\u73b0\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u7684\u65e0\u7f1d\u8854\u63a5\u3002\u4f60\u53ef\u4ee5\u5728\u672c\u673a\u4e0a\u8fd0\u884c\u5c0f\u6570\u636e\u96c6\u5b9e\u9a8c\uff0c\u5f53\u4f60\u51c6\u5907\u5728\u4e91\u4e0a\u8fd0\u884c\u5927\u6570\u636e\u96c6\u5b9e\u9a8c\u65f6\uff0c\u53ea\u9700\u6dfb\u52a0<code>@batch<\/code>\u88c5\u9970\u5668\u5c31\u53ef\u4ee5\u5728 AWS Batch \u4e0a\u6267\u884c\u3002\u4f60\u751a\u81f3\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u540c\u4e00\u5de5\u4f5c\u6d41\u7684\u4e0d\u540c\u6b65\u9aa4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2a\u6b65\u9aa4\u9700\u8981\u7684\u5185\u5b58\u8f83\u5c0f\uff0c\u5c31\u53ef\u4ee5\u5728\u672c\u5730\u673a\u5668\u4e0a\u8fd0\u884c\u3002\u4f46\u5982\u679c\u4e0b\u4e00\u6b65\u9700\u8981\u7684\u5185\u5b58\u8f83\u5927\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u6dfb\u52a0<code>@batch<\/code>\u5728\u4e91\u7aef\u6267\u884c\u3002<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ruby\"><code><span class=\"code-snippet_outer\"># \u793a\u4f8b\uff1a\u4e00\u4e2a\u7ec4\u5408\u4f7f\u7528\u4e86\u4e24\u79cd\u6a21\u578b\u7684\u63a8\u8350\u7cfb\u7edf\u7684\u6846\u67b6<\/span><\/code><code><span class=\"code-snippet_outer\"># A \u6a21\u578b\u5728\u672c\u5730\u673a\u5668\u4e0a\u8fd0\u884c\uff0cB \u6a21\u578b\u5728 AWS \u4e0a\u8fd0\u884c<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">class RecSysFlow(FlowSpec):<\/span><\/code><code><span class=\"code-snippet_outer\">    @step<\/span><\/code><code><span class=\"code-snippet_outer\">    def start(self):<\/span><\/code><code><span class=\"code-snippet_outer\">        self.data = load_data()<\/span><\/code><code><span class=\"code-snippet_outer\">        self.next(self.fitA, self.fitB)<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    # fitA requires a different version of NumPy compared to fitB<\/span><\/code><code><span class=\"code-snippet_outer\">    @conda(libraries={\"scikit-learn\":\"0.21.1\", \"numpy\":\"1.13.0\"})<\/span><\/code><code><span class=\"code-snippet_outer\">    @step<\/span><\/code><code><span class=\"code-snippet_outer\">    def fitA(self):<\/span><\/code><code><span class=\"code-snippet_outer\">        self.model = fit(self.data, model=\"A\")<\/span><\/code><code><span class=\"code-snippet_outer\">        self.next(self.ensemble)<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    @conda(libraries={\"numpy\":\"0.9.8\"})<\/span><\/code><code><span class=\"code-snippet_outer\">    # Requires 2 GPU of 16GB memory<\/span><\/code><code><span class=\"code-snippet_outer\">    @batch(gpu=2, memory=16000)<\/span><\/code><code><span class=\"code-snippet_outer\">    @step<\/span><\/code><code><span class=\"code-snippet_outer\">    def fitB(self):<\/span><\/code><code><span class=\"code-snippet_outer\">        self.model = fit(self.data, model=\"B\")<\/span><\/code><code><span class=\"code-snippet_outer\">        self.next(self.ensemble)<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    @step<\/span><\/code><code><span class=\"code-snippet_outer\">    def ensemble(self, inputs):<\/span><\/code><code><span class=\"code-snippet_outer\">        self.outputs = (<\/span><\/code><code><span class=\"code-snippet_outer\">                   (inputs.fitA.model.predict(self.data) +                                      <\/span><\/code><code><span class=\"code-snippet_outer\">                    inputs.fitB.model.predict(self.data)) \/ 2<\/span><\/code><code><span class=\"code-snippet_outer\">                   for input in inputs<\/span><\/code><code><span class=\"code-snippet_outer\">        )<\/span><\/code><code><span class=\"code-snippet_outer\">        self.next(self.end)<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    def end(self):<\/span><\/code><code><span class=\"code-snippet_outer\">        print(self.outputs)<\/span><\/code><\/pre>\n<\/section>\n<section>10\u603b\u7ed3<\/section>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u7684\u957f\u5ea6\u548c\u4fe1\u606f\u91cf\u90fd\u8fdc\u8fdc\u8d85\u51fa\u4e86\u6211\u7684\u9884\u671f\u3002\u8fd9\u6709\u4e24\u4e2a\u65b9\u9762\u7684\u539f\u56e0\uff0c\u4e00\u662f\u6240\u6709\u4e0e\u5de5\u4f5c\u6d41\u6709\u5173\u7684\u5de5\u5177\u90fd\u5f88\u590d\u6742\uff0c\u800c\u4e14\u5f88\u5bb9\u6613\u6df7\u6dc6\uff0c\u4e8c\u662f\u6211\u81ea\u5df1\u65e0\u6cd5\u627e\u5230\u4e00\u79cd\u66f4\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u89e3\u91ca\u5b83\u4eec\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u672c\u6587\u7684\u4e00\u4e9b\u8981\u70b9\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u542f\u53d1\u3002<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>\n<section>\u5f00\u53d1\u73af\u5883\u548c\u751f\u4ea7\u73af\u5883\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u5bfc\u81f4\u4f01\u4e1a\u5e0c\u671b\u6570\u636e\u79d1\u5b66\u5bb6\u80fd\u591f\u638c\u63e1\u4e24\u5957\u5b8c\u6574\u7684\u5de5\u5177\uff1a\u4e00\u5957\u7528\u4e8e\u5f00\u53d1\u73af\u5883\uff0c\u4e00\u5957\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u3002<\/section>\n<\/li>\n<li>\n<section>\u6570\u636e\u79d1\u5b66\u9879\u76ee\u7aef\u5230\u7aef\u53ef\u4ee5\u52a0\u901f\u6267\u884c\uff0c\u5e76\u964d\u4f4e\u6c9f\u901a\u5f00\u9500\u3002\u7136\u800c\uff0c\u53ea\u6709\u5f53\u6211\u4eec\u6709\u597d\u7684\u5de5\u5177\u6765\u62bd\u8c61\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\uff0c\u5e2e\u52a9\u6570\u636e\u79d1\u5b66\u5bb6\u4e13\u6ce8\u4e8e\u5b9e\u9645\u7684\u6570\u636e\u79d1\u5b66\u5de5\u4f5c\uff0c\u800c\u4e0d\u662f\u914d\u7f6e\u6587\u4ef6\u65f6\uff0c\u8fd9\u624d\u6709\u610f\u4e49\u3002<\/section>\n<\/li>\n<li>\n<section>\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\uff08Kubeflow\u3001Metaflow\uff09\u4e0e\u5de5\u4f5c\u6d41\u7f16\u6392\u5668\uff08Airflow\u3001Argo\u3001Prefect\uff09\u4f3c\u4e4e\u5f88\u76f8\u4f3c\uff0c\u56e0\u4e3a\u5b83\u4eec\u90fd\u5c06\u5de5\u4f5c\u6d41\u89c6\u4e3a DAG\u3002\u7136\u800c\uff0c\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u7684\u4e3b\u8981\u4ef7\u503c\u5728\u4e8e\u4f7f\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u5728\u672c\u5730\u548c\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u4ee3\u7801\u3002\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\u53ef\u4ee5\u548c\u5de5\u4f5c\u6d41\u7f16\u6392\u5668\u642d\u914d\u4f7f\u7528\u3002<\/section>\n<\/li>\n<li>\u5728\u4f7f\u7528\u5b83\u4eec\u4e4b\u524d\uff0c\u5f88\u591a\u6570\u636e\u79d1\u5b66\u5bb6\u90fd\u4e0d\u77e5\u9053\u4ed6\u4eec\u9700\u8981\u8fd9\u6837\u7684\u57fa\u7840\u8bbe\u65bd\u62bd\u8c61\u5de5\u5177\u3002\u52a1\u5fc5\u8bd5\u4e00\u4e0b\uff08Kubeflow \u6bd4\u8f83\u590d\u6742\uff0c\u4f46 Metaflow \u53ea\u9700 5 \u5206\u949f\u5c31\u80fd\u4e0a\u624b\uff09\u3002<\/li>\n<\/ol>\n<section>11\u66f4\u65b0<\/section>\n<p>Yuan Tang \u662f Argo \u7684\u9876\u7ea7\u8d21\u732e\u8005\uff0c\u4ed6\u5bf9\u672c\u6587\u7684\u8bc4\u8bba\u5982\u4e0b\uff1a<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>Argo \u662f\u4e00\u4e2a\u5f88\u5927\u7684\u9879\u76ee\uff0c\u5305\u62ec Workflows\u3001Events\u3001CD\u3001Rollouts \u7b49\u3002\u56e0\u6b64\uff0c\u5728\u4e0e\u5176\u4ed6\u5de5\u4f5c\u6d41\u5f15\u64ce\u6bd4\u8f83\u65f6\uff0c\u4f7f\u7528\u5b50\u9879\u76ee Argo Workflows \u66f4\u51c6\u786e\u3002<\/li>\n<li>\u8fd8\u6709\u4e00\u4e9b\u9879\u76ee\u4e3a Argo Workflows \u63d0\u4f9b\u4e86\u66f4\u9ad8\u5c42\u6b21\u7684 Python \u63a5\u53e3\uff0c\u8fd9\u6837\u6570\u636e\u79d1\u5b66\u5bb6\u5c31\u4e0d\u5fc5\u4f7f\u7528 YAML \u4e86\u3002\u7279\u522b\u5730\uff0c\u53ef\u4ee5\u7814\u7a76\u4e0b\u4f7f\u7528 Argo Workflows \u4f5c\u4e3a\u5de5\u4f5c\u6d41\u5f15\u64ce\u7684 Couler \u548c Kubeflow Pipelines\u3002<\/li>\n<\/ol>\n<p>\u4eba\u4eec\u8fd8\u63d0\u5230\u4e86\u5176\u4ed6\u4e00\u4e9b\u5f88\u68d2\u7684\u5de5\u5177\uff0c\u6211\u5728\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u5217\u4e3e\u4e86\uff0c\u6bd4\u5982 MLFlow \u6216 Flyte\u3002\u6211\u76ee\u524d\u8fd8\u5728\u5b66\u4e60\u8be5\u9886\u57df\u7684\u76f8\u5173\u77e5\u8bc6\u3002\u975e\u5e38\u611f\u8c22\u60a8\u7684\u53cd\u9988\u3002\u8c22\u8c22\uff01<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1440\" class=\"pvc_stats total_only  \" data-element-id=\"1440\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005 | Chip Huyen\u00a0 \u8bd1\u8005 | \u5e73\u5ddd \u7b56\u5212 | Tina \u6700\u8fd1\uff0c\u5173\u4e8e\u6570\u636e\u79d1\u5b66\u5bb6\u7684\u5de5\u4f5c\u5e94\u8be5\u5305\u542b\u54ea\u4e9b\uff0c [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1440\" class=\"pvc_stats total_only  \" data-element-id=\"1440\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":1441,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/1440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=1440"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/1440\/revisions"}],"predecessor-version":[{"id":1449,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/1440\/revisions\/1449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/1441"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=1440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=1440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=1440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}