codybum commited on
Commit
09e8ada
1 Parent(s): 24ae61f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -3
README.md CHANGED
@@ -6,12 +6,114 @@ library_name: transformers
6
  ---
7
  # Model Card MELT-Mixtral-8x7B-Instruct-v0.1
8
 
9
- Medical Education Language Transformer (MELT)
10
 
 
11
 
12
- # Disclaimer:
13
 
14
- The use of large language models, such as this one, is provided without warranties or guarantees of any kind. While every effort has been made to ensure accuracy, completeness, and reliability of the information generated, it should be noted that these models may produce responses that are inaccurate, outdated, or inappropriate for specific purposes. Users are advised to exercise discretion and judgment when relying on the information generated by these models. The outputs should not be considered as professional, legal, medical, financial, or any other form of advice. It is recommended to seek expert advice or consult appropriate sources for specific queries or critical decision-making. The creators, developers, and providers of these models disclaim any liability for damages, losses, or any consequences arising from the use, reliance upon, or interpretation of the information provided by these models. The user assumes full responsibility for their interactions and usage of the generated content. By using these language models, users agree to indemnify and hold harmless the developers, providers, and affiliates from any claims, damages, or liabilities that may arise from their use. Please be aware that these models are constantly evolving, and their capabilities, limitations, and outputs may change over time without prior notice. Your use of this language model signifies your acceptance and understanding of this disclaimer.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
 
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
 
6
  ---
7
  # Model Card MELT-Mixtral-8x7B-Instruct-v0.1
8
 
9
+ The MELT-Mixtral-8x7B-Instruct-v0.1 Large Language Model (LLM) is a pretrained generative text model pre-trained and fine-tuned on using publically avalable medical data.
10
 
11
+ MELT-Mixtral-8x7B-Instruct-v0.1 is 68.2% accurate across 3 USMLE benchmarks, surpassing the pass mark (>60%) in the U.S. Medical Licensing Examination (USMLE) style questions.
12
 
13
+ ## Model Details
14
 
