Built for the
MedGemma Impact Challenge on Kaggle. Part of the
Clarke clinical documentation system.
The adapter was evaluated against FHIR-aligned gold-standard NHS clinic letters across five patients. The base model with optimised prompting outperformed the adapter at this data scale (n=5):
This result is consistent with the literature on fine-tuning large language models with very small datasets. The adapter demonstrates the fine-tuning pipeline and would benefit from a larger clinical corpus (50-200+ examples). Full evaluation methodology is in the
Clarke evaluation report.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained("google/medgemma-27b-text-it")
5model = PeftModel.from_pretrained(base_model, "yashvshetty/clarke-medgemma-27b-lora")