Trialmatchai Phi4 Reasoning LoRA
A LoRA adapter for microsoft/phi-4, fine-tuned for the chain-of-thought eligibility-reasoning stage of TrialMatchAI, an end-to-end system that matches patients to the clinical trials they are eligible for.
Model source
- Kind
- Other
- File size
- 163 MB
- Base model
- microsoft/phi-4
- Version
- vRevision 9eaddaf
- Updated
- Oct 20, 2026
- Downloads
- 24
- Source
- Hugging Face
Source description
TrialMatchAI · phi-4 eligibility-reasoning adapter (LoRA)
A LoRA adapter for microsoft/phi-4, fine-tuned for the chain-of-thought eligibility-reasoning stage of TrialMatchAI, an end-to-end system that matches patients to the clinical trials they are eligible for.
Given a patient summary and a trial's eligibility criteria, the adapter reasons over each criterion and labels it (inclusions as Met / Not Met / Unclear / Irrelevant, exclusions as Violated / Not Violated), producing the per-criterion verdicts that drive the final trial ranking and the human-readable explanation of why a patient does or does not qualify.
Usage
TrialMatchAI loads this adapter automatically. Point the reasoning stage at it in config.json:
"cot_adapter_path": "majdabd33/trialmatchai-phi4-reasoning-lora"
It downloads on first use, so no separate model download step is needed. See the TrialMatchAI repository for the full pipeline and configuration.
Training data
Fine-tuned on FreedomIntelligence/medical-o1-reasoning-SFT, a medical chain-of-thought reasoning dataset.
Base model and license
This is an adapter of microsoft/phi-4 (MIT). For research and informational use only. It is not
medical advice, not a medical device, and must not replace review by qualified healthcare professionals.
Citation
Abdallah, M. et al. TrialMatchAI: an end-to-end AI-powered clinical trial recommendation system to streamline patient-to-trial matching. Nature Communications 17, 4472 (2026). https://doi.org/10.1038/s41467-026-70509-w
Sources
1 source
Sources
1 sourceVerified Oct 20
Model artifacts
1 artifact
Model artifacts
1 artifactadapter_model.safetensors
safetensors · 163 MB · SHA-256 f9665b6540cb…0b15 · Hugging Face
Download fileSource excerpts
3 excerpts
Source excerpts
3 excerpts--- base_model: microsoft/phi-4 library_name: peft pipeline_tag: text-generation license: mit datasets: - FreedomIntelligence/medical-o1-reasoning-SFT tags: - clinical-trials - patient-matching - eligibility - lora - trialmatchai --- # TrialMatchAI · phi-4 eligibility-reasoning adapter (LoRA) A LoRA adapter for [microsoft/phi-4](https://huggingface.co/microsoft/phi-4), fine-tuned for the chain-of-thought **eligibility-reasoning** stage of [TrialMatchAI](https://github.com/cbib/TrialMatchAI), an end-to-end system that matches patients to the clinical trials they are eligible for. Given a patient summary and a trial's eligibility criteria, the adapter reasons over each criterion and labels it (inclusions as Met / Not Met / Unclear / Irrelevant, exclusions as Violated / Not Violated), producing the per-criterion verdicts that drive the final trial ranking and the human-readable explanation of why a patient does or does not qualify. ## Usage TrialMatchAI loads this adapter automatically. Point the reasoning stage at it in `config.json`: ```json "cot_adapter_path": "majdabd33/trialmatchai-phi4-reasoning-lora" ``` It downloads on first use, so no separate model download step is needed. See the [TrialMatchAI repository](https://github.com/cbib/TrialMatchAI) for the full pipeline and configuration. ## Training data Fine-tuned on [FreedomIntelligence/medical-o1-reasoning-SFT](https://huggingface.co/datasets/FreedomIntelligence/medical-o1-reasoning-SFT), a medical chain-of-thought reasoning dataset. ## Base model and license This is an adapter of `microsoft/phi-4` (MIT). For **research and informational use only**. It is not medical advice, not a medical device, and must not replace review by qualified healthcare professionals. ## Citation > Abdallah, M. *et al.* TrialMatchAI: an end-to-end AI-powered clinical trial recommendation system to > streamline patient-to-trial matching. *Nature Communications* **17**, 4472 (2026). > https://doi.org/10.1038/s41467-026-70509-w
Source context: 24 downloads · 1 likes · Pipeline text-generation · Library peft · Repo majdabd33/trialmatchai-phi4-reasoning-lora
Source context: 71 downloads · 0 likes · Pipeline text-generation · Library peft · Repo majdabd33/trialmatchai-phi4-reasoning-lora
