Work

Estrategias de ingeniería para el ajuste fino supervisado y eficiente de los LLM específicos de dominio: un estudio de caso sobre patrimonio cultural

Year: 2026
Type: article
Abstract: Large Language Models (LLMs) achieve strong performance on general-purpose tasks, yet their adaptation to highly specialized domains remains challenging under computational constraints. This work presents a methodological case study on supervised fine-tuning (SFT) of the Qwen 1.5 7B model for question–answering tasks in a specialized domain, using cultural heritage as a validation case. We propose a resource-efficient fine-tuning pipeline that combines parameter-efficient adaptation techniques and computational optimizations, including DoRA, QLoRA with low-bit quantization, Flash Attention, and gradient checkpointing, enabling training on consumer-grade hardware (NVIDIA RTX 3090, 24 GB VRAM). The model was fine-tuned on a dataset of 1,000 to 4,000 question–answer pairs, generated through LLM-assisted workflows and validated via expert review. Systematic qualitative evaluation demonstrated clear improvements in domain-specific contextualization and error reduction compared to the base model. These results demonstrate the feasibility of specializing LLMs for highly contextual domains under resource-constrained environments and provide a replicable methodological framework for domain adaptation projects.
Language: Spanish
Open Access status: diamond
OpenAlex ID: W7220124938
FWCI:
Cites: 9
Cited by:
Related to: 10