Skip to content

AI & Compute

Batch Processing

Handling multiple compute tasks together to maximize GPU utilization and throughput. Batch processing is more efficient than processing tasks one at a time.

How batch processing works

The term is used at two levels. Inside a model, batching means running several inputs through the GPU in one pass. A single small request rarely keeps thousands of GPU cores busy, and the model weights must be read from memory for every pass, so grouping inputs lets one read of the weights serve many of them. Total throughput rises sharply even though each pass takes a little longer. LLM servers extend this with continuous batching, which adds and removes requests from the running batch at every generation step.

At the job level, batch processing means running large amounts of non-interactive work in bulk: embedding a document archive, transcribing a backlog of recordings, generating thumbnails, running evaluation sets or preprocessing a training dataset. The work is split into independent chunks that can run in parallel on many machines, and the results are collected when every chunk finishes. Because no user is waiting on a single response, these jobs can be scheduled for whenever capacity is available.

Batch processing on OpenGPU

Batch processing is one of the supported workload categories on OpenGPU, covering dataset processing, feature extraction and preprocessing. Relay handles batch and offline jobs such as embeddings, indexing and long-running tasks, and routes them across providers. Independent chunks can be spread over many GPU nodes to scale horizontally, and built-in retry and failover move work to another node if a provider drops. Each job's budget, expected duration and priority are workload signals the routing layer weighs alongside GPU class, VRAM and node health. The Why OpenGPU page lists batch processing and cron jobs among the workloads the network runs.

Batch vs real-time processing: what is the difference?

Real-time, or online, processing handles each request as it arrives and is judged by latency: a chatbot reply or a fraud check must come back within seconds or less. Batch processing collects work and handles it in bulk, and is judged by throughput and cost per item: an overnight job that embeds millions of documents only needs to finish on time. Batch jobs can use larger batch sizes, spare capacity and simple retries, so they usually cost less per item. Many AI systems use both, with batch jobs building indexes, features and evaluations while real-time inference serves users.

What do you want to do?