Method, device, and computer program product for managing machine learning model

US12093553B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12093553-B2
Application numberUS-202117320392-A
CountryUS
Kind codeB2
Filing dateMay 14, 2021
Priority dateApr 23, 2021
Publication dateSep 17, 2024
Grant dateSep 17, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method includes determining a first instance of a current version for a machine learning model and a second instance of an upgraded version for the machine learning model, the first instance executing a service for processing data; adjusting respectively, if it is determined that the service is to be migrated from the first instance to the second instance, a first allocation policy for storage space of the first instance and a second allocation policy for storage space of the second instance to a first target policy and a second target policy, wherein the first target policy is used to phase out storage space and the second target policy is used to phase in storage space; reclaiming allocated storage space for the first instance based on the first target policy; and allocating required storage space for the second instance based on the second target policy to realize migration of the service.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for managing a machine learning model, comprising: determining a first instance of a current version for the machine learning model and a second instance of an upgraded version for the machine learning model, the first instance executing a service for processing data, wherein the first instance and the second instance are configured to run at least in part concurrently with one another on one or more graphics processing units to provide uninterrupted access to the service for processing data using one of the first instance and the second instance in conjunction with migration of the service from the first instance to the second instance; adjusting respectively, if determining that the service is to be migrated from the first instance to the second instance, a first allocation policy for storage space of the first instance and a second allocation policy for storage space of the second instance to a first target policy and a second target policy, wherein the first target policy is used to phase out storage space and the second target policy is used to phase in storage space; reclaiming allocated storage space for the first instance based on the first target policy; and allocating required storage space for the second instance based on the second target policy to realize migration of the service; wherein the storage space comprises memory resources of the one or more graphics processing units; wherein the first target policy is more restrictive with regard to usage of the memory resources of the one or more graphics processing units than the first allocation policy; and wherein the second target policy is less restrictive with regard to usage of the memory resources of the one or more graphics processing units than the first target policy. 2. The method according to claim 1 , wherein adjusting the first allocation policy and the second allocation policy to the first target policy and the second target policy respectively comprises: determining a first allocation policy for the first instance and a second allocation policy for the second instance; adjusting the first allocation policy of the first instance as the first target policy; and adjusting the second allocation policy of the second instance as the second target policy. 3. The method according to claim 1 , further comprising: if determining that the migration is completed, replacing the first target policy with the first allocation policy for use by the first instance; and replacing the second target policy with the second allocation policy for use by the second instance. 4. The method according to claim 1 , wherein reclaiming allocated storage space for the first instance comprises: determining a sequence of nodes corresponding to operations associated with the machine learning model, the nodes being sorted according to an order of the corresponding operations; determining a current node corresponding to an operation being executed in the first instance; determining, from the sequence, a previous node previous to the current node; and reclaiming storage space for the operation corresponding to the previous node in the first instance. 5. The method according to claim 4 , wherein reclaiming allocated storage space for the first instance further comprises: reclaiming, after completing calculation of the current node, the storage space for the operation corresponding to the current node in the first instance. 6. The method according to claim 1 , wherein allocating required storage space for the second instance comprises: allocating, if determining that the second allocation policy for the second instance is a policy for allocating storage space according to needs of an instance, the required storage space to the second instance by using the second allocation policy as the second target policy; and determining, if determining that the second allocation policy for the second instance is a policy for allocating storage space of a predetermined size to an instance, allocation of the required storage space based on the allocated storage space for the second instance and the required storage space. 7. The method according to claim 6 , wherein determining allocation of the required storage space comprises: allocating, if determining that the sum of the size of the allocated storage space and the size of the required storage space is smaller than or equal to the predetermined size, the required storage space to the second instance; and releasing, if determining that the sum of the size of the allocated storage space and the size of the required storage space is larger than the predetermined size, at least part of the allocated storage space for the required storage space. 8. An electronic device, comprising: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing machine-executable instructions that, when executed by the at least one processing unit, cause the electronic device to perform actions, the actions comprising: determining a first instance of a current version for a machine learning model and a second instance of an upgraded version for the machine learning model, the first instance executing a service for processing data, wherein the first instance and the second instance are configured to run at least in part concurrently with one another on one or more graphics processing units to provide uninterrupted access to the service for processing data using one of the first instance and the second instance in conjunction with migration of the service from the first instance to the second instance; adjusting respectively, if determining that the service is to be migrated from the first instance to the second instance, a first allocation policy for storage space of the first instance and a second allocation policy for storage space of the second instance to a first target policy and a second target policy, wherein the first target policy is used to phase out storage space and the second target policy is used to phase in storage space; reclaiming allocated storage space for the first instance based on the first target policy; and allocating required storage space for the second instance based on the second target policy to realize migration of the service; wherein the storage space comprises memory resources of the one or more graphics processing units; wherein the first target policy is more restrictive with regard to usage of the memory resources of the one or more graphics processing units than the first allocation policy; and wherein the second target policy is less restrictive with regard to usage of the memory resources of the one or more graphics processing units than the first target policy. 9. The electronic device according to claim 8 , wherein adjusting the first allocation policy and the second allocation policy to the first target policy and the second target policy respectively comprises: determining a first allocation policy for the first instance and a second allocation policy for the second instance; adjusting the first allocation policy of the first instance as the first target policy; and adjusting the second allocation policy of the second instance as the second target policy. 10. The electronic device according to claim 8 , wherein the actions further comprise: if determining that the migration is completed, replacing the first target policy with the first allocation policy for use by the first instance; and replacing the second target policy with the second allocation policy for use by the second instance. 11. The electronic device according to claim 8 , wherein reclaiming allocated storage space

Assignees

Inventors

Classifications

  • Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP] · CPC title

  • with prefetch · CPC title

  • using reference counting · CPC title

  • Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS] · CPC title

  • Sequencing of tasks or work · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12093553B2 cover?
A method includes determining a first instance of a current version for a machine learning model and a second instance of an upgraded version for the machine learning model, the first instance executing a service for processing data; adjusting respectively, if it is determined that the service is to be migrated from the first instance to the second instance, a first allocation policy for storag…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06N20/00. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 17 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 6 related publications on this page (citations in our corpus or others sharing the same primary CPC).