Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

3 results for “host-device synchronization”

Newest and most relevant first

Optimizing Token Generation in PyTorch Decoder Models

This article explains how to make AI models run faster by using a smart way to manage computer memory and processing. It helps AI systems work more efficiently, especially when generating text or predictions. Faster AI means better performance for apps and services that rely on these models.

This article explores techniques for optimizing token generation in PyTorch decoder models by leveraging CUDA stream interleaving to hide host-device synchronization overhead. The approach aims to improve computational efficiency and throughput in large-scale AI model inference. These optimizations are critical for enhancing performance in production AI systems.

The article details the use of CUDA stream interleaving to mask host-device synchronization delays during token generation in PyTorch decoder models. By overlapping memory transfers and kernel execution across multiple CUDA streams, the method reduces idle time and maximizes GPU utilization. This technique is particularly beneficial for autoregressive models in natural language processing tasks.

Towards Data Science Blog →

AI in Multiple GPUs: Understanding the Host and Device Paradigm

This article explains how a computer's main processor coordinates with specialized graphics chips to run artificial intelligence tasks more efficiently. Understanding this hardware teamwork helps organizations deploy faster, more cost-effective AI solutions. It matters because proper hardware integration is the foundation of modern, scalable AI applications.

Understanding CPU-GPU host-device interactions is critical for optimizing AI infrastructure costs and computational throughput. Business leaders should prioritize hardware architecture strategies that leverage multi-GPU scaling to accelerate model training and inference. Mastering this paradigm directly impacts time-to-market and operational efficiency in AI-driven products.

The article explores the host-device paradigm, detailing how CPUs manage memory allocation, task scheduling, and data transfer to multiple GPUs. It covers communication protocols, high-speed interconnects, and synchronization mechanisms essential for distributed AI workloads. Optimizing these interactions minimizes latency and maximizes parallel computational efficiency.

Towards Data Science Blog →

How to Work with Data Exceeding VRAM in the Polars GPU Engine

Data engineers can now process datasets larger than GPU memory in Polars without rewriting pipelines, using UVM spilling or experimental multi-GPU streaming.

Polars is a popular tool for crunching large tables of data quickly, and NVIDIA offers a version of it that runs on graphics cards (GPUs) instead of ordinary processors. GPUs have small memory pools, which caused crashes on big datasets. Two new options fix this: one lets the GPU borrow the computer's main memory when full, and an experimental second option splits work across several GPUs. In tests, a 3-terabyte benchmark finished all 22 queries in seconds.

Teams in quant finance, algorithmic trading and fraud detection using Polars on NVIDIA GPUs can now handle datasets bigger than a single GPU's memory. Unified Virtual Memory spills data into system RAM with virtually no code changes, though data migration adds some performance cost. An experimental multi-GPU streaming executor targets hundreds of gigabytes to terabytes, using Dask schedulers to parallelise work. Default configurations already enable UVM, so most users get larger-than-VRAM support with no action; the streaming option carries experimental-status risk.

The Polars GPU engine (backed by cuDF) now supports Unified Virtual Memory, creating a unified address space between host RAM and VRAM so out-of-memory errors are avoided via spilling, with tunable RAPIDS Memory Manager (RMM) settings reducing migration overhead. An experimental streaming executor rewrites Polars' optimised internal representation (IR) graph for batched execution, partitioning it across workers with Dask synchronous (single-GPU) and distributed (multi-GPU) schedulers, plus parameters for join strategies and partition sizes. On PDS-H at 3 TB scale, all 22 queries completed in seconds. Limitations: streaming is experimental, and UVM incurs a performance penalty from host-device data movement.

NVIDIA Developer Blog →