# US 2026/0186852 A1 · Method and apparatus with data loading

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

- Number: US 2026/0186852 A1
- Document ID: US20260186852A1
- Status: Published application
- Kind: A1
- Application number: 19/543,168
- Filed: 2026-02-18
- Published: 2026-07-02
- Earliest claimed: 2023-01-11
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Myeong Woo KIM; Yongdeok KIM; Changin CHOI; Seungwon LEE
- Web page: https://patentgrep.com/patent/US20260186852A1

## CPC

- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F 9/505: {considering the load}
- G06F 16/1724: {Details of de-fragmentation performed by the file system (saving storage space on storage systems G06F3/0608; management of blocks in storage devices G06F3/064)}
- G06N 20/00: Machine learning
- G06F 2209/5017: Task decomposition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A processor-implemented method with data loading includes: based on sizes of a plurality of data files in a training dataset, dividing the training dataset into a plurality of sub-sets; loading some data files in each sub-set into a plurality of processors; determining a packing combination of one or more data files loaded to processors in a same group among the plurality of processors, based on a ratio of a number of data files between the plurality of sub-sets and a batch size of distributed training; determining packed data files by packing the one or more data files according to the packing combination; and reallocating the packed data files to the processors in the same group.

## Claims

### Claim 1

A processor-implemented method with data loading, the method comprising:
based on sizes of a plurality of data files in a training dataset, dividing the training dataset into a plurality of sub-sets;
loading some data files in each sub-set into a plurality of processors;
extracting candidate packing combinations based on a maximum data file size and a batch size of distributed training;
determining a packing combination among the candidate packing combinations based on a comparison between a ratio of a number of data files corresponding to each of the candidate packing combinations and a ratio of a number of data files between the plurality of sub-sets;
determining packed data files by packing the one or more data files according to the packing combination; and
reallocating the packed data files to the processors in the same group.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining of the packing combination further comprises:
determining the packing combination based on a packing batch size corresponding to each of the candidate packing combinations.

### Claim 3 (depends on 2)

The method of claim 2, wherein the determining of the packing combination comprises:
calculating a weighted sum of a first score based on the comparison of the ratios and a second score based on the packing batch size; and
determining the packing combination having a highest weighted sum.

### Claim 4 (depends on 1)

The method of claim 1, wherein the reallocating of the packed data files comprises reallocating the packed data files to the processors in the same group based on sizes of the packed data files.

### Claim 5 (depends on 1)

The method of claim 1, wherein the loading of some data files comprises loading the some data files in each sub-set into the plurality of processors based on the ratio of the number of data files between the plurality of sub-sets and the batch size of distributed training.

### Claim 6 (depends on 1)

The method of claim 1, wherein the loading of some data files comprises:
loading a number of data files that is greater than a reference number determined based on a multiplication of the batch size of distributed training and the ratio of the number of data files between the plurality of sub-sets.

### Claim 7 (depends on 1)

The method of claim 1, wherein the reallocating of the packed data files comprises:
aligning the packed data files in order of size; and
in response to distributing a portion of the aligned packed data files to the processors in the same group in a predetermined first order, distributing another portion of the aligned packed data files in a second order which is a reverse order of the first order.

### Claim 8 (depends on 7)

The method of claim 7, wherein the distributing of the other portion of the aligned packed data files in the second order in response to distributing the portion of the aligned packed data files in the first order is repeatedly performed in the batch size.

### Claim 9 (depends on 1)

The method of claim 1, wherein the same group comprises a set of processors in a same server.

### Claim 10 (depends on 1)

The method of claim 1, wherein the training dataset comprises either one or both of natural language text data for training a natural language processing (NLP) model and speech data for training of the NLP model.

### Claim 11 (depends on 10)

The method of claim 10, further comprising training the NPL model based on the processors in the same group processing the reallocated packed data files.

### Claim 12 (depends on 1)

The method of claim 1, wherein the plurality of processors comprises a plurality of graphics processing units (GPUs).

### Claim 13 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, configure the one or more processors to perform the method of claim 1.

### Claim 14

An apparatus with data loading, the apparatus comprising:
one or more processors configured to:
based on sizes of a plurality of data files in a training dataset, divide the training dataset into a plurality of sub-sets;
load some data files in each sub-set into a plurality of processors;
extract candidate packing combinations based on a maximum data file size and a batch size of distributed training;
determine a packing combination among the candidate packing combinations based on a comparison between a ratio of a number of data files corresponding to each of the candidate packing combinations and a ratio of a number of data files between the plurality of sub-sets;
determine packed data files by packing the one or more data files according to the packing combination; and
reallocate the packed data files to the processors in the same group.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein, for the determining of the packing combination, the one or more processors are configured to:
determine the packing combination based on a packing batch size corresponding to each of the candidate packing combinations.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein, for the determining of the packing combination, the one or more processors are configured to:
calculate a weighted sum of a first score based on the comparison of the ratios and a second score based on the packing batch size; and
determine the packing combination having a highest weighted sum.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein, for the reallocating of the packed data files, the one or more processors are configured to reallocate the packed data files to the processors in the same group based on sizes of the packed data files.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein, for the loading of some data files, the one or more processors are configured to load a number of data files that is greater than a reference number determined based on a multiplication of the batch size of distributed training and the ratio of the number of data files between the plurality of sub-sets.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein, for the reallocating of the packed data files, the one or more processors are configured to:
align the packing data files in order of size; and
in response to distributing a portion of the aligned packed data files to the processors in the same group in a predetermined first order, distributing another portion of the aligned packed data files in a second order which is a reverse order of the first order.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the one or more processors are configured to repeatedly perform the distributing of the other portion of the aligned packed data files in the second order in response to distributing the portion of the aligned packed data files in the first order in the batch size.
