Parallel processing method and apparatus for neutral network model
AssigneeSamsung Electronics Co., Ltd.
InventorJaeyeon KIM
Life of this patent
Estimating the term…
Abstract
A parallel processing method and apparatus for a neural network model. The parallel processing method includes extracting metadata of a target layer included in a target model, measuring a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers, selecting a corresponding layer among the reference layers based on the similarities, and generating a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.
Claims24
A parallel processing method for a target model based on a neural network, the parallel processing method comprising:
- extracting metadata of a target layer included in the target model;
- measuring a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
- selecting a corresponding layer among the reference layers based on the similarities;
- and
- generating a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.
A parallel processing apparatus for a target model based on a neural network, the parallel processing apparatus comprising:
- a processor;
- and
- a memory comprising instructions executable by the processor,
- wherein in response to the instructions being executed by the processor, the processor is configured to:
- extract metadata of a target layer included in the target model;
- measure a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
- select a corresponding layer among the reference layers based on the similarities;
- and
- generate a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.
An electronic apparatus comprising:
- a processor;
- and
- a memory comprising instructions executable by the processor,
- wherein in response to the instructions being executed by the processor, the processor is configured to:
- extract metadata of a target layer included in a target model that is based on a neural network;
- measure a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
- select a corresponding layer among the reference layers based on the similarities;
- and
- generate a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.
A processor-implemented method, comprising:
- extracting metadata of a target layer included in a target model based on a neural network;
- comparing the metadata of the target layer with metadata of each of a plurality of reference layers;
- in a case in which the metadata of the target layer matches the metadata of a specific reference layer among the plurality of reference layers, execute the target layer based on a first parallelization strategy corresponding to the specific reference layer;
- and
- in a case in which the metadata of the target layer does not match the metadata of any of the plurality of reference layers, executing the target layer based on a second parallelization strategy corresponding to a reference layer, from among the plurality of reference slayers, have a closest similarity to the target layer, generating a new parallelization strategy for the target layer, and subsequently executing the target layer based on the new parallelization strategy.
Dependencies are inferred from the claim text.