A large language model for traditional Chinese medicine based on Llama3

This project focuses on fine-tuning Llama 3 and other models such as Phi-3.5 and Mistral on Traditional Chinese Medicine (TCM) datasets. While Llama 3 is powerful in general NLP tasks, it is not optimized for Chinese, especially in the context of TCM. To address this, we fine-tune the models on TCM-specific data to enhance their understanding of herbal names, diseases, and treatments, especially since these proper nouns are often in classical Chinese in ancient China. We go beyond Chinese and include classical Chinese datasets. During fine-tuning, we use Unsloth to speed up the fine-tuning process and introduce LoRA (Low Rank Adaptation) to reduce computational cost. The TCM dataset is formatted for Hugging Face and labeled according to the requirements of each model. Models are evaluated using BLEU score, perplexity, memory usage, and training time. Results show that Llama 3 achieves the best overall performance, with significant improvements in BLEU score and perplexity, while maintaining moderate memory usage. Phi-3.5 and Mistral also show improvements, with Phi-3.5 being the most memory efficient and Mistral excelling in handling large-scale data.

Authors

Institutions

Publication Details

Journal
IET conference proceedings.
Published
2025-04-09
DOI
https://doi.org/10.1049/icp.2025.1017
Citations
2
Primary Topic
Traditional Chinese Medicine Studies
Type
article
Field-Weighted Citation Impact
4.76
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A large language model for traditional Chinese medicine based on Llama3

Xianjun Zhang, Weihui Dai, Run Wu, Yuxin Nie
2 citations
IET conference proceedings.
Traditional Chinese Medicine Studies
4.76
article

A large language model for traditional Chinese medicine based on Llama3

Xianjun Zhang, Weihui Dai, Run Wu, Yuxin Nie
article en
2 citations

Abstract

This project focuses on fine-tuning Llama 3 and other models such as Phi-3.5 and Mistral on Traditional Chinese Medicine (TCM) datasets. While Llama 3 is powerful in general NLP tasks, it is not optimized for Chinese, especially in the context of TCM. To address this, we fine-tune the models on TCM-specific data to enhance their understanding of herbal names, diseases, and treatments, especially since these proper nouns are often in classical Chinese in ancient China. We go beyond Chinese and include classical Chinese datasets. During fine-tuning, we use Unsloth to speed up the fine-tuning process and introduce LoRA (Low Rank Adaptation) to reduce computational cost. The TCM dataset is formatted for Hugging Face and labeled according to the requirements of each model. Models are evaluated using BLEU score, perplexity, memory usage, and training time. Results show that Llama 3 achieves the best overall performance, with significant improvements in BLEU score and perplexity, while maintaining moderate memory usage. Phi-3.5 and Mistral also show improvements, with Phi-3.5 being the most memory efficient and Mistral excelling in handling large-scale data.

IET conference proceedings.Vol. 2025(2)
Jinan University (CN), Lehigh University (US), Occidental College (US), University of California, Davis (US)
Zero hunger
Openalex Percentile: Top 7%
Traditional Chinese Medicine Studies
4.76
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.

A large language model for traditional Chinese medicine based on Llama3 — Xianjun Zhang, Weihui Dai, et al. · IET conference proceedings. (2025) | TGRS Research Map | TGRS