Upload LoRA adapter for medical domain
Browse files- README.md +31 -0
- adapter_config.json +32 -0
- adapter_model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
3 |
+
tags:
|
4 |
+
- peft
|
5 |
+
- lora
|
6 |
+
- federated-learning
|
7 |
+
- flower
|
8 |
+
- medical
|
9 |
+
---
|
10 |
+
|
11 |
+
# FlowerTune Medical LoRA Model
|
12 |
+
|
13 |
+
This is a LoRA adapter for Qwen/Qwen2.5-7B-Instruct fine-tuned with Flower federated learning framework on medical NLP datasets.
|
14 |
+
|
15 |
+
## Model Performance
|
16 |
+
- PubMedQA: 0.6515
|
17 |
+
- MedMCQA: 0.5680
|
18 |
+
- MedQA: 0.6515
|
19 |
+
- CareQA: 0.5546
|
20 |
+
- Average: 0.6064
|
21 |
+
|
22 |
+
## Training Details
|
23 |
+
- Domain: Medical
|
24 |
+
- Training method: Federated LoRA fine-tuning with FlowerTune
|
25 |
+
- Framework: Flower
|
26 |
+
|
27 |
+
This model is a LoRA adapter fine-tuned on Qwen/Qwen2.5-7B-Instruct using the Flower federated learning framework. It was trained on medical NLP datasets through distributed learning. The model achieved scores of PubMedQA: 0.6515, MedMCQA: 0.5680, MedQA: 0.6515, CareQA: 0.5546, with an average score of 0.6064.
|
28 |
+
|
29 |
+
## Links
|
30 |
+
- FlowerTune Homepage: [https://huggingface.co/zjudai/FlowerTune](https://huggingface.co/zjudai/FlowerTune)
|
31 |
+
- FlowerTune Collection: [https://huggingface.co/collections/zjudai/flowertune-lora-collection-67ecd5d0dae6145cbf798439](https://huggingface.co/collections/zjudai/flowertune-lora-collection-67ecd5d0dae6145cbf798439)
|
adapter_config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-7B-Instruct",
|
5 |
+
"bias": "none",
|
6 |
+
"eva_config": null,
|
7 |
+
"exclude_modules": null,
|
8 |
+
"fan_in_fan_out": false,
|
9 |
+
"inference_mode": true,
|
10 |
+
"init_lora_weights": true,
|
11 |
+
"layer_replication": null,
|
12 |
+
"layers_pattern": null,
|
13 |
+
"layers_to_transform": null,
|
14 |
+
"loftq_config": {},
|
15 |
+
"lora_alpha": 64,
|
16 |
+
"lora_bias": false,
|
17 |
+
"lora_dropout": 0.075,
|
18 |
+
"megatron_config": null,
|
19 |
+
"megatron_core": "megatron.core",
|
20 |
+
"modules_to_save": null,
|
21 |
+
"peft_type": "LORA",
|
22 |
+
"r": 32,
|
23 |
+
"rank_pattern": {},
|
24 |
+
"revision": null,
|
25 |
+
"target_modules": [
|
26 |
+
"v_proj",
|
27 |
+
"q_proj"
|
28 |
+
],
|
29 |
+
"task_type": "CAUSAL_LM",
|
30 |
+
"use_dora": false,
|
31 |
+
"use_rslora": false
|
32 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9fc43d6dfd3ef1397005462e9585634e8f53eac4c7de737cd248f3de02dd477f
|
3 |
+
size 40385208
|