KIT | KIT-Bibliothek | Impressum | Datenschutz

Resource-efficient use of large language models

Scotti, Vincenzo ORCID iD icon 1
1 Institut für Informationssicherheit und Verlässlichkeit (KASTEL), Karlsruher Institut für Technologie (KIT)

Abstract:

With this chapter, we introduce the techniques for efficient inference and training of large language models (LLMs). These techniques allow for deployment or fine-tuning on consumer-level hardware at an acceptable speed while retaining as many capabilities as possible. In particular, we are going to discuss about the impact of the memory footprint of LLMs on the requirements for inference and training, the differences between available numerical precision on the existing hardware and the limitations of this hardware; the techniques adopted with LMs before their transformation into LLMs, like the use of smaller scale models fine-tuned on task specific data, knowledge distillation and mixed precision training; resource efficient algorithms and quantization approaches for inference, like Flash-Attention and GPT-Q quantization; resource efficient tools and approaches for training, which include optimizers with better memory management, checkpointing of gradients and use of adapters (possibly in combination with quantization).


Originalveröffentlichung
DOI: 10.1016/B978-0-443-33592-1.00001-2
Zugehörige Institution(en) am KIT Institut für Informationssicherheit und Verlässlichkeit (KASTEL)
Publikationstyp Buchaufsatz
Publikationsjahr 2026
Sprache Englisch
Identifikator ISBN: 978-0-443-33592-1
KITopen-ID: 1000199113
Erschienen in Challenges and Applications of Generative Large Language Models
Verlag Elsevier
Seiten 153–176
Vorab online veröffentlicht am 17.01.2026
Schlagwörter LoRA; quantization; half-precision; prefix-tuning; pagination; flash-attention; memory footprint
Nachgewiesen in OpenAlex
Scopus
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page