Instructions to use ksg-dfci/MatchEval-1226 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ksg-dfci/MatchEval-1226 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ksg-dfci/MatchEval-1226", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("ksg-dfci/MatchEval-1226", trust_remote_code=True) model = AutoModel.from_pretrained("ksg-dfci/MatchEval-1226", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
MatchEval-1226
MatchEval-1226 is the decision model of the MatchMiner-AI 1226 release (collection). Given a cancer patient's summary and a clinical trial cohort, it answers yes/no questions about the pair. Each answer is the probability of yes, read in one forward pass. It is a full fine-tune of LiquidAI/d1-2B on synthetic data only, and replaces the 0526 release's TrialChecker and BoilerplateChecker.
Research use only. Its answers rank and screen patient–trial pairs for review by clinicians and trial teams. They are not eligibility determinations, diagnoses or treatment recommendations; every pair still needs review against the complete, current protocol.
Questions
All seven question families are yes/no:
| Family | Yes means |
|---|---|
| Reasonableness | The patient is potentially eligible (no means clearly ineligible) |
| Cancer type, disease burden, treatment history, biomarkers | The cohort specifically requires that dimension and the patient documentedly satisfies it |
| Boilerplate exclusions | The patient is potentially eligible given the cohort's common exclusions and the patient's other history |
| Per-criterion | The patient does not clearly fail the criteria line (no: an inclusion line clearly not met, or an exclusion line clearly met) |
The state (the patient's summary and the cohort's criteria) and the questions are rendered by the matchminer_ai
package, which owns their text; MatchEval-1226 expects exactly those renderings.
Use
With the matchminer_ai package, point the decision model at this repository:
from matchminer_ai import load_default_preset, score_match_quality
config = load_default_preset()
config.raw["decision_model"].update(model_name="ksg-dfci/MatchEval-1226",
revision="7040834b637353d55ffc3a3944e52359244c2252")
# A Hub model must be pinned to a commit (the checkpoint's own code runs).
# Then call score_match_quality, exclusion_criteria_check or check_eligibility_criteria with this config.
Loading uses trust_remote_code=True (the System One code shipped with the base model and copied here). The model
runs in-process with Transformers in bfloat16; vLLM does not serve this architecture.
Training
- Data: ksg-dfci/mmai-synthetic-1226: 5,000 ClinicalTrials.gov cancer treatment trials with synthetic protocols and cohorts, and 87,890 synthetic patients.
- Labels: a teacher LLM (NVIDIA Nemotron 3.5 Super) labeled candidate pairs from three TrialSpace mining rounds:
- 0–6 match scores for five questions;
- boilerplate-exclusion answers;
- per-criterion answers for a sample of pairs.
- Size: 16.9 million examples, from about 8.5 million match states, 8.4 million boilerplate states and 85,000 per-criterion states.
- Method: a full fine-tune with Transformers' Trainer for one epoch, learning rate 1e-5, effective batch 256,
inputs up to 10,000 tokens.
- Questions are packed after their state.
- The loss is the yes/no cross-entropy at each answer slot only.
- No real patient data were used in training.
decision_contract.json records the training contract and the model's fingerprint.
Limitations
- Trained on synthetic patients and trial text. Performance at a given institution needs local evaluation; no evaluation results are published with this release.
- Answers depend on the summaries and criteria given. Facts missing from a summary cannot be weighed, and per-criterion answers are screening aids, not adjudication.
License
The LFM Open License v1.0 (LICENSE), as for the base model, with its commercial-use limitation; see NOTICE.md.
- Downloads last month
- 37