Instructions to use majdabd33/trialmatchai-phi4-reasoning-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use majdabd33/trialmatchai-phi4-reasoning-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-4") model = PeftModel.from_pretrained(base_model, "majdabd33/trialmatchai-phi4-reasoning-lora") - Notebooks
- Google Colab
- Kaggle
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
- Downloads last month
- 1
Model tree for majdabd33/trialmatchai-phi4-reasoning-lora
Base model
microsoft/phi-4