Glossary

What is Data parallelism?

In Turkish: Veri paralelliği · Topic: Hardware and infrastructure

A parallelization method in which every accelerator holds a full copy of the model and processes a different slice of the training data at the same time, speeding up training.

How does it work?

Each chip carries an identical copy of the model and works on its own batch of data (a mini-batch). The chips then share the corrections they computed, called gradients, average them and all apply the same update, so the copies stay in sync. Because this happens over a network, communication overhead grows as more chips are added. Techniques such as FSDP and ZeRO reduce the memory burden by sharding training state across chips.

Why does it matter?

It is the simplest and most common form of parallelism, so it is the starting point for most training setups. Adding chips this way is the most direct route to shorter training times. It is not enough on its own when a model does not fit in a single chip's memory, which is where model parallelism comes in.

Example

An image classification model trained on eight GPUs has the same model on every GPU, each looking at a different group of photos; the gradients are averaged and sent back to all of them.

FAQ

Can data parallelism make a model bigger?

No. It speeds up training but does not increase model size. Since each chip holds a copy of the model, the model must fit on one chip; otherwise model parallelism or memory-sharding techniques are needed.

What is the difference between data parallelism and model parallelism?

In data parallelism the model is copied and the data is split. In model parallelism the model itself is divided into parts and placed on different chips.

All terms