Text Generation
Transformers
Safetensors
Chinese
qwen3
traditional-chinese-medicine
lingdan-v2
base
conversational
text-generation-inference
Instructions to use TCMLLM/Lingdan-14B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TCMLLM/Lingdan-14B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TCMLLM/Lingdan-14B-Base") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TCMLLM/Lingdan-14B-Base") model = AutoModelForCausalLM.from_pretrained("TCMLLM/Lingdan-14B-Base", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TCMLLM/Lingdan-14B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TCMLLM/Lingdan-14B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TCMLLM/Lingdan-14B-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TCMLLM/Lingdan-14B-Base
- SGLang
How to use TCMLLM/Lingdan-14B-Base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TCMLLM/Lingdan-14B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TCMLLM/Lingdan-14B-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TCMLLM/Lingdan-14B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TCMLLM/Lingdan-14B-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TCMLLM/Lingdan-14B-Base with Docker Model Runner:
docker model run hf.co/TCMLLM/Lingdan-14B-Base
Update model card: usage, evaluation and task prompts
Browse files
README.md
CHANGED
|
@@ -1,133 +1,147 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
| 4 |
<p align="center">
|
| 5 |
<img width="420" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/logo.png" alt="Lingdan-V2 logo" />
|
| 6 |
</p>
|
| 7 |
|
| 8 |
<p align="center"><strong>Lingdan-V2: Large Language Models for Clinically Grounded Reasoning in Traditional Chinese Medicine</strong></p>
|
| 9 |
|
| 10 |
-
<p align="center">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
<p align="center">
|
| 13 |
-
<a href="https://modelscope.cn/
|
| 14 |
-
<a href="http://tcmai.chat/"><img src="https://img.shields.io/badge/Online_Demo-tcmai.chat-F28C28" alt="Lingdan-V2 online demo" /></a>
|
| 15 |
<a href="https://github.com/TCMAI-BJTU/LingLan"><img src="https://img.shields.io/badge/Benchmark-LingLan-2A8F5B" alt="LingLan benchmark" /></a>
|
| 16 |
<img src="https://img.shields.io/badge/Model_scales-4B_%7C_8B_%7C_14B-0B5394" alt="Model scales: 4B, 8B, and 14B" />
|
| 17 |
<a href="https://github.com/TCMAI-BJTU/Lingdan-V2/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache--2.0-D22128" alt="Apache License 2.0" /></a>
|
| 18 |
</p>
|
| 19 |
|
| 20 |
-
|
| 21 |
-
<a href="#overview">Overview</a> ·
|
| 22 |
-
<a href="#model-zoo">Model Zoo</a> ·
|
| 23 |
-
<a href="#study-design">Study Design</a> ·
|
| 24 |
-
<a href="#main-results">Main Results</a> ·
|
| 25 |
-
<a href="#data-privacy-and-responsible-use">Responsible Use</a> ·
|
| 26 |
-
<a href="#license">License</a>
|
| 27 |
-
</p>
|
| 28 |
-
|
| 29 |
-
## Overview
|
| 30 |
-
|
| 31 |
-
Clinical decision-making in traditional Chinese medicine (TCM) requires the joint integration of domain knowledge, symptom presentations, syndrome differentiation, treatment principle selection, herbal prescription composition, and dosage information. Although general-purpose large language models demonstrate strong language understanding capabilities, they remain limited in their adaptation to specialized TCM knowledge, complex diagnostic-therapeutic reasoning, and structured prescription generation.
|
| 32 |
-
|
| 33 |
-
Lingdan-V2 is a family of TCM large language models developed from Qwen3 backbone models at three parameter scales: 4B, 8B, and 14B. Through TCM-domain continued pretraining (CPT), reasoning-oriented supervised fine-tuning (SFT), and prescription-centered Group Relative Policy Optimization (GRPO), the models progressively acquire domain knowledge, task execution capabilities, structured reasoning, and prescription decision-making abilities. Lingdan-14B-R1 is the primary model investigated in this study, while the 4B and 8B series provide complementary evidence regarding the effects of model scale and prescription-centered post-training.
|
| 34 |
-
|
| 35 |
-
| Model family | CPT corpus | SFT corpus | GRPO data | Evaluation scale |
|
| 36 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 37 |
-
| 4B, 8B, and 14B × Base, SFT, and R1 | 16.62B tokens | 7.73M samples / 2.08B tokens | 24,212 Samples | LingLan: 25,624 items / Private clinical set: 4,348 cases |
|
| 38 |
-
|
| 39 |
-
<p align="center">
|
| 40 |
-
<img width="100%" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/overview.png" alt="Overview of Lingdan-V2 development and evaluation" />
|
| 41 |
-
</p>
|
| 42 |
-
<p align="center"><sub>Figure 1. Data foundation, staged training pipeline, and evaluation settings of Lingdan-V2.</sub></p>
|
| 43 |
-
|
| 44 |
-
## Key Contributions
|
| 45 |
-
|
| 46 |
-
- **A multi-scale family of TCM language models:** We develop Base, SFT, and R1 models at the 4B, 8B, and 14B parameter scales to support domain research, instruction-following tasks, and TCM clinical reasoning.
|
| 47 |
-
- **A staged pathway for capability development:** We integrate large-scale TCM knowledge acquisition, reasoning-oriented supervised learning, and prescription-centered reinforcement post-training within a unified framework.
|
| 48 |
-
- **A systematic evaluation of TCM clinical reasoning:** We evaluate TCM knowledge, information extraction, diagnostic-therapeutic reasoning, decision recognition, prescription composition, and dosage agreement on LingLan, LingLan-Hard, and a private prescription dataset for spleen and stomach disorders.
|
| 49 |
-
|
| 50 |
-
## Model Zoo
|
| 51 |
-
|
| 52 |
-
All models are released on ModelScope. Model names follow the unified format `Lingdan-{Scale}-{Stage}`.
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
|
| 60 |
-
|
| 61 |
-
- **SFT:** Models obtained by supervised fine-tuning of the Base checkpoints for TCM question answering, information extraction, and general diagnostic and therapeutic instruction-following tasks.
|
| 62 |
-
- **R1:** Models aligned from the SFT checkpoints through prescription-centered GRPO, with an emphasis on structured clinical reasoning and prescription recommendation.
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
-
|
| 69 |
-
2. **Supervised fine-tuning (SFT):** Lingdan-SFT models are trained on 7,729,982 samples comprising 2.08B tokens. The tasks include TCM question answering, information extraction, diagnostic-therapeutic reasoning, clinical cases, and prescription generation.
|
| 70 |
-
3. **Prescription-centered GRPO:** Lingdan-R1 models are trained on 24,212 Samples, with prescription composition agreement serving as the primary optimization objective.
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
|
| 86 |
-
|
| 87 |
-
<img width="760" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/overall_score_comparison.png" alt="Overall Score comparison on LingLan and LingLan-Hard" />
|
| 88 |
-
</p>
|
| 89 |
-
<p align="center"><sub>Figure 2. Overall Score comparison between Lingdan-14B-R1 and external models of different scales on LingLan and LingLan-Hard.</sub></p>
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
-
|
| 98 |
-
<img width="100%" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/training_stage_performance.png" alt="Performance changes from SFT to R1 across Lingdan-V2 model scales" />
|
| 99 |
-
</p>
|
| 100 |
-
<p align="center"><sub>Figure 3. Changes in Overall Score and prescription-generation F1 from SFT to R1 across the 4B, 8B, and 14B models.</sub></p>
|
| 101 |
|
| 102 |
-
|
|
|
|
| 103 |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
-
|
| 107 |
-
<img width="100%" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/private_prescription_recommendation.png" alt="Private prescription recommendation results for spleen and stomach disorders" />
|
| 108 |
-
</p>
|
| 109 |
-
<p align="center"><sub>Figure 4. Herbal composition F1, dosage cosine similarity, and dosage MAE in the private clinical prescription evaluation for spleen and stomach disorders.</sub></p>
|
| 110 |
|
| 111 |
## Data Privacy and Responsible Use
|
| 112 |
|
| 113 |
-
-
|
| 114 |
-
- The private clinical evaluation is a retrospective, text-based assessment of prescription agreement. It does not constitute prospective clinical validation or evidence of effectiveness in real-world clinical practice.
|
| 115 |
-
- Lingdan-V2 is intended solely for scientific and technical research. It does not provide medical advice and must not replace diagnosis, syndrome differentiation, treatment, or prescription review by qualified healthcare professionals.
|
| 116 |
-
|
| 117 |
|
| 118 |
## License
|
| 119 |
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
Subject to the terms of the Apache License 2.0, personal, research, and commercial use is permitted, as are copying, modification, and redistribution. Redistributions of the original or derivative versions must retain the license text and all applicable copyright, patent, trademark, and attribution notices; disclose any modifications; and preserve the project's [NOTICE](https://github.com/TCMAI-BJTU/Lingdan-V2/blob/main/NOTICE) file.
|
| 123 |
-
|
| 124 |
-
The Apache License 2.0 does not relicense third-party training data, external benchmark materials, or private clinical data. These resources remain subject to their original licenses, data-use agreements, and privacy requirements. The medical safety statements above describe the intended use and associated risks of the models; they do not impose additional restrictions under the Apache License 2.0. Users are responsible for deployment decisions, regulatory compliance, and any clinical use.
|
| 125 |
-
|
| 126 |
-
This section is provided only as a summary. The `LICENSE` and `NOTICE` files in this repository govern the applicable rights and obligations.
|
| 127 |
|
| 128 |
## Citation
|
| 129 |
|
| 130 |
-
|
| 131 |
|
| 132 |
```bibtex
|
| 133 |
@misc{hua2026lingdanv2,
|
|
@@ -136,11 +150,21 @@ If you use Lingdan-V2 in your research, please cite this project:
|
|
| 136 |
year = {2026},
|
| 137 |
url = {https://github.com/TCMAI-BJTU/Lingdan-V2}
|
| 138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
```
|
| 140 |
|
| 141 |
## Related Links
|
| 142 |
|
| 143 |
-
- [Lingdan-V2
|
| 144 |
-
- [Lingdan-V2 models on ModelScope](https://modelscope.cn/organization/TCMAIBJTU)
|
| 145 |
-
- [LingLan benchmark](https://github.com/TCMAI-BJTU/LingLan)
|
| 146 |
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- zh
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- qwen3
|
| 9 |
+
- traditional-chinese-medicine
|
| 10 |
+
- lingdan-v2
|
| 11 |
+
- base
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# Lingdan-14B-Base
|
| 15 |
+
|
| 16 |
<p align="center">
|
| 17 |
<img width="420" src="https://raw.githubusercontent.com/TCMAI-BJTU/Lingdan-V2/main/assets/logo.png" alt="Lingdan-V2 logo" />
|
| 18 |
</p>
|
| 19 |
|
| 20 |
<p align="center"><strong>Lingdan-V2: Large Language Models for Clinically Grounded Reasoning in Traditional Chinese Medicine</strong></p>
|
| 21 |
|
| 22 |
+
<p align="center">
|
| 23 |
+
<a href="http://tcmai.chat/">
|
| 24 |
+
<img src="https://img.shields.io/badge/OPEN_LINGDAN--V2_ONLINE-tcmai.chat-F28C28?style=for-the-badge&logo=googlechrome&logoColor=white" alt="Open the Lingdan-V2 online demo" />
|
| 25 |
+
</a>
|
| 26 |
+
</p>
|
| 27 |
|
| 28 |
<p align="center">
|
| 29 |
+
<a href="https://modelscope.cn/collections/TCMAIBJTU/Lingdan-V2"><img src="https://img.shields.io/badge/Models-ModelScope-624AFF" alt="ModelScope models" /></a>
|
|
|
|
| 30 |
<a href="https://github.com/TCMAI-BJTU/LingLan"><img src="https://img.shields.io/badge/Benchmark-LingLan-2A8F5B" alt="LingLan benchmark" /></a>
|
| 31 |
<img src="https://img.shields.io/badge/Model_scales-4B_%7C_8B_%7C_14B-0B5394" alt="Model scales: 4B, 8B, and 14B" />
|
| 32 |
<a href="https://github.com/TCMAI-BJTU/Lingdan-V2/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache--2.0-D22128" alt="Apache License 2.0" /></a>
|
| 33 |
</p>
|
| 34 |
|
| 35 |
+
## Contents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
1. [Model Details](#model-details)
|
| 38 |
+
2. [Quickstart](#quickstart)
|
| 39 |
+
3. [vLLM Deployment](#vllm-deployment)
|
| 40 |
+
4. [Data Privacy and Responsible Use](#data-privacy-and-responsible-use)
|
| 41 |
+
5. [License](#license)
|
| 42 |
+
6. [Citation](#citation)
|
| 43 |
+
7. [Related Links](#related-links)
|
| 44 |
|
| 45 |
+
## Model Details
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
**Lingdan-14B-Base** is a Qwen3-based TCM model in the [Lingdan-V2 family](https://github.com/TCMAI-BJTU/Lingdan-V2). CPT on 16.62B tokens.
|
| 48 |
|
| 49 |
+
| Field | Value |
|
| 50 |
+
| --- | --- |
|
| 51 |
+
| Parameter scale | 14B |
|
| 52 |
+
| Architecture family | Qwen3 causal language model |
|
| 53 |
+
| Training stage | Continued pretraining (CPT) |
|
| 54 |
+
| Starting checkpoint / backbone | Qwen3 14B backbone |
|
| 55 |
+
| Intended use | Text completion, domain research, and further fine-tuning |
|
| 56 |
+
| Platform model ID | `TCMLLM/Lingdan-14B-Base` |
|
| 57 |
|
| 58 |
+
## Quickstart
|
|
|
|
|
|
|
| 59 |
|
| 60 |
+
Use Transformers ≥4.51.0; see the [Qwen3 quickstart](https://qwen.readthedocs.io/en/stable/getting_started/quickstart.html).
|
| 61 |
|
| 62 |
+
```bash
|
| 63 |
+
pip install -U torch transformers accelerate
|
| 64 |
+
```
|
| 65 |
|
| 66 |
+
```python
|
| 67 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 68 |
+
|
| 69 |
+
model_name = "TCMLLM/Lingdan-14B-Base"
|
| 70 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 71 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 72 |
+
model_name,
|
| 73 |
+
torch_dtype="auto",
|
| 74 |
+
device_map="auto",
|
| 75 |
+
).eval()
|
| 76 |
+
|
| 77 |
+
# Base checkpoints are intended for completion and further fine-tuning.
|
| 78 |
+
text = "中医辨证论治的基本概念是"
|
| 79 |
+
inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 80 |
+
outputs = model.generate(
|
| 81 |
+
**inputs,
|
| 82 |
+
max_new_tokens=1024,
|
| 83 |
+
do_sample=True,
|
| 84 |
+
temperature=0.6,
|
| 85 |
+
top_p=0.95,
|
| 86 |
+
top_k=20,
|
| 87 |
+
)
|
| 88 |
+
new_tokens = outputs[0, inputs.input_ids.shape[1]:]
|
| 89 |
+
print(tokenizer.decode(new_tokens, skip_special_tokens=True))
|
| 90 |
+
```
|
| 91 |
|
| 92 |
+
## vLLM Deployment
|
| 93 |
|
| 94 |
+
Install vLLM in a GPU environment with compatible CUDA/PyTorch; see the [Qwen3 vLLM guide](https://qwen.readthedocs.io/en/stable/deployment/vllm.html).
|
| 95 |
|
| 96 |
+
```bash
|
| 97 |
+
pip install -U "vllm>=0.9.0" openai
|
| 98 |
+
```
|
| 99 |
|
| 100 |
+
### Start the Server
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
+
**Hugging Face:**
|
| 103 |
|
| 104 |
+
```bash
|
| 105 |
+
export VLLM_USE_MODELSCOPE=false
|
| 106 |
+
vllm serve TCMLLM/Lingdan-14B-Base \
|
| 107 |
+
--served-model-name Lingdan-14B-Base \
|
| 108 |
+
--host 127.0.0.1 \
|
| 109 |
+
--port 8000 \
|
| 110 |
+
--max-model-len 16384
|
| 111 |
+
```
|
| 112 |
|
| 113 |
+
Replace the repository ID with a local model directory to reuse downloaded files. For two GPUs, append `--tensor-parallel-size 2`. Adjust the 16,384-token context limit (input + output) to available GPU memory.
|
| 114 |
|
| 115 |
+
### Completion Client
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
+
```python
|
| 118 |
+
from openai import OpenAI
|
| 119 |
|
| 120 |
+
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="EMPTY")
|
| 121 |
+
response = client.completions.create(
|
| 122 |
+
model="Lingdan-14B-Base",
|
| 123 |
+
prompt="中医辨证论治的基本特点是",
|
| 124 |
+
max_tokens=512,
|
| 125 |
+
temperature=0.6,
|
| 126 |
+
top_p=0.95,
|
| 127 |
+
extra_body={"top_k": 20},
|
| 128 |
+
)
|
| 129 |
+
print(response.choices[0].text)
|
| 130 |
+
```
|
| 131 |
|
| 132 |
+
`EMPTY` is a placeholder for the local server started without API-key authentication.
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
## Data Privacy and Responsible Use
|
| 135 |
|
| 136 |
+
Lingdan-V2 is for research and does not replace qualified clinical judgment. Private clinical data are not released. Retrospective prescription agreement is not evidence of clinical safety or effectiveness; use de-identified inputs and professional review for any clinical application.
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
## License
|
| 139 |
|
| 140 |
+
Lingdan-V2 model weights and project-owned documentation and images are released under the [Apache License 2.0](https://github.com/TCMAI-BJTU/Lingdan-V2/blob/main/LICENSE). See [NOTICE](https://github.com/TCMAI-BJTU/Lingdan-V2/blob/main/NOTICE) for attribution notices. Third-party data and materials remain subject to their original terms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
## Citation
|
| 143 |
|
| 144 |
+
Cite Lingdan-V2 and the earlier Lingdan work:
|
| 145 |
|
| 146 |
```bibtex
|
| 147 |
@misc{hua2026lingdanv2,
|
|
|
|
| 150 |
year = {2026},
|
| 151 |
url = {https://github.com/TCMAI-BJTU/Lingdan-V2}
|
| 152 |
}
|
| 153 |
+
|
| 154 |
+
@article{hua2024lingdan,
|
| 155 |
+
title={Lingdan: enhancing encoding of traditional Chinese medicine knowledge for clinical reasoning tasks with large language models},
|
| 156 |
+
author={Hua, Rui and Dong, Xin and Wei, Yu and Shu, Zixin and Yang, Pengcheng and Hu, Yunhui and Zhou, Shuiping and Sun, He and Yan, Kaijing and Yan, Xijun and others},
|
| 157 |
+
journal={Journal of the American Medical Informatics Association},
|
| 158 |
+
volume={31},
|
| 159 |
+
number={9},
|
| 160 |
+
pages={2019--2029},
|
| 161 |
+
year={2024},
|
| 162 |
+
publisher={Oxford University Press}
|
| 163 |
+
}
|
| 164 |
```
|
| 165 |
|
| 166 |
## Related Links
|
| 167 |
|
| 168 |
+
[GitHub](https://github.com/TCMAI-BJTU/Lingdan-V2) · [Hugging Face collection](https://huggingface.co/collections/TCMLLM/lingdan-v2) · [ModelScope collection](https://modelscope.cn/collections/TCMAIBJTU/Lingdan-V2) · [LingLan benchmark](https://github.com/TCMAI-BJTU/LingLan)
|
|
|
|
|
|
|
| 169 |
|
| 170 |
+
For task prompts and thinking-mode chat, see the [SFT/R1 guide](https://github.com/TCMAI-BJTU/Lingdan-V2#task-prompts).
|