Views
No views yet
medalpaca-7b is a large language model specifically fine-tuned for medical domain tasks.
It is based on LLaMA (Large Language Model Meta AI) and contains 7 billion parameters.
The primary goal of this model is to improve question-answering and medical dialogue tasks.
Architecture| Source | n items |
|---|---|
| ChatDoc large | 200000 |
| wikidoc | 67704 |
| Stackexchange academia | 40865 |
| Anki flashcards | 33955 |
| Stackexchange biology | 27887 |
| Stackexchange fitness | 9833 |
| Stackexchange health | 7721 |
| Wikidoc patient information | 5942 |
| Stackexchange bioinformatics | 5407 |
1
2from transformers import pipeline
3
4pl = pipeline("text-generation", model="medalpaca/medalpaca-7b", tokenizer="medalpaca/medalpaca-7b")
5question = "What are the symptoms of diabetes?"
6context = "Diabetes is a metabolic disease that causes high blood sugar. The symptoms include increased thirst, frequent urination, and unexplained weight loss."
7answer = pl(f"Context: {context}\n\nQuestion: {question}\n\nAnswer: ")
8print(answer)| Metric | Value |
|---|---|
| Avg. | 44.98 |
| ARC (25-shot) | 54.1 |
| HellaSwag (10-shot) | 80.42 |
| MMLU (5-shot) | 41.47 |
| TruthfulQA (0-shot) | 40.46 |
| Winogrande (5-shot) | 71.19 |
| GSM8K (5-shot) | 3.03 |
| DROP (3-shot) | 24.21 |