{"id":1482,"date":"2020-06-05T01:35:13","date_gmt":"2020-06-04T17:35:13","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1482"},"modified":"2020-06-05T01:35:13","modified_gmt":"2020-06-04T17:35:13","slug":"kubeflow%e5%9f%ba%e4%ba%8ek8s%e7%9a%84%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1482","title":{"rendered":"Kubeflow\u57fa\u4e8eK8S\u7684\u673a\u5668\u5b66\u4e60"},"content":{"rendered":"<div>\n<h1>\u4ec0\u4e48\u662fKubeflow<\/h1>\n<p><strong>Kubeflow<\/strong>\u662f<code>Kubernetes<\/code>\u7684\u673a\u5668\u5b66\u4e60\u5de5\u5177\u5305\u3002<code>Kubeflow<\/code>\u662f\u8fd0\u884c\u5728<code>K8S<\/code>\u4e4b\u4e0a\u7684\u4e00\u5957\u6280\u672f\u6808\uff0c\u8fd9\u5957\u6280\u672f\u6808\u5305\u542b\u4e86\u5f88\u591a\u7ec4\u4ef6\uff0c\u7ec4\u4ef6\u4e4b\u95f4\u7684\u5173\u7cfb\u6bd4\u8f83\u677e\u6563\uff0c\u6211\u4eec\u53ef\u4ee5\u914d\u5408\u8d77\u6765\u7528\uff0c\u4e5f\u53ef\u4ee5\u5355\u72ec\u7528\u5176\u4e2d\u7684\u4e00\u90e8\u5206\u3002\u4e0b\u56fe\u662f\u5b98\u7f51\u663e\u793a<code>Kubeflow<\/code>\u4f5c\u4e3a\u5728<code>Kubernetes<\/code>\u4e0a\u5b89\u6392ML\u7cfb\u7edf\u7ec4\u4ef6\u7684\u5e73\u53f0\uff1a<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"677\\\" data-height=\\\"403\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-d5ac47106e341936.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/677\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-d5ac47106e341936.png\\\" data-original-width=\\\"677\\\" data-original-height=\\\"403\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"53766\\\" data-image-index=\\\"0\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\" style=\\\"text-align: center;\\\">Kubeflow\u67b6\u6784\u56fe<\/div>\n<\/div>\n<p>\u6211\u4eec\u5148\u5927\u4f53\u770b\u4e00\u773c<code>Kubeflow<\/code>\u90fd\u6709\u54ea\u4e9b\u7ec4\u4ef6\uff0c\u662f\u4e0d\u662f\u5f88\u591a\uff1f\u63a5\u4e0b\u6765\u6211\u4f1a\u5e26\u5927\u5bb6\u9010\u6b65\u4e86\u89e3\u6bcf\u4e2a\u7ec4\u4ef6\u90fd\u6709\u54ea\u4e9b\u4f5c\u7528\u3002<br \/>\n\u5f53\u6211\u4eec\u5f00\u53d1\u548c\u90e8\u7f72ML\u7cfb\u7edf\u65f6\uff0cML\u5de5\u4f5c\u6d41\u7a0b\u901a\u5e38\u5305\u62ec\u51e0\u4e2a\u9636\u6bb5\u3002\u5f00\u53d1ML\u7cfb\u7edf\u662f\u4e00\u4e2a\u53cd\u590d\u7684\u8fc7\u7a0b\u3002\u6211\u4eec\u9700\u8981\u8bc4\u4f30ML\u5de5\u4f5c\u6d41\u5404\u4e2a\u9636\u6bb5\u7684\u8f93\u51fa\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u5bf9\u6a21\u578b\u548c\u53c2\u6570\u8fdb\u884c\u66f4\u6539\uff0c\u4ee5\u786e\u4fdd\u6a21\u578b\u4e0d\u65ad\u4ea7\u751f\u6240\u9700\u7684\u7ed3\u679c\u3002<br \/>\n\u4e3a\u4e86\u4fbf\u4e8e\u7406\u89e3\uff0c\u4e0b\u56fe\u6309\u987a\u5e8f\u663e\u793a\u4e86\u5de5\u4f5c\u6d41\u7a0b\u9636\u6bb5\uff0c\u5e76\u5c06<code>Kubeflow<\/code>\u6dfb\u52a0\u5230\u5de5\u4f5c\u6d41\u4e2d\uff0c\u663e\u793a\u5728\u6bcf\u4e2a\u9636\u6bb5\u90fd\u6709\u54ea\u4e9b<code>Kubeflow<\/code>\u7ec4\u4ef6\u6709\u7528\u3002\u5de5\u4f5c\u6d41\u672b\u5c3e\u7684\u7bad\u5934\u6307\u5411\u6d41\u7a0b\uff0c\u4ee5\u8868\u793a\u6d41\u7a0b\u7684\u8fed\u4ee3\u6027\u8d28\uff1a<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"679\\\" data-height=\\\"364\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-12355e4b1c8b701d.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/679\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-12355e4b1c8b701d.png\\\" data-original-width=\\\"679\\\" data-original-height=\\\"364\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"44528\\\" data-image-index=\\\"1\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\"><\/div>\n<\/div>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"676\\\" data-height=\\\"432\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-d9549fda662a39f5.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/676\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-d9549fda662a39f5.png\\\" data-original-width=\\\"676\\\" data-original-height=\\\"432\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"44591\\\" data-image-index=\\\"2\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">Kubeflow\u5de5\u4f5c\u6d41\u7a0b\u9636\u6bb5\u56fe<\/div>\n<\/div>\n<ul>\n<li><strong>\u5728\u5b9e\u9a8c\u9636\u6bb5<\/strong>\uff0c\u6211\u4eec\u5c06\u57fa\u4e8e\u521d\u59cb\u5047\u8bbe\u6765\u5f00\u53d1\u6a21\u578b\uff0c\u5e76\u53cd\u590d\u6d4b\u8bd5\u548c\u66f4\u65b0\u6a21\u578b\u4ee5\u4ea7\u751f\u6240\u9700\u7684\u7ed3\u679c\uff1a\n<ul>\n<li>\u786e\u5b9a\u6211\u4eec\u8981ML\u7cfb\u7edf\u89e3\u51b3\u7684\u95ee\u9898\u3002<\/li>\n<li>\u6536\u96c6\u548c\u5206\u6790\u8bad\u7ec3ML\u6a21\u578b\u6240\u9700\u7684\u6570\u636e\u3002<\/li>\n<li>\u9009\u62e9\u4e00\u4e2aML\u6846\u67b6\u548c\u7b97\u6cd5\uff0c\u5e76\u4e3a\u6a21\u578b\u7684\u521d\u59cb\u7248\u672c\u7f16\u7801\u3002<\/li>\n<li>\u8bd5\u9a8c\u6570\u636e\u5e76\u8bad\u7ec3\u6a21\u578b\u3002<\/li>\n<li>\u8c03\u6574\u6a21\u578b\u8d85\u53c2\u6570\u4ee5\u786e\u4fdd\u6700\u6709\u6548\u7684\u5904\u7406\u548c\u6700\u51c6\u786e\u7684\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5728\u751f\u4ea7\u9636\u6bb5<\/strong>\uff0c\u6211\u4eec\u5c06\u90e8\u7f72\u6267\u884c\u4ee5\u4e0b\u8fc7\u7a0b\u7684\u7cfb\u7edf\uff1a\n<ul>\n<li>\u5c06\u6570\u636e\u8f6c\u6362\u4e3a\u8bad\u7ec3\u7cfb\u7edf\u6240\u9700\u7684\u683c\u5f0f\uff08\u4e3a\u4e86\u786e\u4fdd\u6211\u4eec\u7684\u6a21\u578b\u5728\u8bad\u7ec3\u548c\u9884\u6d4b\u8fc7\u7a0b\u4e2d\u884c\u4e3a\u59cb\u7ec8\u4e00\u81f4\uff0c\u8f6c\u6362\u8fc7\u7a0b\u5728\u5b9e\u9a8c\u9636\u6bb5\u548c\u751f\u4ea7\u9636\u6bb5\u5fc5\u987b\u76f8\u540c\uff09\u3002<\/li>\n<li>\u8bad\u7ec3ML\u6a21\u578b\u3002<\/li>\n<li>\u670d\u52a1\u6a21\u578b\u4ee5\u8fdb\u884c\u5728\u7ebf\u9884\u6d4b\u6216\u4ee5\u6279\u5904\u7406\u6a21\u5f0f\u8fd0\u884c\u3002<\/li>\n<li>\u76d1\u7763\u6a21\u578b\u7684\u6027\u80fd\uff0c\u5e76\u5c06\u7ed3\u679c\u8f93\u5165\u5230\u6211\u4eec\u7684\u7a0b\u5e8f\u4e2d\uff0c\u4ee5\u8c03\u6574\u6216\u91cd\u65b0\u8bad\u7ec3\u6a21\u578b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u7531\u6b64\u53ef\u4ee5\u770b\u51fa\uff0c<code>Kubeflow<\/code>\u7684\u76ee\u6807\u662f\u57fa\u4e8e<code>K8S<\/code>\uff0c\u6784\u5efa\u4e00\u6574\u5957\u7edf\u4e00\u7684\u673a\u5668\u5b66\u4e60\u5e73\u53f0\uff0c\u8986\u76d6\u6700\u4e3b\u8981\u7684\u673a\u5668\u5b66\u4e60\u6d41\u7a0b\uff08\u6570\u636e-&gt;\u7279\u5f81-&gt;\u5efa\u6a21-&gt;\u670d\u52a1\u2192\u76d1\u63a7\uff09\uff0c\u540c\u65f6\u517c\u987e\u673a\u5668\u5b66\u4e60\u7684\u5b9e\u9a8c\u63a2\u7d22\u9636\u6bb5\u548c\u6b63\u5f0f\u7684\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<h1>Kubeflow\u7ec4\u4ef6<\/h1>\n<p><code>Kubeflow<\/code>\u63d0\u4f9b\u4e86\u4e00\u5927\u5806\u7ec4\u4ef6\uff0c\u6db5\u76d6\u4e86\u673a\u5668\u5b66\u4e60\u7684\u65b9\u65b9\u9762\u9762\uff0c\u4e3a\u4e86\u5bf9<code>Kubeflow<\/code>\u6709\u4e2a\u66f4\u76f4\u89c2\u6df1\u5165\u7684\u4e86\u89e3\uff0c\u5148\u6574\u4f53\u770b\u4e00\u4e0b<code>Kubeflow<\/code>\u90fd\u6709\u54ea\u4e9b\u7ec4\u4ef6\uff0c\u5e76\u5bf9<code>Kubeflow<\/code>\u7684\u4e3b\u8981\u7ec4\u4ef6\u8fdb\u884c\u7b80\u5355\u7684\u4ecb\u7ecd\uff1a<\/p>\n<ul>\n<li>Central Dashboard\uff1a<code>Kubeflow<\/code>\u7684<code>dashboard<\/code>\u770b\u677f\u9875\u9762<\/li>\n<li>Metadata\uff1a\u7528\u4e8e\u8ddf\u8e2a\u5404\u6570\u636e\u96c6\u3001\u4f5c\u4e1a\u4e0e\u6a21\u578b<\/li>\n<li><strong>Jupyter Notebooks<\/strong>\uff1a\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u4e1a\u52a1IDE\u7f16\u7801\u73af\u5883<\/li>\n<li>Frameworks for Training\uff1a\u652f\u6301\u7684ML\u6846\u67b6\n<ul>\n<li>Chainer<\/li>\n<li>MPI<\/li>\n<li>MXNet<\/li>\n<li>PyTorch<\/li>\n<li>TensorFlow<\/li>\n<\/ul>\n<\/li>\n<li>Hyperparameter Tuning:<code>Katib<\/code>\uff0c\u8d85\u53c2\u6570\u670d\u52a1\u5668<\/li>\n<li><strong>Pipelines<\/strong>\uff1a\u4e00\u4e2aML\u7684\u5de5\u4f5c\u6d41\u7ec4\u4ef6\uff0c\u7528\u4e8e\u5b9a\u4e49\u590d\u6742\u7684ML\u5de5\u4f5c\u6d41<\/li>\n<li>Tools for Serving\uff1a\u63d0\u4f9b\u5728<code>Kubernetes<\/code>\u4e0a\u5bf9\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u90e8\u7f72\n<ul>\n<li>KFServing<\/li>\n<li>Seldon Core Serving<\/li>\n<li>TensorFlow Serving(TFJob):\u63d0\u4f9b\u5bf9<code>Tensorflow<\/code>\u6a21\u578b\u7684\u5728\u7ebf\u90e8\u7f72\uff0c\u652f\u6301\u7248\u672c\u63a7\u5236\u53ca\u65e0\u9700\u505c\u6b62\u7ebf\u4e0a\u670d\u52a1\u3001\u5207\u6362\u6a21\u578b\u7b49<\/li>\n<li>NVIDIA Triton Inference Server(Triton\u4ee5\u524d\u53ebTensorRT)<\/li>\n<li>TensorFlow Batch Prediction<\/li>\n<\/ul>\n<\/li>\n<li>Multi-Tenancy in Kubeflow\uff1aKubeflow\u4e2d\u7684\u591a\u79df\u6237<\/li>\n<li><strong>Fairing<\/strong>\uff1a\u4e00\u4e2a\u5c06<code>code<\/code>\u6253\u5305\u6784\u5efa<code>image<\/code>\u7684\u7ec4\u4ef6<br \/>\n<code>Kubeflow<\/code>\u4e2d\u5927\u591a\u6570\u7ec4\u4ef6\u7684\u5b9e\u73b0\u90fd\u662f\u901a\u8fc7\u5b9a\u4e49<code>CRD<\/code>\u6765\u5de5\u4f5c\u3002\u76ee\u524d<code>Kubeflow<\/code>\u4e3b\u8981\u7684\u7ec4\u4ef6\u6709\uff1a<\/li>\n<li><strong>Operator<\/strong>\u662f\u9488\u5bf9\u4e0d\u540c\u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6\u63d0\u4f9b\u8d44\u6e90\u8c03\u5ea6\u548c\u5206\u5e03\u5f0f\u8bad\u7ec3\u7684\u80fd\u529b\uff08<code>TF-Operator<\/code>\uff0c<code>PyTorch-Operator<\/code>\uff0c<code>Caffe2-Operator<\/code>\uff0c<code>MPI-Operator<\/code>\uff0c<code>MXNet-Operator<\/code>\uff09;<\/li>\n<li><strong>Pipelines<\/strong>\u662f\u4e00\u4e2a\u57fa\u4e8e<code>Argo<\/code>\u5b9e\u73b0\u4e86\u9762\u5411\u673a\u5668\u5b66\u4e60\u573a\u666f\u7684\u6d41\u6c34\u7ebf\u9879\u76ee\uff0c\u63d0\u4f9b\u673a\u5668\u5b66\u4e60\u6d41\u7a0b\u7684\u521b\u5efa\u3001\u7f16\u6392\u8c03\u5ea6\u548c\u7ba1\u7406\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>Web UI<\/code>\u3002<\/li>\n<li><strong>Katib<\/strong>\u662f\u57fa\u4e8e\u5404\u4e2a<code>Operator<\/code>\u5b9e\u73b0\u7684\u8d85\u53c2\u6570\u641c\u7d22\u548c\u7b80\u5355\u7684\u6a21\u578b\u7ed3\u6784\u641c\u7d22\u7684\u7cfb\u7edf\uff0c\u652f\u6301\u5e76\u884c\u641c\u7d22\u548c\u5206\u5e03\u5f0f\u8bad\u7ec3\u7b49\u3002\u8d85\u53c2\u4f18\u5316\u5728\u5b9e\u9645\u7684\u5de5\u4f5c\u4e2d\u8fd8\u6ca1\u6709\u88ab\u5927\u89c4\u6a21\u7684\u5e94\u7528\uff0c\u6240\u4ee5\u8fd9\u90e8\u5206\u7684\u6280\u672f\u8fd8\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u6765\u6210\u719f\uff1b<\/li>\n<li><strong>Serving<\/strong>\u652f\u6301\u90e8\u7f72\u5404\u4e2a\u6846\u67b6\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u7684\u670d\u52a1\u5316\u90e8\u7f72\u548c\u79bb\u7ebf\u9884\u6d4b\u3002<code>Kubeflow<\/code>\u63d0\u4f9b\u57fa\u4e8e<code>TFServing<\/code>\uff0c<code>KFServing<\/code>\uff0c<code>Seldon<\/code>\u7b49\u597d\u51e0\u79cd\u65b9\u6848\u3002\u7531\u4e8e\u673a\u5668\u5b66\u4e60\u6846\u67b6\u5f88\u591a\uff0c\u7b97\u6cd5\u6a21\u578b\u4e5f\u5404\u79cd\u5404\u6837\u3002\u5de5\u4e1a\u754c\u4e00\u76f4\u7f3a\u5c11\u4e00\u79cd\u80fd\u771f\u6b63\u7edf\u4e00\u7684\u90e8\u7f72\u6846\u67b6\u548c\u65b9\u6848\u3002\u8fd9\u65b9\u9762<code>Kubeflow<\/code>\u4e5f\u4ec5\u4ec5\u662f\u628a\u5e38\u89c1\u7684\u90fd\u96c6\u6210\u4e86\u8fdb\u6765\uff0c\u4f46\u662f\u5e76\u6ca1\u6709\u505a\u66f4\u591a\u7684\u62bd\u8c61\u548c\u7edf\u4e00\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\uff0c\u6211\u5bf9<code>Kubeflow<\/code>\u7ec4\u4ef6\u8fdb\u884c\u4e86\u7cfb\u7edf\u7684\u6982\u62ec\uff0c\u6765\u5e2e\u52a9\u6211\u4eec\u5bf9\u5404\u4e2a\u7ec4\u4ef6\u6709\u4e00\u4e2a\u57fa\u672c\u7684\u4e86\u89e3\u548c\u6574\u4f53\u7684\u628a\u63e1\u3002\u8d81\u70ed\u6253\u94c1\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u7684\u67b6\u6784\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<h1>Jupyter Notebooks<\/h1>\n<p><code>Jupyter<\/code>\u672c\u8eab\u5305\u542b\u5f88\u591a\u7ec4\u4ef6\u3002\u5bf9\u4e8e\u4e2a\u4eba\u7528\u6237\uff0c\u4f7f\u7528<code>JupyterLab<\/code> + <code>Notebook<\/code>\u5c31\u8db3\u591f\u4e86\u3002\u4f46\u662f\u5982\u679c\u628a<code>Jupyter<\/code>\u5f53\u6210\u4e00\u4e2a\u516c\u53f8\u7ea7\u7684\u5e73\u53f0\u6765\u770b\u5f85\u7684\u8bdd\u5c31\u8fdc\u8fdc\u4e0d\u591f\u4e86\u3002\u8fd9\u65f6\u5019\u9700\u8981\u8003\u8651\u7684\u4e8b\u60c5\u5c31\u6bd4\u8f83\u591a\u4e86\uff0c\u6bd4\u5982\u591a\u7528\u6237\u3001\u8d44\u6e90\u5206\u914d\u3001\u6570\u636e\u6301\u4e45\u5316\u3001\u6570\u636e\u9694\u79bb\u3001\u9ad8\u53ef\u7528\u3001\u6743\u9650\u63a7\u5236\u7b49\u7b49\u3002\u800c\u8fd9\u4e9b\u95ee\u9898\u6070\u6070\u662f<code>K8S<\/code>\u7684\u7279\u957f\u3002\u56e0\u6b64\u628a<code>Jupyter<\/code>\u548c<code>K8S<\/code>\u7ed3\u5408\u8d77\u6765\u4f7f\u7528\u5c31\u975e\u5e38\u987a\u7406\u6210\u7ae0\u3002<br \/>\n<code>JupyterHub<\/code>\u662f\u4e00\u4e2a\u591a\u7528\u6237\u7684<code>Jupyter<\/code>\u95e8\u6237\uff0c\u5728\u8bbe\u8ba1\u4e4b\u521d\u5c31\u628a\u591a\u7528\u6237\u521b\u5efa\u3001\u8d44\u6e90\u5206\u914d\u3001\u6570\u636e\u6301\u4e45\u5316\u7b49\u529f\u80fd\u505a\u6210\u4e86\u63d2\u4ef6\u6a21\u5f0f\u3002\u5176\u5de5\u4f5c\u673a\u5236\u5982\u4e0b\u56fe\u6240\u793a:<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"459\\\" data-height=\\\"491\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-19793d7dde52633e.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/459\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-19793d7dde52633e.png\\\" data-original-width=\\\"459\\\" data-original-height=\\\"491\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"71730\\\" data-image-index=\\\"3\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">JupyterHub\u5de5\u4f5c\u673a\u5236\u56fe<\/div>\n<\/div>\n<p>\u65e2\u7136<code>JupyterHub<\/code>\u662f\u4e2a\u6846\u67b6\uff0c\u56e0\u6b64\u51fa\u73b0\u4e86\u5404\u79cd\u5404\u6837\u7684\u63d2\u4ef6\u3002\u6bd4\u5982\u53ef\u4ee5\u5355\u673a\u90e8\u7f72\u5229\u7528<code>OS<\/code>\u7528\u6237\u5b9e\u73b0\u591a\u7528\u6237\u548c\u6570\u636e\u9694\u79bb\uff1b\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>OAuth<\/code>\u5b8c\u6210\u7528\u6237\u9274\u6743\u7b49\u3002\u5f53\u7136\uff0c\u5c06\u6574\u4e2a<code>JupyterHub<\/code>\u548c<code>K8S<\/code>\u7ed3\u5408\u8d77\u6765\uff0c\u662f\u6700\u5b8c\u7f8e\u7684\u59ff\u52bf\u3002<code>Kubeflow<\/code>\u4e2d\u7684<code>Multi-Tenancy in Kubeflow<\/code>\u591a\u79df\u6237\u7ec4\u4ef6\u6211\u8fd8\u6ca1\u770b\uff0c\u540e\u9762\u53ef\u4ee5\u5bf9\u6bd4\u7814\u7a76\u4e00\u4e0b\u662f\u5426\u662f\u57fa\u4e8e\u6b64\u5b9e\u73b0\u7684\u3002<br \/>\n\u4e0b\u9762\u6211\u4eec\u518d\u6765\u8bf4\u8bf4<code>Kubeflow<\/code>\uff0c\u56e0\u4e3a\u7f3a\u4e4f\u9694\u79bb\u548c\u8d44\u6e90\u9650\u5236\uff0c\u76ee\u524d\u4ec5\u9002\u7528\u6570\u636e\u79d1\u5b66\u5bb6\u7684<code>solo<\/code>\u573a\u666f\uff0c\u65e0\u6cd5\u652f\u6301\u6570\u636e\u79d1\u5b66\u5bb6\u56e2\u961f\u5408\u4f5c\u573a\u666f\u3002\u6240\u4ee5\u5e73\u5fc3\u800c\u8bba\uff0c\u5b83\u8fd8\u672a\u83b7\u5f97\u7528\u6237\u7684\u4fe1\u4efb\u3002<br \/>\n<code>Kubeflow<\/code>\u5c06<code>default-editor ServiceAccount<\/code>\u5206\u914d\u7ed9<code>Jupyter notebook Pod<\/code>\u3002\u8be5\u670d\u52a1\u5e10\u6237\u7ed1\u5b9a\u5230<code>kubeflow-edit ClusterRole<\/code>\uff0c\u5b83\u5bf9\u8bb8\u591a<code>Kubernetes<\/code>\u8d44\u6e90\u5177\u6709\u547d\u540d\u7a7a\u95f4\u8303\u56f4\u7684\u6743\u9650\uff0c\u5176\u4e2d\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><code>Pod<\/code><\/li>\n<li><code>Deployment<\/code><\/li>\n<li><code>Service<\/code><\/li>\n<li><code>Job<\/code><\/li>\n<li><code>TFJob<\/code><\/li>\n<li><code>PyTorchJob<\/code><\/li>\n<\/ul>\n<p>\u56e0\u6b64\uff0c\u53ef\u4ee5\u76f4\u63a5\u4ece<code>Kubeflow<\/code>\u4e2d\u7684<code>Jupyter notebook<\/code>\u521b\u5efa\u4e0a\u8ff0<code>Kubernetes<\/code>\u8d44\u6e90\u3002 <code>notebook<\/code>\u4e2d\u5df2\u9884\u88c5\u4e86<code>Kubernetes kubectl<\/code>\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u8bf4\u4e5f\u662f\u975e\u5e38\u7b80\u5355\u4e86\u3002<br \/>\n\u5c06<code>Jupyter notebook<\/code>\u7ed1\u5b9a\u5728<code>Kubeflow<\/code>\u4e2d\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Fairing<\/code>\u5e93\u4f7f\u7528<code>TFJob<\/code>\u63d0\u4ea4\u8bad\u7ec3\u4f5c\u4e1a\u3002\u8bad\u7ec3\u4f5c\u4e1a\u53ef\u4ee5\u8fd0\u884c\u5728\u5355\u4e2a\u8282\u70b9\uff0c\u4e5f\u53ef\u4ee5\u5206\u5e03\u5728\u540c\u4e00\u4e2a<code>Kubernetes<\/code>\u96c6\u7fa4\u4e0a\uff0c\u4f46\u4e0d\u80fd\u5728<code>notebook pod<\/code>\u5185\u90e8\u8fd0\u884c\u3002\u901a\u8fc7<code>Fairing<\/code>\u5e93\u63d0\u4ea4\u4f5c\u4e1a\u53ef\u4ee5\u4f7f\u6570\u636e\u79d1\u5b66\u5bb6\u6e05\u695a\u5730\u4e86\u89e3<code>Docker<\/code>\u5bb9\u5668\u5316\u548c<code>pod<\/code>\u5206\u914d\u7b49\u6d41\u7a0b\u3002<br \/>\n\u603b\u4f53\u800c\u8a00\uff0c<code>Kubeflow-hosted notebooks<\/code>\u53ef\u4ee5\u66f4\u597d\u5730\u4e0e\u5176\u4ed6\u7ec4\u4ef6\u96c6\u6210\uff0c\u540c\u65f6\u63d0\u4f9b<code>notebook image<\/code>\u7684\u53ef\u6269\u5c55\u6027\u3002<\/p>\n<h1>Pipelines<\/h1>\n<p>\u5728<code>Kubeflow v0.1.3<\/code>\u4e4b\u540e\uff0c <code>pipeline<\/code>\u5df2\u7ecf\u6210\u4e3a<code>Kubeflow<\/code>\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002<code>Kubeflow<\/code>\u7684\u76ee\u7684\u4e3b\u8981\u662f\u4e3a\u4e86\u7b80\u5316\u5728<code>Kubernetes<\/code>\u4e0a\u8fd0\u884c\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u7684\u6d41\u7a0b\uff0c\u6700\u7ec8\u5e0c\u671b\u80fd\u591f\u5b9e\u73b0\u4e00\u5957\u5b8c\u6574\u53ef\u7528\u7684\u6d41\u6c34\u7ebf, \u6765\u5b9e\u73b0\u673a\u5668\u5b66\u4e60\u4ece\u6570\u636e\u5230\u6a21\u578b\u7684\u4e00\u6574\u5957\u7aef\u5230\u7aef\u7684\u8fc7\u7a0b\u3002 \u800c<code>pipeline<\/code>\u662f\u4e00\u4e2a\u5de5\u4f5c\u6d41\u5e73\u53f0\uff0c\u80fd\u591f\u7f16\u8bd1\u90e8\u7f72\u673a\u5668\u5b66\u4e60\u7684\u5de5\u4f5c\u6d41\u3002\u6240\u4ee5\u4ece\u8fd9\u4e2a\u5c42\u9762\u6765\u8bf4\uff0c<code>pipeline<\/code>\u80fd\u591f\u6210\u4e3a<code>Kubeflow<\/code>\u7684\u6838\u5fc3\u7ec4\u4ef6\u4e00\u70b9\u4e5f\u4e0d\u610f\u5916\u3002<br \/>\n<code>kubeflow\/pipelines<\/code>\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5de5\u4f5c\u6d41\u6a21\u578b\u3002\u6240\u8c13\u5de5\u4f5c\u6d41\uff0c\u6216\u8005\u79f0\u4e4b\u4e3a\u6d41\u6c34\u7ebf\uff08<code>pipeline<\/code>\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u5f53\u505a\u4e00\u4e2a\u6709\u5411\u65e0\u73af\u56fe\uff08<code>DAG<\/code>\uff09\u3002\u5176\u4e2d\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9\u88ab\u79f0\u4f5c\u7ec4\u4ef6\uff08<code>component<\/code>\uff09\u3002\u7ec4\u4ef6\u5904\u7406\u771f\u6b63\u7684\u903b\u8f91\uff0c\u6bd4\u5982\u9884\u5904\u7406\uff0c\u6570\u636e\u6e05\u6d17\uff0c\u6a21\u578b\u8bad\u7ec3\u7b49\u3002\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u8d1f\u8d23\u7684\u529f\u80fd\u4e0d\u540c\uff0c\u4f46\u6709\u4e00\u4e2a\u5171\u540c\u70b9\uff0c\u5373\u7ec4\u4ef6\u90fd\u662f\u4ee5<code>Docker<\/code>\u955c\u50cf\u7684\u65b9\u5f0f\u88ab\u6253\u5305\uff0c\u4ee5\u5bb9\u5668\u7684\u65b9\u5f0f\u88ab\u8fd0\u884c\u7684\u3002<br \/>\n\u4e0b\u56fe\u663e\u793a\u4e86Kubeflow Pipelines UI\u4e2d\u7ba1\u9053\u7684\u8fd0\u884c\u65f6\u6267\u884c\u56fe\uff1a<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"1920\\\" data-height=\\\"1080\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-584b063662553809.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-584b063662553809.png\\\" data-original-width=\\\"1920\\\" data-original-height=\\\"1080\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"91842\\\" data-image-index=\\\"4\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">Pipeline\u8fd0\u884c\u65f6\u6267\u884c\u56fe<\/div>\n<\/div>\n<p>\u5b9e\u9a8c\uff08<code>experiment<\/code>\uff09\u662f\u4e00\u4e2a\u5de5\u4f5c\u7a7a\u95f4\uff0c\u5728\u5176\u4e2d\u53ef\u4ee5\u9488\u5bf9\u6d41\u6c34\u7ebf\u5c1d\u8bd5\u4e0d\u540c\u7684\u914d\u7f6e\u3002\u7528\u6237\u5728\u6267\u884c\u7684\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u770b\u5230\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u6587\u4ef6\uff0c\u4ee5\u53ca\u65e5\u5fd7\u3002\u6b65\uff08<code>step<\/code>\uff09\u662f\u7ec4\u4ef6\u7684\u4e00\u6b21\u8fd0\u884c\uff0c\u8f93\u51fa\u5de5\u4ef6\uff08<code>step output artifacts<\/code>\uff09\u662f\u5728\u7ec4\u4ef6\u7684\u4e00\u6b21\u8fd0\u884c\u7ed3\u675f\u540e\u8f93\u51fa\u7684\uff0c\u80fd\u88ab\u7cfb\u7edf\u7684\u524d\u7aef\u7406\u89e3\u5e76\u6e32\u67d3\u53ef\u89c6\u5316\u7684\u6587\u4ef6\u3002<\/p>\n<h2>Pipelines\u67b6\u6784<\/h2>\n<p>\u4e0b\u56fe\u662f\u5b98\u65b9\u63d0\u4f9b\u7684<code>Kubeflow Pipelines<\/code>\u67b6\u6784\u56fe\uff1a<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"929\\\" data-height=\\\"938\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-4990f03ec6a2d978.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/929\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-4990f03ec6a2d978.png\\\" data-original-width=\\\"929\\\" data-original-height=\\\"938\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"150566\\\" data-image-index=\\\"5\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">pipelines\u67b6\u6784\u56fe<\/div>\n<\/div>\n<p>\u770b\u8d77\u6765\u8fd8\u662f\u6bd4\u8f83\u590d\u6742\u7684\uff0c\u4f46\u6574\u4f53\u53ef\u4ee5\u5c06pipeline\u4e3b\u8981\u5212\u5206\u4e3a\u516b\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><strong>Python SDK<\/strong>: \u7528\u4e8e\u521b\u5efa<code>kubeflow pipelines<\/code>\u7ec4\u4ef6\u7684\u7279\u5b9a\u8bed\u8a00\uff08<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fgithub.com%2Fkubeflow%2Fpipelines%2Ftree%2Fmaster%2Fsdk%2Fpython%2Fkfp%2Fdsl\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">DSL<\/a>\uff09\u3002<\/li>\n<li><strong>DSL compiler<\/strong>: \u5c06<code>Python<\/code>\u4ee3\u7801\u8f6c\u6362\u6210<code>YAML<\/code>\u9759\u6001\u914d\u7f6e\u6587\u4ef6\uff08<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fgithub.com%2Fkubeflow%2Fpipelines%2Ftree%2Fmaster%2Fsdk%2Fpython%2Fkfp%2Fcompiler\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">DSL\u7f16\u8bd1\u5668<\/a> \uff09\u3002<\/li>\n<li><strong>Pipeline Web Server<\/strong>: <code>pipeline<\/code>\u7684\u524d\u7aef\u670d\u52a1\uff0c\u5b83\u6536\u96c6\u5404\u79cd\u6570\u636e\u4ee5\u663e\u793a\u76f8\u5173\u89c6\u56fe\uff1a\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684<code>pipeline<\/code>\u5217\u8868\uff0c<code>pipeline<\/code>\u6267\u884c\u7684\u5386\u53f2\u8bb0\u5f55\uff0c\u6709\u5173\u5404\u4e2a<code>pipeline<\/code>\u8fd0\u884c\u7684\u8c03\u8bd5\u4fe1\u606f\u548c\u6267\u884c\u72b6\u6001\u7b49\u3002<\/li>\n<li><strong>Pipeline Service<\/strong>\uff1a <code>pipeline<\/code>\u7684\u540e\u7aef\u670d\u52a1\uff0c\u8c03\u7528<code>K8S<\/code>\u670d\u52a1\u4ece<code>YAML<\/code>\u521b\u5efa <code>pipeline<\/code>\u8fd0\u884c\u3002<\/li>\n<li><strong>Kubernetes Resources<\/strong>: \u521b\u5efa<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fkubernetes.io%2Fdocs%2Fconcepts%2Fextend-kubernetes%2Fapi-extension%2Fcustom-resources%2F\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">CRD<\/a>s\u8fd0\u884c <code>pipeline<\/code>\u3002<\/li>\n<li><strong>Machine Learning Metadata Service<\/strong>: \u7528\u4e8e\u76d1\u89c6\u7531<code>Pipeline Service<\/code>\u521b\u5efa\u7684<code>Kubernetes<\/code>\u8d44\u6e90\uff0c\u5e76\u5c06\u8fd9\u4e9b\u8d44\u6e90\u7684\u72b6\u6001\u6301\u4e45\u5316\u5728ML\u5143\u6570\u636e\u670d\u52a1\u4e2d(\u5b58\u50a8\u4efb\u52a1\u6d41\u5bb9\u5668\u4e4b\u95f4\u7684<code>input<\/code>\/<code>output<\/code>\u6570\u636e\u4ea4\u4e92\uff09\u3002<\/li>\n<li><strong>Artifact Storage<\/strong>: \u7528\u4e8e\u5b58\u50a8<code>Metadata<\/code>\u548c<code>Artifact<\/code>\u3002<code>Kubeflow Pipelines<\/code>\u5c06\u5143\u6570\u636e\u5b58\u50a8\u5728<code>MySQL<\/code>\u6570\u636e\u5e93\u4e2d\uff0c\u5c06\u5de5\u4ef6\u5b58\u50a8\u5728<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fdocs.minio.io%2F\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">Minio\u670d\u52a1\u5668<\/a>\u6216<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fcloud.google.com%2Fstorage%2Fdocs%2F\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">Cloud Storage<\/a>\u7b49\u5de5\u4ef6\u5b58\u50a8\u4e2d\u3002<\/li>\n<li><strong>Orchestration Controllers<\/strong>\uff1a\u4efb\u52a1\u7f16\u6392\uff0c\u6bd4\u5982 <strong><a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fgithub.com%2Fargoproj%2Fargo\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">Argo Workflow<\/a><\/strong>\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u534f\u8c03\u4efb\u52a1\u9a71\u52a8\u7684\u5de5\u4f5c\u6d41\u3002<\/li>\n<\/ul>\n<h2>Pipelines\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>\u6d41\u6c34\u7ebf\u7684\u5b9a\u4e49\u53ef\u4ee5\u5206\u4e3a\u4e24\u6b65\uff0c\u9996\u5148\u662f\u5b9a\u4e49\u7ec4\u4ef6\uff0c\u7ec4\u4ef6\u53ef\u4ee5\u4ece\u955c\u50cf\u5f00\u59cb\u5b8c\u5168\u81ea\u5b9a\u4e49\u3002\u8fd9\u91cc\u4ecb\u7ecd\u4e00\u4e0b\u81ea\u5b9a\u4e49\u7684\u65b9\u5f0f\uff1a\u9996\u5148\u9700\u8981\u6253\u5305\u4e00\u4e2a<code>Docker<\/code>\u955c\u50cf\uff0c\u8fd9\u4e2a\u955c\u50cf\u662f\u7ec4\u4ef6\u7684\u4f9d\u8d56\uff0c\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u7684\u8fd0\u884c\uff0c\u5c31\u662f\u4e00\u4e2a<code>Docker<\/code>\u5bb9\u5668\u3002\u5176\u6b21\u9700\u8981\u4e3a\u5176\u5b9a\u4e49\u4e00\u4e2a<code>python<\/code>\u51fd\u6570\uff0c\u63cf\u8ff0\u7ec4\u4ef6\u7684\u8f93\u5165\u8f93\u51fa\u7b49\u4fe1\u606f\uff0c\u8fd9\u4e00\u5b9a\u4e49\u662f\u4e3a\u4e86\u80fd\u591f\u8ba9\u6d41\u6c34\u7ebf\u7406\u89e3\u7ec4\u4ef6\u5728\u6d41\u6c34\u7ebf\u4e2d\u7684\u7ed3\u6784\uff0c\u6709\u51e0\u4e2a\u8f93\u5165\u8282\u70b9\uff0c\u51e0\u4e2a\u8f93\u51fa\u8282\u70b9\u7b49\u3002\u63a5\u4e0b\u6765\u7ec4\u4ef6\u7684\u4f7f\u7528\u5c31\u4e0e\u666e\u901a\u7684\u7ec4\u4ef6\u5e76\u65e0\u4e8c\u81f4\u4e86\u3002<br \/>\n\u5b9e\u73b0\u6d41\u6c34\u7ebf\u7684\u7b2c\u4e8c\u6b65\uff0c\u5c31\u662f\u6839\u636e\u5b9a\u4e49\u597d\u7684\u7ec4\u4ef6\u7ec4\u6210\u6d41\u6c34\u7ebf\uff0c\u5728\u6d41\u6c34\u7ebf\u4e2d\uff0c\u7531\u8f93\u5165\u8f93\u51fa\u5173\u7cfb\u4f1a\u786e\u5b9a\u56fe\u4e0a\u7684\u8fb9\u4ee5\u53ca\u65b9\u5411\u3002\u5728\u5b9a\u4e49\u597d\u6d41\u6c34\u7ebf\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>python<\/code>\u4e2d\u5b9e\u73b0\u597d\u7684\u6d41\u6c34\u7ebf\u5ba2\u6237\u7aef\u63d0\u4ea4\u5230\u7cfb\u7edf\u4e2d\u8fd0\u884c\u3002<br \/>\n\u867d\u7136<code>kubeflow\/pipelines<\/code>\u7684\u4f7f\u7528\u7565\u663e\u590d\u6742\uff0c\u4f46\u5b83\u7684\u5b9e\u73b0\u5176\u5b9e\u5e76\u4e0d\u9ebb\u70e6\u3002\u6574\u4e2a\u7684\u67b6\u6784\u53ef\u4ee5\u5206\u4e3a\u4e94\u4e2a\u90e8\u5206\uff0c\u5206\u522b\u662f<code>ScheduledWorkflow CRD<\/code>\u4ee5\u53ca\u5176<code>operator<\/code>\u6d41\u6c34\u7ebf\u524d\u7aef\uff0c\u6d41\u6c34\u7ebf\u540e\u7aef\uff0c<code>Python SDK<\/code>\u548c<code>persistence agent<\/code>\u3002<\/p>\n<ul>\n<li><code>ScheduledWorkflow CRD<\/code>\u6269\u5c55\u4e86<code>argoproj\/argo<\/code>\u7684<code>Workflow<\/code>\u5b9a\u4e49\u3002\u8fd9\u4e5f\u662f\u6d41\u6c34\u7ebf\u9879\u76ee\u4e2d\u7684\u6838\u5fc3\u90e8\u5206\uff0c\u5b83\u8d1f\u8d23\u771f\u6b63\u5730\u5728<code>Kubernetes<\/code>\u4e0a\u6309\u7167\u62d3\u6251\u5e8f\u521b\u5efa\u51fa\u5bf9\u5e94\u7684\u5bb9\u5668\u5b8c\u6210\u6d41\u6c34\u7ebf\u7684\u903b\u8f91\u3002<\/li>\n<li><code>Python SDK<\/code>\u8d1f\u8d23\u6784\u9020\u51fa\u6d41\u6c34\u7ebf\uff0c\u5e76\u4e14\u6839\u636e\u6d41\u6c34\u7ebf\u6784\u9020\u51fa <code>ScheduledWorkflow<\/code>\u7684<code>YAML<\/code>\u5b9a\u4e49\uff0c\u968f\u540e\u5c06\u5176\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u6d41\u6c34\u7ebf\u7cfb\u7edf\u7684\u540e\u7aef\u670d\u52a1\u3002<\/li>\n<li>\u540e\u7aef\u670d\u52a1\u4f9d\u8d56\u5173\u7cfb\u5b58\u50a8\u6570\u636e\u5e93\uff08\u5982<code>MySQL<\/code>\uff09\u548c\u5bf9\u8c61\u5b58\u50a8\uff08\u5982<code>S3<\/code>\uff09\uff0c\u5904\u7406\u6240\u6709\u6d41\u6c34\u7ebf\u4e2d\u7684<code>CRUD<\/code>\u8bf7\u6c42\u3002<\/li>\n<li>\u524d\u7aef\u8d1f\u8d23\u53ef\u89c6\u5316\u6574\u4e2a\u6d41\u6c34\u7ebf\u7684\u8fc7\u7a0b\uff0c\u4ee5\u53ca\u83b7\u53d6\u65e5\u5fd7\uff0c\u53d1\u8d77\u65b0\u7684\u8fd0\u884c\u7b49\u3002<\/li>\n<li><code>Persistence agent<\/code>\u8d1f\u8d23\u628a\u6570\u636e\u4ece<code>Kubernetes Master<\/code>\u7684<code>etcd<\/code>\u4e2d<code>sync<\/code>\u5230\u540e\u7aef\u670d\u52a1\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\uff0c\u5176\u5b9e\u73b0\u7684\u65b9\u5f0f\u4e0e<code>CRD operator<\/code>\u7c7b\u4f3c\uff0c\u901a\u8fc7<code>informer<\/code>\u6765\u76d1\u542c <code>Kubernetes apiserver<\/code>\u5bf9\u5e94\u8d44\u6e90\u5b9e\u73b0\u3002<\/li>\n<\/ul>\n<p><code>Pipelines<\/code>\u63d0\u4f9b\u673a\u5668\u5b66\u4e60\u6d41\u7a0b\u7684\u521b\u5efa\u3001\u7f16\u6392\u8c03\u5ea6\u548c\u7ba1\u7406\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>Web UI<\/code>\u3002\u8fd9\u90e8\u5206\u4e3b\u8981\u57fa\u4e8e<code>Argo Workflow<\/code>\u3002\u6211\u76f8\u4fe1\u8fd9\u4f1a\u662f<code>Kubeflow<\/code>\u540e\u7eed\u8981\u5927\u529b\u53d1\u5c55\u7684\u90e8\u5206\u3002<\/p>\n<h1>Fairing<\/h1>\n<p><code>Kubeflow Fairing<\/code>\u662f\u4e00\u4e2a<code>Python<\/code>\u8f6f\u4ef6\u5305\uff0c\u53ef\u8f7b\u677e\u5728<code>Kubeflow<\/code>\u4e0a\u8bad\u7ec3\u548c\u90e8\u7f72ML\u6a21\u578b\u3002<code>Fairing<\/code>\u8fd8\u53ef\u4ee5\u6269\u5c55\u4e3a\u5728\u5176\u4ed6\u5e73\u53f0\u4e0a\u8fdb\u884c\u8bad\u7ec3\u6216\u90e8\u7f72\u3002\u76ee\u524d\uff0c<code>Fairing<\/code>\u5df2\u6269\u5c55\u4e3a\u53ef\u5728<a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fcloud.google.com%2Fai-platform%2Fdocs\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">Google AI Platform<\/a>\u4e0a\u8fdb\u884c\u8bad\u7ec3\u3002<br \/>\n<code>Fairing<\/code>\u7b80\u5316\u4e86\u5728\u6df7\u5408\u4e91\u73af\u5883\u4e2d\u6784\u5efa\uff0c\u8bad\u7ec3\u548c\u90e8\u7f72\u673a\u5668\u5b66\u4e60\uff08ML\uff09\u8bad\u7ec3job\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u4f7f\u7528<code>Fairing<\/code>\u5e76\u6dfb\u52a0\u51e0\u884c\u4ee3\u7801\uff0c\u53ef\u4ee5\u76f4\u63a5\u4ece<code>Jupyter notebook<\/code>\u5728\u672c\u5730\u6216\u5728\u4e91\u4e2d\u4f7f\u7528<code>Python<\/code>\u4ee3\u7801\u8fd0\u884cML\u8bad\u7ec3\u4f5c\u4e1a\u3002\u8bad\u7ec3\u5de5\u4f5c\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Fairing<\/code>\u5c06\u8bad\u7ec3\u540e\u7684\u6a21\u578b\u90e8\u7f72\u4e3a\u9884\u6d4b\u7aef\u70b9\u3002<br \/>\n\u4e0a\u9762\u4ecb\u7ecd\u4e86<code>Kubeflow<\/code>\u4ee3\u7801\u7f16\u8f91\u5668<code>Jupyter Notebooks<\/code>\uff0c\u7528\u4e8e\u5c06\u4ee3\u7801\u6253\u5305\u6784\u5efa<code>image<\/code>\u7684<code>Fairing<\/code>\uff0c\u4ee5\u53ca\u5de5\u4f5c\u6d41\u7ec4\u4ef6<code>Pipelines<\/code>\u6838\u5fc3\u7ec4\u4ef6\uff0c\u4e0b\u9762\u6211\u4eec\u518d\u4ecb\u7ecd\u7528\u6765\u8c03\u53c2\u7684<code>Katib<\/code>\u548c\u53d1\u5e03\u90e8\u7f72\u670d\u52a1\u7684<code>KFServing<\/code>\u3002<\/p>\n<h1>Katib<\/h1>\n<p>\u5728\u4e86\u89e3<code>katib<\/code>\u7684\u5904\u7406\u6d41\u7a0b\u4e4b\u524d\uff0c\u5148\u4ecb\u7ecd\u4e0b<code>katib<\/code>\u76ee\u524d\u6709\u54ea\u4e9b\u7ec4\u4ef6\uff1a<\/p>\n<ul>\n<li><strong>Experiment Controller<\/strong>\uff1a\u63d0\u4f9b\u5bf9<code>Experiment CRD<\/code>\u7684\u751f\u547d\u5468\u671f\u7ba1\u7406\u3002<\/li>\n<li><strong>Trial Controller<\/strong>\uff1a\u63d0\u4f9b\u5bf9<code>Trial CRD<\/code>\u7684\u751f\u547d\u5468\u671f\u7ba1\u7406\u3002<\/li>\n<li><strong>Suggestions<\/strong>\uff1a\u4ee5<code>Deployment<\/code>\u7684\u65b9\u5f0f\u90e8\u7f72\uff0c\u7528<code>Service<\/code>\u65b9\u5f0f\u66b4\u9732\u670d\u52a1\uff0c\u63d0\u4f9b\u8d85\u53c2\u6570\u641c\u7d22\u670d\u52a1\u3002\u76ee\u524d\u6709\u968f\u673a\u641c\u7d22\uff0c\u7f51\u683c\u641c\u7d22\uff0c\u8d1d\u53f6\u65af\u4f18\u5316\u7b49\u3002<\/li>\n<li><strong>Katib Manager<\/strong>\uff1a\u4e00\u4e2a<code>GRPC server<\/code>\uff0c\u63d0\u4f9b\u4e86\u5bf9<code>Katib DB<\/code>\u7684\u64cd\u4f5c\u63a5\u53e3\uff0c\u540c\u65f6\u5145\u5f53<code>Suggestion<\/code>\u4e0e <code>Experiment<\/code>\u4e4b\u95f4\u7684\u4ee3\u7406\u3002<\/li>\n<li><strong>Katib DB<\/strong>\uff1a\u6570\u636e\u5e93\u3002\u5176\u4e2d\u4f1a\u5b58\u50a8<code>Trial<\/code>\u548c<code>Experiment<\/code>\uff0c\u4ee5\u53ca<code>Trial<\/code>\u7684\u8bad\u7ec3\u6307\u6807\u3002\u76ee\u524d\u9ed8\u8ba4\u7684\u6570\u636e\u5e93\u4e3a <code>MySQL<\/code>\u3002<\/li>\n<\/ul>\n<h2>Katib\u67b6\u6784<\/h2>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"610\\\" data-height=\\\"335\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-8d1bb5b0f1f609e1.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/610\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-8d1bb5b0f1f609e1.png\\\" data-original-width=\\\"610\\\" data-original-height=\\\"335\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"16604\\\" data-image-index=\\\"6\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">Katib\u67b6\u6784\u56fe<\/div>\n<\/div>\n<h2>Katib\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>\u5f53\u4e00\u4e2a<code>Experiment<\/code>\u88ab\u521b\u5efa\u7684\u65f6\u5019\uff0c<code>Experiment Controller<\/code>\u4f1a\u5148\u901a\u8fc7<code>Katib Manager<\/code>\u5728<code>Katib DB<\/code>\u4e2d\u521b\u5efa\u4e00\u4e2a<code>Experiment<\/code>\u5bf9\u8c61\uff0c\u5e76\u4e14\u6253\u4e0a<code>Finalizer<\/code>\u8868\u660e\u8fd9\u4e00\u5bf9\u8c61\u4f7f\u7528\u4e86\u5916\u90e8\u8d44\u6e90\uff08\u6570\u636e\u5e93\uff09\u3002\u968f\u540e\uff0c<code>Experiment Controller<\/code>\u4f1a\u6839\u636e\u81ea\u8eab\u7684\u72b6\u6001\u548c\u5173\u4e8e\u5e76\u884c\u7684\u5b9a\u4e49\uff0c\u901a\u8fc7<code>Katib Manager<\/code>\u63d0\u4f9b\u7684<code>GRPC<\/code>\u63a5\u53e3\uff0c\u8ba9<code>Manager<\/code>\u901a\u8fc7 <code>Suggestion<\/code>\u63d0\u4f9b\u7684<code>GRPC<\/code>\u63a5\u53e3\u83b7\u53d6\u8d85\u53c2\u6570\u53d6\u503c\uff0c\u7136\u540e\u518d\u8f6c\u53d1\u7ed9<code>Experiment Controller<\/code>\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c<code>Katib Manager<\/code>\u662f\u4e00\u4e2a\u4ee3\u7406\u7684\u89d2\u8272\uff0c\u5b83\u4ee3\u7406\u4e86<code>Experiment Controller<\/code>\u5bf9<code>Suggestion<\/code>\u7684\u8bf7\u6c42\u3002\u62ff\u5230\u8d85\u53c2\u6570\u53d6\u503c\u540e\uff0c<code>Experiment Controller<\/code>\u4f1a\u6839\u636e<code>Trial Template<\/code>\u548c\u8d85\u53c2\u6570\u7684\u53d6\u503c\uff0c\u6784\u9020\u51fa<code>Trial<\/code>\u7684\u5b9a\u4e49\uff0c\u7136\u540e\u5728\u96c6\u7fa4\u4e2d\u521b\u5efa\u5b83\u3002<br \/>\n<code>Trial<\/code>\u88ab\u521b\u5efa\u540e\uff0c\u4e0e<code>Experiment Controller<\/code>\u7684\u884c\u4e3a\u7c7b\u4f3c\uff0c<code>Trial Controller<\/code>\u540c\u6837\u4f1a\u901a\u8fc7<code>Katib Manager<\/code>\u5728<code>Katib DB<\/code>\u4e2d\u521b\u5efa\u4e00\u4e2a<code>Trial<\/code>\u5bf9\u8c61\u3002\u968f\u540e\u4f1a\u6784\u9020\u51fa\u671f\u671b\u7684<code>Job<\/code>\uff08\u5982<code>batchv1 Job<\/code>\uff0c<code>TFJob<\/code>\uff0c<code>PyTorchJob<\/code>\u7b49\uff09\u548c<code>Metrics Collector Job<\/code>\uff0c\u7136\u540e\u5728\u96c6\u7fa4\u4e0a\u521b\u5efa\u51fa\u6765\u3002\u8fd9\u4e9b<code>Job<\/code>\u8fd0\u884c\u7ed3\u675f\u540e\uff0c<code>Trial Controller<\/code>\u4f1a\u66f4\u65b0<code>Trial<\/code>\u7684\u72b6\u6001\uff0c\u8fdb\u800c<code>Experiment Controller<\/code>\u4f1a\u66f4\u65b0<code>Experiment<\/code>\u7684\u72b6\u6001\u3002<br \/>\n\u7136\u540e<code>Experiment<\/code>\u4f1a\u7ee7\u7eed\u4e0b\u4e00\u8f6e\u7684\u8fed\u4ee3\u3002\u4e4b\u524d\u7684<code>Trial<\/code>\u5df2\u7ecf\u88ab\u8bad\u7ec3\u5b8c\u6210\uff0c\u800c\u4e14\u8bad\u7ec3\u7684\u6307\u6807\u5df2\u7ecf\u88ab\u6536\u96c6\u8d77\u6765\u4e86\u3002<code>Experiment<\/code>\u4f1a\u6839\u636e\u914d\u7f6e\uff0c\u5224\u65ad\u662f\u5426\u8981\u518d\u521b\u5efa\u65b0\u7684<code>Trial<\/code>\uff0c\u5982\u679c\u9700\u8981\u5219\u518d\u91cd\u590d\u4e4b\u524d\u7684\u6d41\u7a0b\u3002<br \/>\n\u4e0b\u56fe\u662f\u4ece\u7f51\u7edc\u4e0a\uff08\u77e5\u4e4e@\u9ad8\u7b56\uff09\u627e\u5230\u7684<code>Katib<\/code>\u7ade\u54c1\u5bf9\u6bd4\u5206\u6790\u56fe\uff0c\u53ef\u4f9b\u53c2\u8003\uff1a<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"1142\\\" data-height=\\\"531\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-bfa07a43f80f4eeb.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1142\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-bfa07a43f80f4eeb.png\\\" data-original-width=\\\"1142\\\" data-original-height=\\\"531\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"37914\\\" data-image-index=\\\"7\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">Katib\u7ade\u54c1\u5bf9\u6bd4\u5206\u6790\u56fe<\/div>\n<\/div>\n<p>\u8d85\u53c2\u4f18\u5316\u662f\u4e00\u79cd<code>AutoML<\/code>\u7684\u65b9\u6cd5\u3002<code>KubeFlow<\/code>\u628a<code>Katib<\/code>\u96c6\u6210\u8fdb\u6765\u4f5c\u4e3a\u8d85\u53c2\u4f18\u5316\u7684\u4e00\u79cd\u65b9\u6848\u3002\u8d85\u53c2\u4f18\u5316\u5728\u5b9e\u9645\u7684\u5de5\u4f5c\u4e2d\u8fd8\u6ca1\u6709\u88ab\u5927\u89c4\u6a21\u7684\u5e94\u7528\uff0c\u6240\u4ee5\u8fd9\u90e8\u5206\u7684\u6280\u672f\u8fd8\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u6765\u6210\u719f\u3002<\/p>\n<h1>KFServing<\/h1>\n<p>\u5bf9\u4e8e\u6df1\u5ea6\u5b66\u4e60\u7684\u4ea7\u54c1\u5316\u6765\u8bf4\uff0c\u8bad\u7ec3\u53ea\u662f\u624b\u6bb5\u4e0d\u662f\u76ee\u7684\uff0c\u76ee\u7684\u662f\u5c06\u901a\u8fc7\u8bad\u7ec3\u4ea7\u751f\u7684\u6a21\u578b\u653e\u5230\u624b\u673a\u7684\u7a0b\u5e8f\u91cc\u6216\u8005\u4e92\u8054\u7f51\u7684\u5e94\u7528\u4e2d\uff0c\u7528\u4e8e\u8bed\u97f3\u6216\u8005\u6587\u5b57\u7684\u8bc6\u522b\u7b49\u5e94\u7528\u573a\u666f\u4e2d\u3002<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"774\\\" data-height=\\\"206\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-446c58b3622f0ea0.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/774\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-446c58b3622f0ea0.png\\\" data-original-width=\\\"774\\\" data-original-height=\\\"206\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"19291\\\" data-image-index=\\\"8\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">\u5982\u4f55\u53d1\u5e03\u670d\u52a1<\/div>\n<\/div>\n<p>\u6a21\u578b\u7684\u670d\u52a1\u5316\u90e8\u7f72\u548c\u79bb\u7ebf\u9884\u6d4b\u4e5f\u662f\u673a\u5668\u5b66\u4e60\u6d41\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u90e8\u5206\u3002<code>KubeFlow<\/code>\u7ec4\u4ef6\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u5b83\u63d0\u4f9b\u57fa\u4e8e<code>TF Serving<\/code>\uff0c<code>KFServing<\/code>\uff0c<code>Seldon Core Serving<\/code>\u7b49\u597d\u51e0\u79cd\u65b9\u6848\u3002\u7531\u4e8e\u673a\u5668\u5b66\u4e60\u6846\u67b6\u5f88\u591a\uff0c\u7b97\u6cd5\u6a21\u578b\u4e5f\u5404\u79cd\u5404\u6837\u3002\u5de5\u4e1a\u754c\u4e00\u76f4\u7f3a\u5c11\u4e00\u79cd\u80fd\u771f\u6b63\u7edf\u4e00\u7684\u90e8\u7f72\u6846\u67b6\u548c\u65b9\u6848\u3002\u8fd9\u65b9\u9762<code>KubeFlow<\/code>\u4e5f\u4ec5\u4ec5\u662f\u628a\u5e38\u89c1\u7684\u90fd\u96c6\u6210\u4e86\u8fdb\u6765\uff0c\u4f46\u662f\u5e76\u6ca1\u6709\u505a\u66f4\u591a\u7684\u62bd\u8c61\u548c\u7edf\u4e00\u3002<br \/>\n<code>Kubeflow<\/code>\u63d0\u4f9b\u4e24\u4e2a\u652f\u6301\u591a\u6846\u67b6\u7684\u6a21\u578b\u670d\u52a1\u5de5\u5177\uff1a<code>KFServing<\/code>\u548c<code>Seldon Core Serving<\/code>\u3002\u6216\u8005\uff0c\u53ef\u4ee5\u4f7f\u7528\u72ec\u7acb\u7684\u6a21\u578b\u670d\u52a1\u7cfb\u7edf\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u9009\u62e9\u6700\u80fd\u6ee1\u8db3\u6a21\u578b\u670d\u52a1\u8981\u6c42\u7684\u6846\u67b6\u3002<br \/>\n\u5bf9\u4e8eTensorFlow\u6a21\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>TensorFlow Serving<\/code>\u5c06<code>TFJob<\/code>\u5bfc\u51fa\u7684\u6a21\u578b\u8fdb\u884c\u5b9e\u65f6\u9884\u6d4b\u3002\u4f46\u662f\uff0c\u5982\u679c\u6253\u7b97\u4f7f\u7528\u591a\u4e2a\u6846\u67b6\uff0c\u5219\u5e94\u8003\u8651\u5982\u4e0a\u6240\u8ff0\u4f7f\u7528<code>KFServing<\/code>\u6216<code>Seldon Core Serving<\/code>\u3002<code>KFServing<\/code>\u662f<code>Kubeflow<\/code>\u9879\u76ee\u751f\u6001\u7cfb\u7edf\u7684\u4e00\u90e8\u5206\uff0c<code>Seldon Core Serving<\/code>\u662f<code>Kubeflow<\/code>\u652f\u6301\u7684\u5916\u90e8\u9879\u76ee\u3002\u770b\u8d77\u6765<code>KubeFlow<\/code>\u793e\u533a\u66f4\u503e\u5411<code>KFServing<\/code>\u8fd9\u5957\u65b9\u6848\u3002<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"1231\\\" data-height=\\\"746\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-6a484e0aad36750c.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-6a484e0aad36750c.png\\\" data-original-width=\\\"1231\\\" data-original-height=\\\"746\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"32771\\\" data-image-index=\\\"9\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">KFServing\/Seldon Core Serving\u5bf9\u6bd4\u56fe<\/div>\n<\/div>\n<p><code>KFServing<\/code>\u63d0\u4f9b\u4e86<code>Kubernetes<\/code> <a href=\\\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fkubernetes.io%2Fdocs%2Fconcepts%2Fextend-kubernetes%2Fapi-extension%2Fcustom-resources%2F\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">CRD<\/a>\uff0c\u7528\u4e8e\u5728\u4efb\u610f\u6846\u67b6\u4e0a\u670d\u52a1\u673a\u5668\u5b66\u4e60\uff08ML\uff09\u6a21\u578b\u3002\u5b83\u65e8\u5728\u901a\u8fc7\u4e3a\u5e38\u89c1ML\u6846\u67b6\uff08<code>Tensorflow<\/code>\uff0c<code>XGBoost<\/code>\uff0c<code>ScikitLearn<\/code>\uff0c<code>PyTorch<\/code>\u548c<code>ONNX<\/code>\u7b49\uff09\u63d0\u4f9b\u9ad8\u6027\u80fd\uff0c\u9ad8\u62bd\u8c61\u7684\u63a5\u53e3\u6765\u89e3\u51b3\u6a21\u578b\u670d\u52a1\u7528\u4f8b\u3002<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"887\\\" data-height=\\\"352\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-05fd5b5a785277a4.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/887\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-05fd5b5a785277a4.png\\\" data-original-width=\\\"887\\\" data-original-height=\\\"352\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"80865\\\" data-image-index=\\\"10\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">KFSerivng\u6240\u5904\u5e73\u53f0\u67b6\u6784\u4f4d\u7f6e\u793a\u610f\u56fe<\/div>\n<\/div>\n<p><code>NVIDIA Triton Inference Server<\/code>\u662f\u4e00\u9879<code>REST<\/code>\u548c<code>GRPC<\/code>\u670d\u52a1\uff0c\u7528\u4e8e\u5bf9<code>TensorRT<\/code>\uff0c<code>TensorFlow<\/code>\uff0c<code>Pytorch<\/code>\uff0c<code>ONNX<\/code>\u548c<code>Caffe2<\/code>\u6a21\u578b\u8fdb\u884c\u6df1\u5ea6\u5b66\u4e60\u63a8\u7406\u3002\u8be5\u670d\u52a1\u5668\u7ecf\u8fc7\u4f18\u5316\uff0c\u53ef\u4ee5\u5728GPU\u548cCPU\u4e0a\u5927\u89c4\u6a21\u90e8\u7f72\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u3002<code>Triton<\/code>\u63a8\u7406\u670d\u52a1\u5668\u4ee5\u524d\u79f0\u4e3a<code>TensorRT<\/code>\u63a8\u7406\u670d\u52a1\u5668\u3002<br \/>\n\u6211\u4eec\u53ef\u4ee5\u5c06<code>NVIDIA Triton Inference Server<\/code>\u7528\u4f5c\u72ec\u7acb\u7cfb\u7edf\uff0c\u4f46\u5982\u4e0a\u6240\u8ff0\uff0c\u66f4\u5e94\u8be5\u8003\u8651\u4f7f\u7528<code>KFServing<\/code>\u3002<code>KFServing<\/code>\u4e5f\u5305\u62ec\u5bf9<code>NVIDIA Triton Inference Server<\/code>\u7684\u652f\u6301\u3002<br \/>\n\u8d5e\uff01\u73b0\u5728\u6211\u4eec\u7ec8\u4e8e\u77e5\u9053\u5982\u4f55\u53d1\u5e03\u6211\u4eec\u8bad\u7ec3\u597d\u7684\u670d\u52a1\u4e86\uff01<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"890\\\" data-height=\\\"380\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-e90b6a184552062f.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/890\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-e90b6a184552062f.png\\\" data-original-width=\\\"890\\\" data-original-height=\\\"380\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"124291\\\" data-image-index=\\\"11\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\">\u751f\u4ea7\u6a21\u578b\u90e8\u7f72\u8fc7\u7a0b\u793a\u610f\u56fe<\/div>\n<\/div>\n<p>\u867d\u7136<code>kubeflow<\/code>\u6700\u5f00\u59cb\u53ea\u662f\u57fa\u4e8e<code>tf-operator<\/code>\uff0c\u4f46\u540e\u6765\u968f\u7740\u9879\u76ee\u53d1\u5c55\u6700\u540e\u53d8\u6210\u4e00\u4e2a\u57fa\u4e8e\u4e91\u539f\u751f\u6784\u5efa\u7684\u673a\u5668\u5b66\u4e60\u4efb\u52a1\u5de5\u5177\u5927\u96c6\u5408\u3002\u4ece\u6570\u636e\u91c7\u96c6\uff0c\u9a8c\u8bc1\uff0c\u5230\u6a21\u578b\u8bad\u7ec3\u548c\u670d\u52a1\u53d1\u5e03\uff0c\u51e0\u4e4e\u6240\u6709\u6b65\u9aa4<code>Kubeflow<\/code>\u90fd\u63d0\u4f9b\u89e3\u51b3\u65b9\u6848\u7684\u7ec4\u4ef6\u3002<\/p>\n<div class=\\\"image-package\\\">\n<div class=\\\"image-container\\\">\n<div class=\\\"image-container-fill\\\"><\/div>\n<div class=\\\"image-view\\\" data-width=\\\"1552\\\" data-height=\\\"355\\\"><img class=\\\"\\\" src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-2c1c87ac8de70931.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\/format\/webp\\\" data-original-src=\\\"\/\/upload-images.jianshu.io\/upload_images\/15942529-2c1c87ac8de70931.png\\\" data-original-width=\\\"1552\\\" data-original-height=\\\"355\\\" data-original-format=\\\"image\/png\\\" data-original-filesize=\\\"49277\\\" data-image-index=\\\"12\\\" \/><\/div>\n<\/div>\n<div class=\\\"image-caption\\\" style=\\\"text-align: center;\\\">\u57fa\u4e8eKubeflow\u7684ML\u6d41\u7a0b\u56fe<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fKubeflow Kubeflow\u662fKubernetes\u7684\u673a\u5668\u5b66\u4e60\u5de5\u5177\u5305\u3002Kubeflow\u662f\u8fd0\u884c\u5728K8S &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1482\"> <span class=\"screen-reader-text\">Kubeflow\u57fa\u4e8eK8S\u7684\u673a\u5668\u5b66\u4e60<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[97],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"\u4ec0\u4e48\u662fKubeflow Kubeflow\u662fKubernetes\u7684\u673a\u5668\u5b66\u4e60\u5de5\u5177\u5305\u3002Kubeflow\u662f\u8fd0\u884c\u5728K8S&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1482"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1482"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}