简体   繁体   English

部署机器学习 Model

[英]Deploy Machine Learning Model

I created a Machine Learning pipeline from training the model and deploy it as a web service.我通过训练 model 创建了一个机器学习管道,并将其部署为 web 服务。 I put everything on Github but I did not put the training dataset as Github limits file size up to 100 MB.我将所有内容都放在 Github 上,但我没有将训练数据集放在 Github 上,因为 Github 将文件大小限制为 100 MB。 After I train the model, I save the model and necessary files into.pkl file.我训练完model后,将model和必要的文件保存到.pkl文件中。 The model file size itself ~300 MB so I can't upload the model to Github. I connected my repo to Heroku and try to send a request but then I realized that I do not have the model along the training dataset so I can't make a request. model 文件大小本身约为 300 MB,所以我无法将 model 上传到 Github。我将我的 repo 连接到 Heroku 并尝试发送请求,但后来我意识到我在训练数据集中没有 model,所以我可以'不要提出要求。

Is there any best practice to do deploy Machine Learning model considering some limitation from Github?考虑到 Github 的一些限制,是否有任何最佳实践来部署机器学习 model?

Please advise请指教

Github is a version control system. Github是一个版本控制系统。 Technically, your repository should not contain training data or trained models.从技术上讲,您的存储库不应包含培训数据或经过培训的模型。

The most real-life Machine Learning systems store trained models in the file storage, for instance S3 .最真实的机器学习系统将经过训练的模型存储在文件存储中,例如S3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM