Fine-Tuning Large Models on Smaller GPUs: Does Streaming the Model One Layer at a Time (Layer-Streamed QLoRA) Match Standard QLoRA?

Fine-tuning adapts pretrained large language models (LLMs) to specific tasks and domains, but full-parameter fine-tuning requires substantial GPU memory and computational resources. Low-Rank Adaptation (LoRA) addresses this limitation by freezing pretrained weights and learning lightweight low-rank matrices. QLoRA further reduces memory requirements by quantizing the frozen model weights to 4-bit precision while maintaining trainable LoRA adapters. However, fine-tuning large quantized models are still constrained by GPU memory capacity. Layer-Streamed QLoRA addresses this challenge by keeping only a subset of model layers in GPU memory at a time and transferring layers between CPU and GPU as they are needed during the forward and backward passes. This reduces peak GPU memory use, at the cost of additional data-transfer overhead. We compare standard QLoRA and layer-streamed QLoRA on twelve configurations from the Phi-3, Qwen3, and Qwen3.5 families, spanning 0.6B to 32B parameters and fine-tuned on Dolly-15k. Ten configurations used the same GPU for both methods; the two largest standard runs used a second GPU. Across the twelve model configurations, benchmark scores are closely matched but not identical: the largest standard-versus-streamed gaps are 0.0099 on GSM8K and 0.0026 on MMLU, with no consistent direction favoring either method. Initial run final evaluation loss relative differences remain below 0.003, while logits and trained checkpoints are not numerically identical. We observed that streaming lowers peak GPU memory in every configuration, at the cost of 1.05$\times$ to 4.99$\times$ longer training on the same GPU, while retaining similar performance. This illustrates the possibility of training larger LLM models using lower computational resources.

Authors

Publication Details

Journal
arXiv
Published
2026-12-02
DOI
https://doi.org/10.48550/arxiv.2612.03585
Primary Topic
Domain Adaptation and Few-Shot Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Fine-Tuning Large Models on Smaller GPUs: Does Streaming the Model One Layer at a Time (Layer-Streamed QLoRA) Match Standard QLoRA?

Supriya Adhikari, Vaghawan Prasad Ojha, Kashish Bataju, Projan Shakya et al.
arXiv
Domain Adaptation and Few-Shot Learning
preprint

Fine-Tuning Large Models on Smaller GPUs: Does Streaming the Model One Layer at a Time (Layer-Streamed QLoRA) Match Standard QLoRA?

Supriya Adhikari, Vaghawan Prasad Ojha, Kashish Bataju, Projan Shakya, Shreya Shrestha, Kristina Ghimire, Ashwini Mandal
preprint en

Abstract

Fine-tuning adapts pretrained large language models (LLMs) to specific tasks and domains, but full-parameter fine-tuning requires substantial GPU memory and computational resources. Low-Rank Adaptation (LoRA) addresses this limitation by freezing pretrained weights and learning lightweight low-rank matrices. QLoRA further reduces memory requirements by quantizing the frozen model weights to 4-bit precision while maintaining trainable LoRA adapters. However, fine-tuning large quantized models are still constrained by GPU memory capacity. Layer-Streamed QLoRA addresses this challenge by keeping only a subset of model layers in GPU memory at a time and transferring layers between CPU and GPU as they are needed during the forward and backward passes. This reduces peak GPU memory use, at the cost of additional data-transfer overhead. We compare standard QLoRA and layer-streamed QLoRA on twelve configurations from the Phi-3, Qwen3, and Qwen3.5 families, spanning 0.6B to 32B parameters and fine-tuned on Dolly-15k. Ten configurations used the same GPU for both methods; the two largest standard runs used a second GPU. Across the twelve model configurations, benchmark scores are closely matched but not identical: the largest standard-versus-streamed gaps are 0.0099 on GSM8K and 0.0026 on MMLU, with no consistent direction favoring either method. Initial run final evaluation loss relative differences remain below 0.003, while logits and trained checkpoints are not numerically identical. We observed that streaming lowers peak GPU memory in every configuration, at the cost of 1.05$\times$ to 4.99$\times$ longer training on the same GPU, while retaining similar performance. This illustrates the possibility of training larger LLM models using lower computational resources.

arXiv
Domain Adaptation and Few-Shot Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon