SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.09089 · 2023

Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.09089.json · badge: /api/ran/2310.09089.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
williamliujl/Qilin-Med canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from Caiyun-AI/DCFormer
pointer only · get_code("8a38d7c525fad8f1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_metrics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from Caiyun-AI/DCFormer
pointer only · get_code("6b376a0abe58a427")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_all_linear_names Ran
ran; our contract draft was wrong, not the code
williamliujl/Qilin-Med/scripts/supervised_finetuning.py
pointer only (licence: NONE) · get_code("7e7adc82abe38ce7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, williamliujl/Qilin-Med when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_logits_for_metrics Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from ymcui/chinese-llama-alpaca
pointer only · get_code("d2895bdf14e8f94f")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

return_prompt_and_responses Ran
ran; our contract draft was wrong, not the code
williamliujl/Qilin-Med/scripts/dpo_training.py
pointer only (licence: NONE) · get_code("d0e3267968fb680a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, williamliujl/Qilin-Med when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_conv_template Not yet run
unverified (harvested, no recorded run)
williamliujl/Qilin-Med/scripts/supervised_finetuning.py
pointer only (licence: NONE) · get_code("6cd4acc9be416d47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, williamliujl/Qilin-Med when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 4 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
preprocess_logits_for_metrics 7 other papers
2 dated earlier, 1 the same month, 4 later
2010.11934 (2020-10)
mT5: A massively multilingual pre-trained text-to-text transformer
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2310.17230 (2023-10)
Codebook Features: Sparse and Discrete Interpretability for Neural Networks
and 4 more not named here
accuracy 5 other papers
1 dated earlier, 4 later
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2402.16445 (2024-02)
ProLLaMA: A Protein Large Language Model for Multi-Task Protein Language Processing
2403.19928 (2024-03)
DiJiang: Efficient Large Language Models through Compact Kernelization
and 2 more not named here
compute_metrics 3 other papers
1 dated earlier, 2 later
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2402.16445 (2024-02)
ProLLaMA: A Protein Large Language Model for Multi-Task Protein Language Processing
2405.08553 (2024-05)
Improving Transformers with Dynamically Composable Multi-Head Attention
find_all_linear_names 1 other paper
1 later
2403.07691 (2024-03)
ORPO: Monolithic Preference Optimization without Reference Model

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Integrating large language models (LLMs) into healthcare holds great potential but faces challenges. Pre-training LLMs from scratch for domains like medicine is resource-heavy and often unfeasible. On the other hand, sole reliance on Supervised Fine-tuning (SFT) can result in overconfident predictions and may not tap into domain-specific insights. In response, we present a multi-stage training method combining Domain-specific Continued Pre-training (DCPT), SFT, and Direct Preference Optimization (DPO). In addition, we publish a 3Gb Chinese Medicine (ChiMed) dataset, encompassing medical question answering, plain texts, knowledge graphs, and dialogues, segmented into three training stages. The medical LLM trained with our pipeline, Qilin-Med, shows substantial performance improvement. In the CPT and SFT phases, Qilin-Med achieved 38.4% and 40.0% accuracy on the CMExam test set, respectively. It outperformed the basemodel Baichuan-7B (accuracy: 33.5%), by 7.5%. In the DPO phase, it scored 16.66 in BLEU-1 and 27.44 in ROUGE-1 on the Huatuo-26M test set, bringing further improvement to the SFT phase (12.69 in BLEU-1 and 24.21 in ROUGE-1). Additionally, we have further enhanced the model's performance through the Retrieval Augmented Generation (RAG) approach. Experiments demonstrate that Qilin-Med-RAG achieves an accuracy rate of 42.8% on CMExam. These results highlight the contribution of our novel training approach in building LLMs for medical applications.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.09089")
get_code_for_paper("2310.09089")
have("2310.09089")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.09089.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.09089.svg)](https://syntology.ai/paper/2310.09089)

Connect an agent — have() is free.