arXiv(opens in a new tab)cs.DCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05748

MOLT: A Fine-Grained GPU Memory Sharing System for LLM Serving with Opportunistic Fine-Tuning

Jaehoon Yang, Yongbeom Kim, Hojoon Kim, Seung Yul Lee, Jae W. Lee

Jaehoon Yang

Seoul National University

Seoul, Republic of Korea

jaehoon.yang@snu.ac.kr

Yongbeom Kim

Seoul National University

Seoul, Republic of Korea

kybs0627@snu.ac.kr

Hojoon Kim

Seoul National University

Seoul, Republic of Korea

hojoon.kim@snu.ac.kr

Seung Yul Lee

Seoul National University

Seoul, Republic of Korea

triomphant1@snu.ac.kr

Abstract

Large language model (LLM) serving scales its replica count with the request load, yet GPU memory still stands idle inside the replicas. Adding a replica takes minutes, while the memory that a replica needs changes within seconds. Even instant autoscaling could not return this idle memory, because the smallest unit that it can remove is a whole replica. Colocating parameter-efficient fine-tuning (PEFT) with inference can use this memory, but inference must be able to reclaim it within seconds, before requests that wait for memory exceed their latency service-level objective (SLO). Existing colocation systems either keep the tuning memory resident or let inference reclaim it at the coarse granularity of a whole training sample. Each such reclamation also discards the running tuning step. To address these limitations, we present MOLT, a fine-grained memory sharing system that lets inference reclaim the memory of individual activations that a running tuning step has saved for its backward pass. The step continues, and its backward pass recomputes those activations. Inference reclaims only memory that no in-flight GPU work can still access, even under CPU-GPU asynchrony and tensor parallelism. On four model deployments (24B–70B) across H100 SXM and B200 GPUs under trace-driven workloads, MOLT keeps inference SLO attainment at or above 99.7% and completes 1.9–3.3× the tuning work of discard-based memory sharing.

1 Introduction

Request load in large language model (LLM) serving fluctuates heavily. Provisioning enough GPUs to meet the latency service-level objective (SLO) at peak load leaves them underutilized the rest of the time, so production systems autoscale. They add and remove replicas, each an independent serving instance that holds one copy of the model on one or more GPUs, as the load changes [8, 9]. Autoscaling follows the slow part of this fluctuation well, the daily cycle in which user-facing services peak during working hours and fall at night [45, 54], and removes the capacity that a lower load leaves idle [20]. The fast part of the fluctuation, however,

Jae W. Lee

Seoul National University

Seoul, Republic of Korea

jaewlee@snu.ac.kr

tuning step

discarded step

KV cache

discard

restart discard

GPU memory

Figure

(a) Discard-based memory handover

GPU memory

Figure

(b) Handover without discarding

Figure 1. Tuning work that discard-based handover discards and handover without discarding keeps.

outpaces autoscaling, since the key-value (KV) cache of a replica, which dominates its dynamic memory use, can grow 3.2×3.2\times within ten seconds while bringing up a replica and loading the model takes up to several minutes [45]. Each replica must therefore keep headroom to absorb the load that arrives before new replicas come up. One production autoscaler targets 60% GPU utilization by default, leaving each GPU idle 40% of the time [9]. A deployment thus runs at an autoscaling floor, the fewest replicas that keep this headroom, where GPU compute and memory stay idle even with autoscaling. This memory cannot be returned to the provider, because a replica is withdrawn only as a whole.

Colocating another workload with inference can put this idle capacity to use. Parameter-efficient fine-tuning (PEFT) is a natural candidate. It is the standard way to adapt a deployed model [12], and demand keeps growing, with Hugging Face hosting 256,295 PEFT adapters published at a rising rate since 2024 [14]. It also fits colocation well. PEFT freezes the pretrained weights and trains only a small adapter [17], so when applied to the model that inference is serving it reuses the weights resident on the GPU. Its progress is measured in throughput rather than latency, so it can yield memory to inference during a burst and take it back afterwards.

