Palmyra Med: instruction-based fine-tuning of LLMs enhancing medical domain performance - WRITER

Research

– 10 min read

Palmyra Med: instruction-based fine-tuning of LLMs enhancing medical domain performance

Writer Team | July 22, 2023

Our research paper, “Palmyra Med: instruction-based fine-tuning of LLMs enhancing medical domain performance,” presents a comprehensive study on the fine-tuning of large language models (LLMs) for medical applications. The Palmyra Med project involves the fine-tuning of the Palmyra-20b and Palmyra-40b models using a custom-curated medical dataset containing 200,000 examples. This dataset includes data from PubMedQA and MedQA, focusing on biomedical research questions and USMLE-style questions. The fine-tuning process employs instruction-based techniques, utilizing the AdamW optimizer, WarmupDecayLR learning rate scheduler, and training in bf16 precision on multiple GPUs. This approach has significantly enhanced the models’ capabilities in understanding and generating medically relevant responses.

Key findings and takeaways:

Our fine-tuned models outperform both their base counterparts and other LLMs pre-trained on domain-specific knowledge. This research demonstrates the effectiveness of instruction-based fine-tuning in enhancing LLMs performance in the medical domain.

Read the paper