基於開放原始碼醫療資料集,微調 Llama 2 模型以回答醫療問題。

7b

47.7K 16 個月前

說明文件

MedLlama2 由 Siraj Raval 開發,是以 Llama 2 為基礎的模型,使用MedQA 資料集訓練而成,能夠針對醫療問題提供解答。本模型並非旨在取代醫療專業人員,而是為進一步研究提供起點。

CLI

開啟終端機並執行 ollama run medllama2

API

範例

curl -X POST http://localhost:11434/api/generate -d '{
  "model": "medllama2",
  "prompt":"A 35-year-old woman presents with a persistent dry cough, shortness of breath, and fatigue. She is initially suspected of having asthma, but her spirometry results do not improve with bronchodilators. What could be the diagnosis?"
 }'

記憶體需求

  • 7b 模型通常至少需要 8GB 的 RAM

參考文獻

llSourcell