Llama 3 LEME-DPO-70B
LEME-DPO-70B is an ophthalmology language model developed by the Yale BIDS Chen Lab by applying direct preference optimization to LEME-SFT-70B.
Paper · Code · Training data
| Property | Value |
|---|---|
| Base model | Meta-Llama-3-70B-Instruct |
| Parameters | 70B |
| Training | Supervised fine-tuning followed by direct preference optimization (DPO) |
| Weights | BF16, safetensors |
Training data
The model builds on LEME-SFT-70B and uses preference pairs to refine its responses to ophthalmology and broader biomedical instructions.
Training data: LEME-Training-Data (sft and dpo).
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Yale-BIDS-Chen/LEME-DPO-70B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [{"role": "user", "content": "Explain the difference between dry and wet AMD."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_dict=True, return_tensors="pt"
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Contact
For general inquiries, please contact Hyunjae Kim at hyunjae.kim@yale.edu.
License
LEME code, models, data, and other related materials may be used for non-commercial research purposes. Any derivative works must be made publicly available through a public platform, such as GitHub or Hugging Face. For commercial-use inquiries, please contact us (agreements@yale.edu or qingyu.chen@yale.edu). Please see the LICENSE file for the full terms.
Built with Meta Llama 3. The base model is also subject to the Meta Llama 3 Community License and Acceptable Use Policy.
Citation
@article{kim2026leme,
title={LEME: open large language models for ophthalmology with advanced reasoning and clinical validation},
author={Kim, Hyunjae and Ai, Xuguang and Srinivasan, Sahana and Gilson, Aidan and Singer, Maxwell B and Pushpanathan, Krithi and Xie, Qianqian and Park, Jungwoo and Applebaum, Serina and Yang, Gabriel Dawei and others},
journal={npj Digital Medicine},
year={2026},
publisher={Nature Publishing Group UK, London}
}