Existing colocation systems dynamically share either the compute or the memory of the GPU. LLMStation [14] shares compute by interleaving tuning operations with inference iterations, but its tuning memory stays resident. Memory, however, is what determines whether inference meets its SLO during a burst. Inference admits a request only when the KV cache has room for it [23, 56], so a shortage of memory delays admission and lengthens the time to first token (TTFT). Likewise, a running request whose KV cache cannot grow for lack of memory stalls until memory frees up [23, 46]. SIRIUS [53] focuses on sharing memory, treating the training batch as elastic. When inference needs memory, it aborts the running step, restarts it with a smaller batch, and hands the freed memory to inference in a handover fast enough for the SLO. The memory boundary between the two workloads thus moves at runtime.

SIRIUS uses the idle memory that autoscaling removes, the memory a fixed number of GPUs leaves free as the load changes over minutes and hours. At the autoscaling floor, however, resizing the training batch moves the boundary in increments too coarse and at a cost too high. First, the smallest increment is one training sample, whose memory is large relative to the idle memory. A one-sample Mistral-Small-24B-Instruct tuning step at 1024 tokens holds 15.8 GiB beside the frozen weights, against 20–31 GiB idle on one H100. Tuning halts once the idle memory cannot hold one sample. Second, each handover discards the running tuning step and restarts it with a smaller batch, losing the work already done (Figure 1(a)). At the floor, this cost recurs whenever the KV cache outgrows the free memory, which happens within seconds.

Avoiding both limitations requires a unit of memory finer than a training sample, one that inference can reclaim without discarding the running step. We observe that the saved activation is such a unit. A saved activation is a tensor that the forward pass keeps for the backward pass to compute gradients. Saved activations hold most of a PEFT step's memory [28] and can be recovered by recomputation [4, 19, 21]. When inference reclaims the memory of some of them, the step continues, and its backward pass recomputes them (Figure 1(b)). Recomputation itself is well studied, but activation checkpointing fixes its memory budget before tuning starts. Here, the budget must change during the step, whenever inference reclaims memory.

Based on this observation, we present MOLT, a fine-grained memory sharing system that lets inference reclaim memory from a running tuning step one saved activation at a time. MOLT places the KV cache and the saved activations in one shared pool of physical GPU memory, and binds each saved activation to a fixed virtual-address range, called a slot. A slot is backed while physical pages of the pool are mapped behind it. When the KV cache needs more memory than the pool has free, MOLT unbacks slots and hands their pages to the KV cache while the tuning step continues. We call this mechanism continuous memory handover.

Handing memory over inside a running step raises two challenges. First, the tuning step must remain correct although its slots can be unbacked at any point. With flexible activation checkpointing, MOLT checks whether a slot is backed before each kernel that uses it, saves activations only into backed slots, and recomputes every activation whose slot is unbacked. Second, a handover must never unback a slot that GPU work may still access. Because the CPU dispatches kernels ahead of the GPU [30], a kernel dispatched several layers earlier may still access a slot when a handover arrives. With asynchronous-aware slot protection, MOLT protects every such slot, limits how far CPU dispatch runs ahead to keep the protected slots few, and makes every rank of a tensor-parallel deployment unback the same slots.

We evaluate MOLT on four model deployments (24B–70B) across H100 SXM and B200 GPUs under trace-driven workloads, where it keeps inference SLO attainment at or above 99.7% while tuning continues. Colocation that shares only compute reaches an SLO attainment of at most 5.0%. Against the discard-based memory sharing of SIRIUS, which also lets inference reclaim memory, MOLT completes 1.9–3.3× the tuning work. On both Mistral-Small-24B-Instruct deployments, MOLT with step-level handover, which moves the boundary only between steps, attains the SLO less often and completes less tuning work, which shows that the gain comes from the finer granularity rather than from the implementation.

In summary, this paper makes the following contributions:

  • We identify the GPU memory that autoscaling leaves idle in LLM serving, and show that existing memory sharing cannot use it, because its unit, one training sample, is too coarse and each handover discards the running tuning step.

  • We propose MOLT, a fine-grained memory sharing system whose continuous memory handover lets inference reclaim memory from a running tuning step one saved activation at a time.

  • We design flexible activation checkpointing, which keeps the tuning step correct, and asynchronous-aware slot protection, which makes each handover safe under CPU–GPU asynchrony and tensor parallelism.

  • We evaluate MOLT against compute sharing, discard-based memory sharing and MOLT with step-level handover, and show that it sustains inference SLO attainment while completing more tuning work than discard-based memory sharing.

References (9)