简体   繁体   English

Model SageMaker中的管理:Model Package组的使用

[英]Model Management in SageMaker : Use of Model Package Group

We have a huge number of models which we plan to train/test/deploy/use.我们有大量模型,我们计划对其进行训练/测试/部署/使用。 We have several levels of products - starting from Country -> Region -> Warehouse -> Department -> Class A -> Class B -> Product ID etc., Some of the models will be for overall country level, some Country+Region level, and of course, similarly it will go down to the Class B and Product level.我们有几个级别的产品 - 从国家 -> 地区 -> 仓库 -> 部门 -> Class A -> Class B -> 产品 ID 等,一些模型将针对整个国家级别,一些模型将用于国家+地区级别,当然,同样它会将 go 下调到 Class B 和 Product 级别。 Which means if there are total 10,000 products - we will have 10,000 models in the product level.这意味着如果总共有 10,000 个产品——我们将在产品级别有 10,000 个模型。 In this kind of scenario, where we can have 10s of thousands of models, we were wondering how to manage these models.在这种情况下,我们可以拥有成千上万个模型,我们想知道如何管理这些模型。 Naming convention as well as grouping them together for easy look up etc. are part of the model management also.命名约定以及将它们组合在一起以便于查找等也是 model 管理的一部分。 Our initial thought was to use Sagemaker Model Package Group to group these models - so we can easily organize and find them as needed.我们最初的想法是使用 Sagemaker Model Package Group 对这些模型进行分组——这样我们就可以根据需要轻松地组织和查找它们。 However, I just learned that one SageMaker Model Package Group is a flat structure - which means one Model Package Group cannot contain another Model Package Group - so this hierarchical organization of models could not be replicated using Model Package Group. However, I just learned that one SageMaker Model Package Group is a flat structure - which means one Model Package Group cannot contain another Model Package Group - so this hierarchical organization of models could not be replicated using Model Package Group.

Question is: How do we achieve this kind model organization in production?问题是:我们如何在生产中实现这种 model 组织? This is not an unusual situation or anything, I believe there are many retailers who are dealing with model management scenarios like this.这不是什么不寻常的情况,我相信有很多零售商正在处理这样的 model 管理场景。 How do they do it?他们是怎么做到的呢? If model package is not used, what else can be used to organize them and how?如果 model package 没有用,还有什么可以用来组织它们,如何组织?

Any suggestions/idea will be highly appreciated.任何建议/想法将不胜感激。

Thanks谢谢

Using SageMaker Model registry, you can catalog models by creating model package groups that contain * different versions of a model .使用 SageMaker Model 注册表,您可以通过创建包含 model 的不同版本model package groups对模型进行编目 You can create a model group that tracks all of the models that you train to solve a particular problem .您可以创建一个model group来跟踪您为解决特定问题而训练的所有模型

So the basic idea is that you have a business problem and you create 1 group for it and store all the models along with their versions.所以基本的想法是你有一个业务问题,你为它创建一个组并存储所有模型及其版本。

Going by that definition, having a model package group under another model package group is an invalid scenario.根据该定义,将 model package 组置于另一个 model package 组之下是无效的情况。 Thats not how model group is defined and not how model group is intended to be used.这不是 model 组的定义方式,也不是 model 组的用途。

Also, this problem is not only restricted to models and you can see it everywhere is s/w engineering.此外,这个问题不仅限于模型,你可以在任何地方看到它是软件工程。 Whether is it storing jar files or python packages etc.无论是存储 jar 个文件还是 python 个包等。

And i would suggest to treat this problem as a software engineering problem and rely on namespace convention.我建议将此问题视为软件工程问题并依赖命名空间约定。 Rather than thinking in a hierarchical way: Country -> Region -> Warehouse -> Department -> Class A -> Class B -> Product ID而不是分层思考: Country -> Region -> Warehouse -> Department -> Class A -> Class B -> Product ID

Can we think of it in country.region.warehouse.department.classA.classB.product_id ?我们能想到country.region.warehouse.department.classA.classB.product_id吗?

Similar to how you also might be managing the docker images you can create such namespaces and go as deep as you want.与您可能管理 docker 图像的方式类似,您可以创建这样的名称空间和 go,只要您愿意就可以了。 You are still respecting the hierarchy but also not maintaining the hierarchy per say.您仍然尊重等级制度,但也没有维护等级制度。

Let me know what you think of this approach.让我知道您对这种方法的看法。

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

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