# US 2023/0065546 A1 · Distributing Model Data in Memories in Nodes in an Electronic Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0065546 A1
- Document ID: US20230065546A1
- Status: Published application
- Kind: A1
- Application number: 17/489,576
- Filed: 2021-09-29
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Mohamed Assem Abd ElMohsen Ibrahim; Onur Kayiran; Shaizeen Aga
- Web page: https://patentgrep.com/patent/US20230065546A1

## CPC

- G06F 16/24578: {using ranking}
- G06F 16/2471: {Distributed queries}
- G06F 16/2264: {Multidimensional index structures}
- G06F 16/24552: {Database cache management}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device includes a plurality of nodes, each node having a processor that performs operations for processing instances of input data through a model, a local memory that stores a separate portion of model data for the model, and a controller. The controller identifies model data that meets one or more predetermined conditions in the separate portion of the model data in the local memory in some or all of the nodes that is accessible by the processors when processing the instances of input data through the model. The controller then copies the model data that meets the one or more predetermined conditions from the separate portion of the model data in the local memory in the some or all of the nodes to local memories in other nodes. In this way, the controller distributes model data that meets the one or more predetermined conditions among the nodes, making the model data that meets the one or more predetermined conditions available to the nodes without performing remote memory accesses.

## Claims

### Claim 1

An electronic device, comprising:
a plurality of nodes, each node including:
a processor that performs operations for processing instances of input data through a model;
a local memory that stores a separate portion of model data for the model; and
a controller, wherein the controller is configured to:
identify model data that meets one or more predetermined conditions in the separate portion of the model data in the local memory in some or all of the nodes that is accessible by the processors when performing the operations for processing the instances of input data through the model; and
copy the model data that meets the one or more predetermined conditions from the separate portion of the model data in the local memory in the some or all of the nodes to local memories in other nodes.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein, while performing the operations for processing the instances of input data through the model, the processor in each node:
acquires, from the local memory for that node, model data that meets the one or more predetermined conditions that was copied to that node's local memory from other nodes' local memories; and
uses the model data that meets the one or more predetermined conditions for performing the operations for processing the instances of input data through the model.

### Claim 3 (depends on 2)

The electronic device of claim 2, wherein, while performing the operations for processing the instances of input data through the model, the processor in each node:
acquires, from the local memory for that node, model data available in the separate portion of the model data stored in the local memory for that node;
acquires, from local memories for other nodes, other model data that is not available in the local memory for that node, but is available in the separate portions of the model data stored in the local memories for the other nodes; and
uses the model data and the other model data for performing the operations for processing the instances of input data through the model.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the controller is further configured to, at one or more times after performing the identifying and copying:
identify updated model data that meets the one or more predetermined conditions in the separate portion of the model data in the local memory in some or all of the nodes that is accessible by the processors when performing the operations for processing the instances of input data through the model; and
copy the updated model data that meets the one or more predetermined conditions from the separate portion of the model data in the local memory in the some or all of the nodes to local memories in other nodes, the copying including overwriting specified model data that meets the one or more predetermined conditions with the updated model data that meets the one or more predetermined conditions.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein the local memories in the nodes have insufficient storage capacity for simultaneously storing all of the model data for the model.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein:
the separate portion of the model data stored in the local memory in each node includes at least one table, the at least one table comprising a plurality of rows of model data; and
the model data that meets the one or more predetermined conditions includes individual rows of model data in the table.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the controller is further configured to:
select an amount of model data that meets the one or more predetermined conditions based at least in part on:
an available capacity for storing model data that meets the one or more predetermined conditions in local memories in some or all of the nodes; and/or
an amount of communication traffic between the nodes for communicating model data.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the controller is further configured to:
perform the identifying and copying statically, before the processors perform the operations for processing the instances of input data through the model.

### Claim 9 (depends on 1)

The electronic device of claim 1, wherein the controller is further configured to:
perform the identifying and copying dynamically, while or after the processors perform the operations for processing the instances of input data through the model.

### Claim 10 (depends on 1)

The electronic device of claim 1, wherein:
the predetermined condition is a frequency of access of the model data; and
when identifying the model data that meets the one or more predetermined conditions, the controller is configured to:
compare a number of accesses and/or an estimated number of accesses of model data to a threshold to determine whether the model data is frequently accessed.

### Claim 11 (depends on 1)

