paper-with-me

Papers

A Study of Optimizations for Fine-tuning Large Language Models

2024-06-04 · Arjun Singh, Nikhil Pandey, Anup Shirgaonkar, Pavan Manoj, Vijay Aski

Fine-tuning large language models is a popular choice among users trying to adapt them for specific applications. However, fine-tuning these models is a demanding task because the user has to examine several factors, such as resource budget, runtime, model size and context length among others. A specific challenge is that fine-tuning is memory intensive, imposing constraints on the required hardware memory and context length of training data that can be handled. In this work, we share a detailed study on a variety of fine-tuning optimizations across different fine-tuning scenarios. In particular, we assess Gradient Checkpointing, Low-Rank Adaptation, DeepSpeed's Zero Redundancy Optimizer and FlashAttention. With a focus on memory and runtime, we examine the impact of different optimization combinations on GPU memory usage and execution runtime during fine-tuning phase. We provide our recommendation on the best default optimization for balancing memory and runtime across diverse model sizes. We share effective strategies for fine-tuning very large models with tens or hundreds of billions of parameters and enabling large context lengths during fine-tuning. Furthermore, we propose the appropriate optimization mixtures for fine-tuning under GPU resource limitations.

📄 PDF Abstract BibTeX arXiv:2406.02290

Code (0)

등록된 구현이 없습니다.

Tasks

GPU

Methods 이 논문이 사용한 방법론

Gradient Checkpointing Gradient Checkpointing is a method used for reducing the memory footprint when training deep neural networks, at the cost of having a small increase in computation time.
Focus 설명 없음
ZeRO Zero Redundancy Optimizer (ZeRO) is a sharded data parallel method for distributed training. ZeRODP removes the memory state redundancies across data-parallel processes by…

Similar Papers 제목 키워드 기반

A Comparative Study of DSL Code Generation: Fine-Tuning vs. Optimized Retrieval Augmentation

2024-07-03 · Nastaran Bassamzadeh, Chhaya Methani

Natural Language to Code Generation has made significant progress in recent years with the advent of Large Language Models(LLMs). While generation for general-purpose languages like C, C++, and Python has improved signif…

Code GenerationHallucinationRAGRetrieval+1

PockEngine: Sparse and Efficient Fine-tuning in a Pocket

2023-10-26 · Ligeng Zhu, Lanxiang Hu, Ji Lin, Wei-Chen Wang 외

On-device learning and efficient fine-tuning enable continuous and privacy-preserving customization (e.g., locally fine-tuning large language models on personalized data). However, existing training frameworks are design…

CPUGPUPrivacy Preserving

FlexLLM: A System for Co-Serving Large Language Model Inference and Parameter-Efficient Finetuning

2024-02-29 · Gabriele Oliaro, Xupeng Miao, Xinhao Cheng, Vineeth Kada 외

Finetuning large language models (LLMs) is essential for task adaptation, yet serving stacks today isolate inference and finetuning on separate GPU clusters -- wasting resources and under-utilizing hardware. We introduce…

GPULanguage ModelingLanguage ModellingLarge Language Model

A Survey on Split Learning for LLM Fine-Tuning: Models, Systems, and Privacy Optimizations

2026-04-27 · Zihan Liu, Yizhen Wang, Rui Wang, Xiu Tang 외 arxiv

Fine-tuning unlocks large language models (LLMs) for specialized applications, but its high computational cost often puts it out of reach for resource-constrained organizations. While cloud platforms could provide the ne…

Linearization Explains Fine-Tuning in Large Language Models

2026-02-09 · Zahra Rahimi Afzal, Tara Esmaeilbeig, Mojtaba Soltanalian, Mesrob I. Ohannessian arxiv

Parameter-Efficient Fine-Tuning (PEFT) is a popular class of techniques that strive to adapt large models in a scalable and resource-efficient manner. Yet, the mechanisms underlying their training performance and general…

parameter-efficient fine-tuning