15
+ The Medical Education Language Transformer (MELT) models have been trained on a wide-range of text, chat, Q/A, and instruction data in the medical domain.
16
+
17
+ While the model was evaluated using publically avalable [USMLE](https://www.usmle.org/) example questions, its use it intented to be more broadly applicable.
18
+
19
+ ### Model Description
20
+
21
+ <!-- Provide a longer summary of what this model is. -->
22
+
23
+ - **Developed by:** [Center for Applied AI](https://caai.ai.uky.edu/)
24
+ - **Funded by:** [Institute or Biomedical Informatics](https://www.research.uky.edu/IBI)
25
+ - **Model type:** [More Information Needed]
26
+ - **Language(s) (NLP):** English
27
+ - **License:** Apache 2.0
28
+ - **Finetuned from model:** [Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1)
29
+
30
+
31
+ ## Uses
32
+
33
+ MELT is intended for research purposes only. MELT models are best suited for prompts using a QA or chat format.
34
+
35
+ ### Out-of-Scope Use
36
+
37
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
38
+ MELT is intended for research purposes only and should not be used for medical advice.
39
+
40
+ ## Bias, Risks, and Limitations
41
+
42
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
43
+ MELT was training using collections publicly available, which likely contain biased and inaccurate information. The training and evaluation datasets have not been evaluated for content or accuracy.
44
+
45
+ ## How to Get Started with the Model
46
+
47
+ Use this model like you would the Mixtral-8x7B-Instruct-v0.1 model.
48
+
49
+ ## Training Details
50
+
51
+ ### Training Data
52
 
53
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
54
+ The following datasets were used for training:
55
 
56
+ [Expert Med](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/Q3A969)
57
+ [MedQA train](https://huggingface.co/datasets/bigbio/med_qa)
58
+ [MedMCQA train](https://github.com/MedMCQA/MedMCQA?tab=readme-ov-file#data-download-and-preprocessing)
59
+ [LiveQA](https://github.com/abachaa/LiveQA_MedicalTask_TREC2017)
60
+ [MedicationQA](https://huggingface.co/datasets/truehealth/medicationqa)
61
+ [MMLU clinical topics](https://huggingface.co/datasets/Stevross/mmlu)
62
+ [Medical Flashcards](https://huggingface.co/datasets/medalpaca/medical_meadow_medical_flashcards)
63
+ [Wikidoc](https://huggingface.co/datasets/medalpaca/medical_meadow_wikidoc)
64
+ [Wikidoc Patient Information](https://huggingface.co/datasets/medalpaca/medical_meadow_wikidoc_patient_information)
65
+ [MEDIQA](https://huggingface.co/datasets/medalpaca/medical_meadow_mediqa)
66
+ [MMMLU](https://huggingface.co/datasets/medalpaca/medical_meadow_mmmlu)
67
+ [icliniq 10k](https://drive.google.com/file/d/1ZKbqgYqWc7DJHs3N9TQYQVPdDQmZaClA/view?usp=sharing)
68
+ [HealthCare Magic 100k](https://drive.google.com/file/d/1lyfqIwlLSClhgrCutWuEe_IACNq6XNUt/view?usp=sharing)
69
+ [GenMedGPT-5k](https://drive.google.com/file/d/1nDTKZ3wZbZWTkFMBkxlamrzbNz0frugg/view?usp=sharing)
70
+ [Mental Health Conversational](https://huggingface.co/datasets/heliosbrahma/mental_health_conversational_dataset)
71
+
72
+ ### Training Procedure
73
+
74
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
75
+
76
+ #### Training Hyperparameters
77
+
78
+ - **Lora Rank:** 64
79
+ - **Lora Alpha:** 16
80
+ - **Lora Targets:** "o_proj","down_proj","v_proj","gate_proj","up_proj","k_proj","q_proj"
81
+ - **LR:** 2e-4
82
+ - **Epoch:** 3
83
+ - **Precision:** bf16 <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
84
+
85
+ ## Evaluation
86
+
87
+ <!-- This section describes the evaluation protocols and provides the results. -->
88
+
89
+ MELT-Mixtral-8x7B-Instruct-v0.1 demonstrated a average 4.42% improvement over Mixtral-8x7B-Instruct-v0.1 across 3 USMLE benchmarks.
90
+ The base Mixtral-8x7B-Instruct-v0.1 model already performs signifigantly better (65.31%) than the base [llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) model (35.26%) and our [MELT-llama-2-7b-chat-v0.1](https://huggingface.co/IBI-CAAI/MELT-llama-2-7b-chat-v0.1) model (46.33%).
91
+
92
+ While there was limited improvement on the USMLE benchmarks, our training data contained a broad collection of medical text, chats, and multi-choice questions that would not be captured on the USMLE evaluation.
93
+
94
+
95
+ ### Mixtral-8x7B-Instruct-v0.1
96
+ - **medqa:** {'base': {'Average': 62.0, 'STEP-1': 62.24, 'STEP-2&3': 61.72}}
97
+ - **mausmle:** {'base': {'Average': 73.12, 'STEP-1': 68.24, 'STEP-2': 78.16, 'STEP-3': 72.9}}
98
+ - **medmcqa:** {'base': {'Average': 60.82, 'MEDICINE': 56.52, 'OPHTHALMOLOGY': 59.52, 'ANATOMY': 62.33, 'PATHOLOGY': 70.93, 'PHYSIOLOGY': 65.91, 'DENTAL': 52.37, 'RADIOLOGY': 66.07, 'BIOCHEMISTRY': 75.21, 'ANAESTHESIA': 73.91, 'GYNAECOLOGY': 55.56, 'PHARMACOLOGY': 74.72, 'SOCIAL': 50.0, 'PEDIATRICS': 60.61, 'ENT': 73.68, 'SURGERY': 61.69, 'MICROBIOLOGY': 61.64, 'FORENSIC': 69.77, 'PSYCHIATRY': 77.78, 'SKIN': 60.0, 'ORTHOPAEDICS': 71.43, 'UNKNOWN': 100.0}}
99
+ - **average:** 65.31%
100
+
101
+ ### MELT-Mixtral-8x7B-Instruct-v0.1
102
+ - **medqa:** {'base': {'Average': 67.19, 'STEP-1': 67.55, 'STEP-2&3': 66.78}}
103
+ - **mausmle:** {'base': {'Average': 73.84, 'STEP-1': 74.12, 'STEP-2': 75.86, 'STEP-3': 71.96}}
104
+ - **medmcqa:** {'base': {'Average': 63.58, 'MEDICINE': 63.04, 'OPHTHALMOLOGY': 66.67, 'ANATOMY': 67.12, 'PATHOLOGY': 72.48, 'PHYSIOLOGY': 67.42, 'DENTAL': 54.15, 'RADIOLOGY': 71.43, 'BIOCHEMISTRY': 80.17, 'ANAESTHESIA': 69.57, 'GYNAECOLOGY': 60.13, 'PHARMACOLOGY': 74.16, 'SOCIAL': 56.67, 'PEDIATRICS': 65.15, 'ENT': 65.79, 'SURGERY': 64.92, 'MICROBIOLOGY': 64.38, 'FORENSIC': 65.12, 'PSYCHIATRY': 88.89, 'SKIN': 70.0, 'ORTHOPAEDICS': 78.57, 'UNKNOWN': 100.0}}
105
+ - **average:** 68.2%
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+ [MedQA test](https://huggingface.co/datasets/bigbio/med_qa)
113
+ [MedMCQA test](https://github.com/MedMCQA/MedMCQA?tab=readme-ov-file#data-download-and-preprocessing)
114
+ [MA USMLE](https://huggingface.co/datasets/medalpaca/medical_meadow_usmle_self_assessment)
115
+
116
+ ## Disclaimer:
117
+
118
+ The use of large language models, such as this one, is provided without warranties or guarantees of any kind. While every effort has been made to ensure accuracy, completeness, and reliability of the information generated, it should be noted that these models may produce responses that are inaccurate, outdated, or inappropriate for specific purposes. Users are advised to exercise discretion and judgment when relying on the information generated by these models. The outputs should not be considered as professional, legal, medical, financial, or any other form of advice. It is recommended to seek expert advice or consult appropriate sources for specific queries or critical decision-making. The creators, developers, and providers of these models disclaim any liability for damages, losses, or any consequences arising from the use, reliance upon, or interpretation of the information provided by these models. The user assumes full responsibility for their interactions and usage of the generated content. By using these language models, users agree to indemnify and hold harmless the developers, providers, and affiliates from any claims, damages, or liabilities that may arise from their use. Please be aware that these models are constantly evolving, and their capabilities, limitations, and outputs may change over time without prior notice. Your use of this language model signifies your acceptance and understanding of this disclaimer.
119