Efficient LLM Framework Using LORA Based Fine Tuning to Analyze Textual Astronomical Data
摘要
In this article, Llama LLM (Large Language Model) is fine tuned with LORA (Low Rank Adaptation) to make it suitable for analyzing astronomical data. Instead of modifying the entire eight billion parameters of the Llama 3 model, we applied LoRA adapters to reduce training time and minimize original knowledge deterioration. The adapters operate as small information guides that can enter particular regions of the attention system to help it utilize language abilities for astronomical subject matters. The proposed scheme uses a compact 4-bit quantization scheme QLoRA (Quantized Low-Rank Adaptation) that condensed the model into a suitable format for quick training and running. Results indicate reduced training time to a few hours on high-end GPUs instead of traditional weeks or days. The fine tuned proposed model provides 85.2% Exact Match Score (EM) when compared with Llama 3 8B Chat HF v1 (Base Model) that reported 60.8 %. This research will facilitate readers robust guidelines towards modifying LLM for domain specific training data which allow fine-tuning while maintaining core functionality.