{"id":85516,"date":"2020-04-07T03:00:39","date_gmt":"2020-04-06T19:00:39","guid":{"rendered":"http:\/\/4563.org\/?p=85516"},"modified":"2020-04-07T03:00:39","modified_gmt":"2020-04-06T19:00:39","slug":"bentoml-%e5%9f%ba%e4%ba%8e-python-%e7%9a%84%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e6%a8%a1%e5%9e%8b%e7%94%9f%e4%ba%a7%e9%83%a8%e7%bd%b2%e6%a1%86%e6%9e%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85516","title":{"rendered":"BentoML &#8211; \u57fa\u4e8e Python \u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u751f\u4ea7\u90e8\u7f72\u6846\u67b6"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  BentoML &#8211; \u57fa\u4e8e Python \u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u751f\u4ea7\u90e8\u7f72\u6846\u67b6               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : parano <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>hi \u5927\u5bb6\u597d\uff0c\u5206\u4eab\u6211\u6700\u8fd1\u5728\u505a\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee BentoML\uff0c\u4e00\u4e2a\u57fa\u4e8e Python \u7684 machine learning model serving \u6846\u67b6\uff1a https:\/\/github.com\/bentoml\/BentoML<\/p>\n<p>BentoML \u662f\u4e00\u4e2a\u7528\u4e8e\u5c06\u673a\u5668\u5b66\u4e60\u6a21\u578b\u751f\u4ea7\u5316\u548c\u90e8\u7f72\u7684\u5de5\u5177\u3002\u6570\u636e\u79d1\u5b66\u5bb6\u53ef\u4ee5\u901a\u8fc7 BentoML\uff0c\u6765\u5c06\u8bad\u7ec3\u597d\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\uff0c\u5f00\u53d1\u6210\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684 API \u670d\u52a1\u5668(mode server)\u3002BentoML \u652f\u6301\u7edd\u5927\u591a\u6570\u4e3b\u6d41\u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6\uff0c\u5305\u62ec Tensorflow, Keras, PyTorch, XGBoost, scikit-learn, fastai, \u7b49\u7b49\u3002<\/p>\n<p>BentoML \u81ea\u5e26\u4e00\u4e2a \u57fa\u4e8e aiohttp \u548c asyncio \u5f00\u53d1\u7684\u9ad8\u6027\u80fd\u6a21\u578b\u670d\u52a1\u5668\u3002\u5b83\u652f\u6301 micro-batching\uff0c\u53ef\u4ee5\u5728\u505a\u5b9e\u65f6\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u66f4\u9ad8\u6548\u5730\u5229\u7528\u673a\u5668\u5b66\u4e60\u6846\u67b6\u548c\u5e95\u5c42\u786c\u4ef6\u5728\u5904\u7406 batch \u6570\u636e\u65f6\u7684\u4f18\u52bf\uff0c\u4ece\u800c\u8fbe\u5230\u66f4\u5927\u7684 throughput \u548c\u66f4\u5c0f\u7684 latency \u3002\u5b83\u540c\u65f6\u4e5f\u63d0\u4f9b\u79bb\u7ebf\u7684 batch serving \u3001\u6a21\u578b\u7ba1\u7406\u3001\u548c\u81ea\u52a8\u5316\u90e8\u7f72\u7b49\u529f\u80fd\u3002<\/p>\n<p>\u5e0c\u671b\u5bf9\u5728\u505a\u673a\u5668\u5b66\u4e60\u7684\u670b\u53cb\u6709\u5e2e\u52a9\uff0c\u6709\u4ec0\u4e48\u95ee\u9898\u6216\u5efa\u8bae\u6b22\u8fce\u6307\u51fa\uff0c\u611f\u8c22\uff01<\/p>\n<p>\u76f8\u5173\u94fe\u63a5\uff1a<\/p>\n<ul>\n<li>BentoML \u7b80\u660e\u6559\u7a0b\uff1a https:\/\/docs.bentoml.org\/en\/latest\/quickstart.html<\/li>\n<li>\u5728\u7ebf\u6587\u6863\uff1a http:\/\/docs.bentoml.org\/<\/li>\n<li>Github Repo: https:\/\/github.com\/bentoml\/BentoML<\/li>\n<li>\u63a8\u7279\uff1a@BentoMLai<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1426341\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : carmark <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8d5e\uff0c\u53ef\u60dc\u4e0d\u592a\u61c2 python\uff0c\u8981\u4e0d\u5c31\u8d21\u732e\u4e0b\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1426342\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : parano <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @carmark BentoML \u91cc\u9762\u4e5f\u6709\u4e00\u4e9b TypeScript\/JavaScript \u7684 component \u5662\uff0c\u6709\u5174\u8da3 contribute \u7684\u670b\u53cb\u6b22\u8fce\u52a0 [BentoML Slack]( https:\/\/join.slack.com\/t\/bentoml\/shared_invite\/enQtNjcyMTY3MjE4NTgzLTU3ZDc1MWM5MzQxMWQxMzJiNTc1MTJmMzYzMTYwMjQ0OGEwNDFmZDkzYWQxNzgxYWNhNjAxZjk4MzI4OGY1Yjg) \u6765\u627e\u6211\u804a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1426343\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : carmark <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @parano \u6211\u662f golang \u751f\u6001\uff0ckubeflow \u90a3\u5957                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1426344\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dick20cm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f55\u5fc5\u53c8\u9020\u4e00\u904d\u8f6e\u5b50~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1426345\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : parano <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @carmark \u8ba1\u5212\u7528 go \u505a Kubernetes \u7684 CRD wrapper \u548c\u5bf9\u5e94\u7684 controller \u3002Btw BentoML \u73b0\u5728\u5df2\u7ecf\u662f kubeflow \u63a8\u8350\u7684 model serving \u5de5\u5177\u4e4b\u4e00\u4e86 https:\/\/www.kubeflow.org\/docs\/components\/serving\/overview\/<\/p>\n<p>Kubeflow &amp; BentoML \u90e8\u7f72\u6587\u6863\uff1a https:\/\/www.kubeflow.org\/docs\/components\/serving\/bentoml\/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1426346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : parano <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dick20cm \u56e0\u4e3a\u5e02\u573a\u4e0a\u73b0\u5728\u627e\u4e0d\u5230\u8fd9\u6837\u7684\u8f6e\u5b50\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>BentoML &#8211; \u57fa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85516"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85516"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85516\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85516"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}