Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Doctoral thesis . 2024
License: CC BY
Data sources: ZENODO
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Doctoral thesis . 2024
License: CC BY
Data sources: ZENODO
ZENODO
Thesis . 2024
License: CC BY
Data sources: Datacite
ZENODO
Thesis . 2024
License: CC BY
Data sources: Datacite
ZENODO
Thesis . 2024
License: CC BY
Data sources: Datacite
versions View all 3 versions
addClaim

Finetuning Open-Source LLMs for Teaching Purpose: Efficient Parameter-Efficient Fine-Tuning Using QLoRA on Consumer Hardware

Authors: Saxena, Satyam;

Finetuning Open-Source LLMs for Teaching Purpose: Efficient Parameter-Efficient Fine-Tuning Using QLoRA on Consumer Hardware

Abstract

This work presents an efficient methodology for fine-tuning large language models (LLMs) under resource constraints using QLoRA (Quantized Low-Rank Adaptation) on consumer-grade hardware. We demonstrate practical fine-tuning of Mistral 7B (7.24 billion parameters) on a 6GB VRAM GPU, achieving significant performance improvements for educational applications in classical literature. Our key contributions include: (1) Efficient 4-bit quantization with LoRA rank optimization, reducing memory footprint while maintaining model quality; (2) Novel application to Shakespearean text generation and literary analysis; (3) Comprehensive ablation studies demonstrating optimal configuration with rank 128; and (4) Practical framework for educational AI deployment under hardware constraints. We achieve successful fine-tuning in approximately 2 hours with 859 training steps, reaching a final loss of 0.33. The trained LoRA adapter requires only 249MB of storage, making it highly portable and accessible. Our approach demonstrates that advanced NLP capabilities can be developed on consumer hardware (RTX 3060 6GB), democratizing access to LLM fine-tuning for educational institutions and independent researchers. The methodology addresses critical challenges in parameter-efficient fine-tuning including quantization-aware training, gradient checkpointing, and optimal hyperparameter selection under memory constraints. Experimental results validate the effectiveness of QLoRA for specialized domain adaptation, with the fine-tuned model showing superior performance in Shakespearean text understanding and generation compared to the base model. The upload contains the complete thesis (21 pages), LaTeX source files, BibTeX bibliography with 24+ references, and 13 publication-quality figures at 300 DPI.

Keywords

Parameter-Efficient Fine-Tuning, Shakespearean Text Generation, Resource-Constrained Training, Natural language processing, Consumer Hardware, LoRA, Low-Resource Training, 4-bit Quantization, Large Language Models, LLM Fine-tuning, Educational AI, Machine learning, Mistral 7B, QLoRA, Natural Language Processing

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Green
Related to Research communities