Fine-Tuning Transformers Model for Question Answering Purpose with Context

Abstract-The practice of fine-tuning large language models for Question answering (QA) has gained significant popularity throughout recent years. We analyze the process of fine-tuning Llama-2-7B-chat through Stanford Question Answering Dataset (SQuAD) in this research. We apply QLoRA (Quantized Low-Rank Adaptation) together with bitsandbytes library for 4-bit quantization to perform parameter-efficient tuning due to limited hardware resources. The system includes stages of data preparation followed by training and model evaluation assessment. The results indicate that transformer fine-tuning produces answers with improved contextual understanding which proves its effectiveness in QA systems. QLoRA enables memory reduction through high accuracy retention which enables model fine-tuning on systems with minimal resources. This research explores both the performance effects and response quality implications of low-rank adaptations in the proposed study to advance NLP-based QA systems.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-05-21
DOI
https://doi.org/10.5281/zenodo.15479954
Primary Topic
Thyroid Disorders and Treatments
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fine-Tuning Transformers Model for Question Answering Purpose with Context

Zenodo (CERN European Organization for Nuclear Research)
Thyroid Disorders and Treatments
article

Fine-Tuning Transformers Model for Question Answering Purpose with Context

article en

Abstract

Abstract-The practice of fine-tuning large language models for Question answering (QA) has gained significant popularity throughout recent years. We analyze the process of fine-tuning Llama-2-7B-chat through Stanford Question Answering Dataset (SQuAD) in this research. We apply QLoRA (Quantized Low-Rank Adaptation) together with bitsandbytes library for 4-bit quantization to perform parameter-efficient tuning due to limited hardware resources. The system includes stages of data preparation followed by training and model evaluation assessment. The results indicate that transformer fine-tuning produces answers with improved contextual understanding which proves its effectiveness in QA systems. QLoRA enables memory reduction through high accuracy retention which enables model fine-tuning on systems with minimal resources. This research explores both the performance effects and response quality implications of low-rank adaptations in the proposed study to advance NLP-based QA systems.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 43%
Thyroid Disorders and Treatments
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.