Huatuo Llama Med Chinese

Repo for BenTsao [original name: HuaTuo (华驼)], Instruction-tuning Large Language Models with Chinese Medical Knowledge. 本草(原名:华驼)模型仓库,基于中文医学知识的大语言模型指令微调
Alternatives To Huatuo Llama Med Chinese
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Huatuo Llama Med Chinese3,776
a month ago14apache-2.0Python
Repo for BenTsao [original name: HuaTuo (华驼)], Instruction-tuning Large Language Models with Chinese Medical Knowledge. 本草(原名:华驼)模型仓库,基于中文医学知识的大语言模型指令微调
Awesome_chinese_medical_nlp1,411
10 months ago
中文医学NLP公开资源整理:术语集/语料库/词向量/预训练模型/知识图谱/命名实体识别/QA/信息抽取/模型/论文/etc
Med Chatglm462
6 months ago16apache-2.0Python
Repo for Chinese Medical ChatGLM 基于中文医学知识的ChatGLM指令微调
Chinese Nlp Corpus378
3 years ago1Python
Collections of Chinese NLP corpus
Chineseblue212
2 years ago3apache-2.0Python
Chinese Biomedical Language Understanding Evaluation benchmark (ChineseBLUE)
Medical Books131
5 years ago1TeX
Open sourece medical books in LaTeX. LaTeX写的中文开源医学书籍
Covid Dialogue110
2 years ago4Python
Find Chinese Medical Words53
3 years ago1mitPython
发现新词 无监督词库生成 医学词库生成 发现未登录词
Cmedqa251
5 years agogpl-3.0
This is updated version of the dataset for Chinese community medical question answering.
Cmedqa36
4 years ago3
This is the dataset for Chinese community medical question answering.
Alternatives To Huatuo Llama Med Chinese
Select To Compare


Alternative Project Comparisons
Readme

**** | English

SCIR-HI-HuaTuo

[(HuaTuo)]:

BenTsao (original name: HuaTuo): Instruction-tuning Large Language Models With Chinese Medical Knowledge

Code License Python 3.9+

/(Instruction-tuning) LLaMAAlpaca-ChineseBloom

ChatGPT API

News

[2023/09/24]

[2023/09/12]arxiv

[2023/09/08]arxiv

[2023/08/07]

[2023/08/05] CCL 2023 Demo TrackPoster

[2023/08/03] SCIR

[2023/07/19] Bloom

[2023/05/12] """"

[2023/04/28] Alpaca

[2023/04/24] LLaMA

[2023/03/31] LLaMA

A Quick Start

python3.9+

pip install -r requirements.txt

LoRA

LoRA

LoRAHugging Face

  1. LoRA
  1. BloomLoRA
  1. AlpacaLoRA
  1. LLaMALoRA

LoRA

**lora-folder-name**/
 - adapter_config.json  # LoRA
 - adapter_model.bin  # LoRA

ChatGLM: ChatGLM-6B-Med

Infer

./data/infer.json

infer

#
bash ./scripts/infer.sh

#
#
bash ./scripts/infer-literature-single.sh

#
bash ./scripts/infer-literature-multi.sh

infer.shbase_modelloralora_weightsinstruct_dir

python infer.py \
	    --base_model 'BASE_MODEL_PATH' \
	    --lora_weights 'LORA_WEIGHTS_PATH' \
	    --use_lora True \
	    --instruct_dir 'INFER_DATA_PATH' \
	    --prompt_template 'TEMPLATE_PATH'

__

&Bloom LLaMA&Alpaca
templates/bloom_deploy.json templates/med_template.json
templates/literature_template.json

./scripts/test.sh

cMeKG

:


{"": "", "": ["", ""], "": ["", "", ""], "": ["", ""], "": [""]}

GPT3.5Prompt


""

: "

2023GPT3.5./data_literature/liver_cancer.json1k``

SCIR-HI-HuaTuo-literature

""16

Finetune

./data/llama_data.json

finetune


bash ./scripts/finetune.sh

LLaMAA100-SXM-80GB102h17mbatch_size=12840G3090/4090(24GB)batch_size

wandb:

https://wandb.ai/thinksoso/llama_med/runs/a5wgcnzt/overview?workspace=user-thinksoso

20233

Llama Alpaca BenTsao
****
****
****

  1. Q: ""

    A: SCIR""

  2. Q: """"

    A: LLaMAAlpaca

  3. Q:

    A:

  4. Q:

    A: LLaMAAlpacabloom-based-based

  5. Q: /

    A: requirementscudalorallama-basedllamaloraissue

  6. Q:

    A:

Citation

: Huatuo: Tuning llama model with chinese medical knowledge

@misc{wang2023huatuo,
   title={HuaTuo: Tuning LLaMA Model with Chinese Medical Knowledge},
   author={Haochun Wang and Chi Liu and Nuwa Xi and Zewen Qiang and Sendong Zhao and Bing Qin and Ting Liu},
   year={2023},
   eprint={2304.06975},
   archivePrefix={arXiv},
   primaryClass={cs.CL}
}

Knowledge-tuning Large Language Models with Structured Medical Knowledge Bases for Reliable Response Generation in Chinese

@misc{wang2023knowledgetuning,
      title={Knowledge-tuning Large Language Models with Structured Medical Knowledge Bases for Reliable Response Generation in Chinese}, 
      author={Haochun Wang and Sendong Zhao and Zewen Qiang and Zijian Li and Nuwa Xi and Yanrui Du and MuZhen Cai and Haoqiang Guo and Yuhan Chen and Haoming Xu and Bing Qin and Ting Liu},
      year={2023},
      eprint={2309.04175},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

The CALLA Dataset: Probing LLMs Interactive Knowledge Acquisition from Chinese Medical Literature

@misc{du2023calla,
      title={The CALLA Dataset: Probing LLMs' Interactive Knowledge Acquisition from Chinese Medical Literature}, 
      author={Yanrui Du and Sendong Zhao and Muzhen Cai and Jianyu Chen and Haochun Wang and Yuhan Chen and Haoqiang Guo and Bing Qin},
      year={2023},
      eprint={2309.04198},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
Popular Medical Projects
Popular Chinese Projects
Popular Science Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Nlp
Chinese
Medical