The electronic device of claim 1, wherein the one or more predetermined conditions include one or more of:
a first condition based on a frequency of access of model data;
a second condition based on values in metadata for model data;
a third condition based on a property of content of model data; and
a fourth condition based on a tendency of model data to change over time.

### Claim 12 (depends on 1)

The electronic device of claim 1, wherein the controller is further configured to:
keep a record of the model data that meets the one or more predetermined conditions stored in the local memory in each node;
determine, based on the record, a distribution of operations among the nodes for processing instances of input data so that the operations for processing the instances of input data will be performed using model data that meets the one or more predetermined conditions stored in local memories in the nodes; and
distribute the operations for processing instances of input data among the nodes based on the distribution of operations.

### Claim 13

A method for distributing model data for a model in an electronic device that includes a plurality of nodes, each node including a processor that performs operations for processing instances of input data through the model and a local memory that stores a separate portion of model data for the model, the method comprising:
identifying model data that meets one or more predetermined conditions in the separate portion of the model data in the local memory in some or all of the nodes that is accessible by the processors when performing the operations for processing the instances of input data through the model; and
copying the model data that meets the one or more predetermined conditions from the separate portion of the model data in the local memory in the some or all of the nodes to local memories in other nodes.

### Claim 14 (depends on 13)

The method of claim 13, wherein the method further comprises:
when performing the operations for processing the instances of input data through the model:
acquiring, from the local memory for that node, model data that meets the one or more predetermined conditions that was copied to that node's local memory from other nodes' local memories; and
using the model data that meets the one or more predetermined conditions for performing the operations for processing the instances of input data through the model.

### Claim 15 (depends on 14)

The method of claim 14, wherein the method further comprises:
when performing the operations for processing the instances of input data through the model:
acquiring, from the local memory for that node, model data available in the separate portion of the model data stored in the local memory for that node;
acquiring, from local memories for other nodes, other model data that is not available in the local memory for that node, but is available in the separate portions of the model data stored in the local memories for the other nodes; and
using the model data and the other model data for performing the operations for processing the instances of input data through the model.

### Claim 16 (depends on 13)

The method of claim 13, wherein the method further comprises:
at one or more times after performing the identifying and copying:
identifying updated model data that meets the one or more predetermined conditions in the separate portion of the model data in the local memory in some or all of the nodes that is accessible by the processors when performing the operations for processing the instances of input data through the model; and
copying the updated model data that meets the one or more predetermined conditions from the separate portion of the model data in the local memory in the some or all of the nodes to local memories in other nodes, the copying including overwriting specified model data that meets the one or more predetermined conditions with the updated model data that meets the one or more predetermined conditions.

### Claim 17 (depends on 13)

The method of claim 13, wherein the method further comprises:
selecting an amount of model data that meets the one or more predetermined conditions based at least in part on:
an available capacity for storing model data that meets the one or more predetermined conditions in local memories in some or all of the nodes; and/or
an amount of communication traffic between the nodes for communicating model data.

### Claim 18 (depends on 13)

The method of claim 13, wherein the method further comprises:
performing the identifying and copying statically, before the processors perform the operations for processing the instances of input data through the model.

### Claim 19 (depends on 13)

The method of claim 13, wherein the method further comprises:
performing the identifying and copying dynamically, while or after the processors perform the operations for processing the instances of input data through the model.

### Claim 21 (depends on 13)

The method of claim 13, wherein the predetermined condition is a frequency of access of the model data and the method further comprises:
when identifying the model data that meets the one or more predetermined conditions,
comparing a number of accesses and/or an estimated number of accesses of model data to a threshold to determine whether the model data is frequently accessed.

### Claim 22 (depends on 21)

The method of claim 21, wherein the one or more predetermined conditions include one or more of:
a first condition based on a frequency of access of model data;
a second condition based on values in metadata for model data;
a third condition based on a property of content of model data; and
a fourth condition based on a tendency of model data to change over time.

### Claim 23 (depends on 13)

The method of claim 13, further comprising:
when performing the operations for processing the instances of input data through the model:
keeping a record of the model data that meets the one or more predetermined conditions stored in the local memory in each node;
determining, based on the record, a distribution of operations among the nodes for processing instances of input data so that the operations for processing the instances of input data will be performed using model data that meets the one or more predetermined conditions stored in local memories in the nodes; and
distributing the operations for processing instances of input data among the nodes based on the distribution of operations.
