﻿# Ray Tune fractional GPUs: scheduling fractions do not partition a model’s device-memory demand

Plan concurrent Ray Tune trials with fractional GPU requests by separating logical scheduling quantities, visible devices and measured memory under overlapping trial phases.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-ray-tune-fractional-gpu-vram-isolation/
Language: en

## Identify what the requested fraction represents

A tuning job fits on a GPU when run alone. The controller assigns a fractional GPU request to permit concurrent candidates, then encounters memory failures during overlap. The [Ray resource guide](https://docs.ray.io/en/latest/ray-core/scheduling/resources.html) distinguishes logical scheduling resources from physical resource enforcement. A fraction describes admission accounting. It does not rewrite model tensors into a smaller memory representation or independently establish a fixed hardware memory partition for each admitted trial.

## Observe which trials share the actual device

The [accelerator guide](https://docs.ray.io/en/latest/ray-core/scheduling/accelerators.html) describes fractional accelerator sharing and visible-device assignment. Inspect the effective device seen by each worker rather than assuming each fraction maps to an independent card. Several admitted trials can share the same accelerator. Their parameter weights, workspaces, activations and caches therefore interact with a common physical memory capacity, even when each process considers its own model loading successful in an isolated diagnostic run.

## Examine overlapping phases rather than isolated peaks

A candidate's memory demand can change between loading, forward execution, backward computation and checkpoint handling. Concurrent trials need not reach these phases in the same order. Measure a representative overlap instead of multiplying a convenient idle allocation by the desired concurrency. A late activation peak can fail after every candidate loaded successfully. Preserve the tested input shapes, model representations and phase overlap so the result explains the intended sharing policy rather than an accidental favorable timing of a single test.

## Configure trial resources with application behavior

The [Tune parallelism guide](https://docs.ray.io/en/latest/tune/tutorials/tune-resources.html) describes per-trial resource requests and concurrent admission. Combine that configuration with framework memory behavior and any deliberate isolation mechanism outside the logical fraction. Keep the meanings separate: scheduling policy, visible device selection and device-memory limits answer different questions. If a trial launches additional subprocesses or nested work, include their demand in the design rather than treating the main function's declaration as a full inventory of every allocation it may cause.

## Verify a realistic sharing fixture

Run representative candidates through the phase that matters under the proposed concurrent arrangement and inspect memory failure behavior. Related guides explain [reserved versus allocated device memory](/journal/cuda-oom-reserved-vs-allocated/) and [CPU/GPU execution roles](/journal/cpu-gpu-hybrid-architecture/). Successful admission demonstrates that the logical requests fit the scheduler's accounting. Successful overlapping execution provides separate evidence for the physical workload. Neither observation should be translated into a universal model-concurrency promise without preserving the tested configuration and input conditions.
