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…
- arXiv
- 2612.03585
- Authors
- Ashwini Mandal, Kashish Bataju, Projan Shakya, Supriya Adhikari, Shreya Shrestha and 2 more
- Categories
- cs.LG · cs.AI