File size: 3,278 Bytes
c8a5fec
 
302a60d
 
 
 
 
 
c8a5fec
302a60d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcb8982
 
 
 
 
 
 
302a60d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
license: cc
language:
- en
library_name: transformers
pipeline_tag: text-generation
tags:
- medical
---
# Medguanaco LoRA 65b GPTQ


## Table of Contents

[Model Description](#model-description)  
- [Architecture](#architecture)    
- [Training Data](#trainig-data)  
[Model Usage](#model-usage)  
[Limitations](#limitations)  

## Model Description
### Architecture
`nmitchko/medguanaco-lora-65b-GPTQ` is a large language model specifically fine-tuned for medical domain tasks.
It is based on the Guanaco LORA of LLaMA weighing in at 65B parameters. 
The primary goal of this model is to improve question-answering and medical dialogue tasks.
It was trained using [LoRA](https://arxiv.org/abs/2106.09685) and quantized, to reduce memory footprint. 

Steps to load this model:
1. Load Guanaco-65-GPTQ https://huggingface.co./TheBloke/guanaco-65B-GPTQ
    * I recommend using text-generation-ui to test it out: https://github.com/oobabooga/text-generation-webui/tree/main
2. Download this LoRA and apply it to the model
3. ensure `--monkey-path` is enabled in the text-generation-ui, 4-bit instructions [here](https://github.com/oobabooga/text-generation-webui/blob/main/docs/GPTQ-models-(4-bit-mode).md)

---

> The following README is taken from the source page [medalpaca](https://huggingface.co./medalpaca/medalpaca-lora-13b-8bit)

### Training Data
The training data for this project was sourced from various resources. 
Firstly, we used Anki flashcards to automatically generate questions, 
from the front of the cards and anwers from the back of the card. 
Secondly, we generated medical question-answer pairs from [Wikidoc](https://www.wikidoc.org/index.php/Main_Page). 
We extracted paragraphs with relevant headings, and used Chat-GPT 3.5 
to generate questions from the headings and using the corresponding paragraphs 
as answers. This dataset is still under development and we believe 
that approximately 70% of these question answer pairs are factual correct. 
Thirdly, we used StackExchange to extract question-answer pairs, taking the 
top-rated question from five categories: Academia, Bioinformatics, Biology, 
Fitness, and Health. Additionally, we used a dataset from [ChatDoctor](https://arxiv.org/abs/2303.14070) 
consisting of 200,000 question-answer pairs, available at https://github.com/Kent0n-Li/ChatDoctor.

| 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   |


## Limitations
The model may not perform effectively outside the scope of the medical domain.
The training data primarily targets the knowledge level of medical students, 
which may result in limitations when addressing the needs of board-certified physicians.
The model has not been tested in real-world applications, so its efficacy and accuracy are currently unknown. 
It should never be used as a substitute for a doctor's opinion and must be treated as a research tool only.