🚀 Five Phases Mindset: Leading the New Chapter in Intelligent Traditional Chinese Medicine (TCM) Consultation
In the era of rapid advancement in artificial intelligence technology, to inherit and promote the essence of traditional Chinese medicine (TCM), the team from Tencent Yantai New Engineering Institute, after in - depth research and collaboration with TCM colleges, has successfully developed an intelligent TCM consultation large model based on QWEN - "Five Phases Mindset". This model is fine - tuned using a scale of one hundred thousand - level consultation data, aiming to provide users with more accurate and personalized TCM consultation services.

The "Five Phases Mindset" intelligent TCM consultation large model integrates the TCM Five Phases theory into artificial intelligence technology. Through technologies such as deep learning and natural language processing, it can achieve intelligent analysis, diagnosis, and recommendation of treatment plans for patients' symptoms. Compared with traditional manual consultation methods, this intelligent model has the following advantages:
- Efficient and Convenient: Patients only need to input their symptoms on devices like mobile phones or computers, and the system can quickly provide diagnostic results and treatment plans, saving patients' time spent on queuing and waiting.
- Accurate and Personalized: Based on big data and deep - learning technology, the model can provide more accurate and personalized diagnoses and suggestions according to the patient's age, gender, medical history, and other information.
- Round - the - Clock Service: The model can provide consultation services anytime and anywhere, without time and location constraints, meeting the needs of patients in different scenarios.
- Intelligent Recommendations: Along with the diagnostic results, the model also recommends suitable TCM treatment plans based on the patient's actual situation, including Chinese medicine, acupuncture, massage, etc., helping patients recover better.
- Continuous Learning: The model has the ability to continuously learn. As data accumulates and technology iterates, its diagnostic accuracy and treatment effectiveness will continue to improve.
The advent of the "Five Phases Mindset" intelligent TCM consultation large model marks an important step forward in the intelligent development of TCM in China. We believe that in the near future, this model will bring more convenient and efficient TCM consultation experiences to a wide range of patients, contributing to the development of the TCM industry. At the same time, we also look forward to collaborating with more industry colleagues to jointly promote the intelligent process of TCM and make greater contributions to human health.
🚀 Quick Start
📦 Installation
The large model includes versions with 1.8B, 7B, and 14B parameters. The version being open - sourced this time is the 1.8B version, which has been quantized using GPTQ to int4, enabling it to run on consumer - grade graphics cards.
For convenience, we recommend that you clone the original QWEN repository to complete the installation of dependencies.
git clone https://github.com/QwenLM/Qwen.git
cd Qwen
pip install -r requirements.txt
Secondly, please ensure that you have installed autogptq
.
pip install auto - gptq optimum
Additionally, if your hardware supports it, you can use flash - attention to enhance the efficiency of inference.
git clone https://github.com/Dao - AILab/flash - attention
pip uninstall - y ninja && pip install ninja
cd flash - attention && pip install .
💻 Usage Examples
Basic Usage
After the installation, you can proceed with the inference.
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation import GenerationConfig
tokenizer = AutoTokenizer.from_pretrained("cookey39/Five_Phases_Mindset", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("cookey39/Five_Phases_Mindset", device_map="auto", trust_remote_code=True).eval()
model.generation_config = GenerationConfig.from_pretrained("cookey39/Five_Phases_Mindset", trust_remote_code=True)
model.generation_config.temperature = 0.6
response, _ = model.chat(tokenizer, "You are an experienced TCM doctor who will give a diagnosis and prescription based on the patient's symptoms.\nSymptoms: Cold, fever, runny nose", history=None)
print(response)
Deployment
For large model deployment, please refer to the official QWEN documentation. It is recommended to use the NVIDIA Triton + VLLM deployment method, which can achieve over thirty - times acceleration in inference speed.
Let us look forward to the widespread application of the "Five Phases Mindset" intelligent TCM consultation large model in the field of TCM, contributing to the inheritance and promotion of our traditional medical culture!
📄 License
This project is licensed under the GPL - 3.0 license.