LLMem: Estimating GPU Memory Usage for Fine-Tuning Pre-Trained LLMs
Not on the map. Why?
Abstract (arXiv)
Fine-tuning pre-trained large language models (LLMs) with limited hardware presents challenges due to GPU memory constraints. Various distributed fine-tuning methods have been proposed to alleviate memory constraints on GPU. However, determining the most effective method for achieving rapid fine-tuning while preventing GPU out-of-memory issues in a given environment remains unclear. To address this challenge, we introduce LLMem, a solution that estimates the GPU memory consumption when applying distributed fine-tuning methods across multiple GPUs and identifies the optimal method. We conduct GPU memory usage estimation prior to fine-tuning, leveraging the fundamental structure of transformer-based decoder models and the memory usage distribution of each method. Experimental results show that LLMem accurately estimates peak GPU memory usage on a single GPU, with error rates of up to 1.6%. Additionally, it shows an average error rate of 3.0% when applying distributed fine-tuning methods to LLMs with more than a billion parameters on multi-GPU setups.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 15 of its 23 references that are in the map. First posted on arXiv 16 Apr 2024.
Builds on
15 of 23 references.
References · 15
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 538
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2023SantaCoder: don't reach for the stars!cited by 170
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 5.
12 papers.
- 2024KD-LoRA: A Hybrid Approach to Efficient Fine-Tuning with LoRA and Knowledge Distillationcited by 6
- 2025Parameter-Efficient Fine-Tuning for Low-Resource Languages: A Comparative Study of LLMs for Bengali Hate Speech Detectioncited by 3
- 2025xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloadscited by 1
- 2025From Projection to Prediction: Beyond Logits for Scalable Language Modelscited by 1
- 2026CuraView: A Multi-Agent Framework for Medical Hallucination Detection with GraphRAG-Enhanced Knowledge Verificationcited by 1
- 2026PaperFit: Vision-in-the-Loop Typesetting Optimization for Scientific Documentscited by 1
- 2025Accurate GPU Memory Prediction for Deep Learning Jobs through Dynamic Analysiscited by 0
- 2025AEGIS: Runtime-Guided GPU Collocation for Multi-Tenant Deep Learning Trainingcited by 0
- 2025GPU Memory Prediction for Multimodal Model Trainingcited by 0
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI acceleratorscited by 0
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloadscited by 0
- 2026Federated 3D Gaussian Splatting for Large-Scale Scene Reconstruction at Wireless Edgecited by 0
- 2026Federated 3D Gaussian Splatting for Large-Scale Scene Reconstruction at Wireless Edge26 Sep 2026
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloads15 Aug 2026
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI accelerators13 Jul 2026
- 2026PaperFit: Vision-in-the-Loop Typesetting Optimization for Scientific Documents11 May 2026
- 2026CuraView: A Multi-Agent Framework for Medical Hallucination Detection with GraphRAG-Enhanced Knowledge Verification5 May 2026
- 2025GPU Memory Prediction for Multimodal Model Training26 Nov 2025
- 2025From Projection to Prediction: Beyond Logits for Scalable Language Models18 Nov 2025
- 2025xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloads23 Oct 2025
- 2025Parameter-Efficient Fine-Tuning for Low-Resource Languages: A Comparative Study of LLMs for Bengali Hate Speech Detection19 Oct 2025
- 2025AEGIS: Runtime-Guided GPU Collocation for Multi-Tenant Deep Learning Training26 Aug 2025
- 2025Accurate GPU Memory Prediction for Deep Learning Jobs through Dynamic Analysis4 Apr 2025
- 2024KD-LoRA: A Hybrid Approach to Efficient Fine-Tuning with LoRA and Knowledge Distillation28 Oct 2024