valeriojob commited on
Commit
39677fd
1 Parent(s): 0cf6af4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -7
README.md CHANGED
@@ -7,17 +7,64 @@ tags:
7
  - text-generation-inference
8
  - transformers
9
  - unsloth
10
- - gemma2
11
  - trl
12
  - sft
13
  ---
14
 
15
- # Uploaded model
16
 
17
- - **Developed by:** valeriojob
18
- - **License:** apache-2.0
19
- - **Finetuned from model :** unsloth/gemma-2-9b
 
20
 
21
- This gemma2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
22
 
23
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  - text-generation-inference
8
  - transformers
9
  - unsloth
10
+ - llama
11
  - trl
12
  - sft
13
  ---
14
 
15
+ # MedGPT-Gemma2-9B-v.1
16
 
17
+ - This model is a fine-tuned version of [unsloth/gemma-2-9b](https://huggingface.co/unsloth/gemma-2-9b) on an dataset created by [Valerio Job](https://huggingface.co/valeriojob) together with GPs based on real medical data.
18
+ - Version 1 (v.1) of MedGPT is the very first version of MedGPT and the training dataset has been kept simple and small with only 60 examples.
19
+ - This repo includes the 16bit format of the model as well as the LoRA adapters of the model. There is a separate repo called [valeriojob/MedGPT-Gemma2-9B-BA-v.1-GGUF](https://huggingface.co/valeriojob/MedGPT-Gemma2-9B-BA-v.1-GGUF) that includes the quantized versions of this model in GGUF format.
20
+ - This model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
+ ## Model description
23
 
24
+ This model acts as a supplementary assistance to GPs helping them in medical and admin tasks.
25
+
26
+ ## Intended uses & limitations
27
+
28
+ The fine-tuned model should not be used in production! This model has been created as a initial prototype in the context of a bachelor thesis.
29
+
30
+ ## Training and evaluation data
31
+
32
+ The dataset (train and test) used for fine-tuning this model can be found here: [datasets/valeriojob/BA-v.1](https://huggingface.co/datasets/valeriojob/BA-v.1)
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - per_device_train_batch_size = 2,
40
+ - gradient_accumulation_steps = 4,
41
+ - warmup_steps = 5,
42
+ - max_steps = 60,
43
+ - learning_rate = 2e-4,
44
+ - fp16 = not is_bfloat16_supported(),
45
+ - bf16 = is_bfloat16_supported(),
46
+ - logging_steps = 1,
47
+ - optim = "adamw_8bit",
48
+ - weight_decay = 0.01,
49
+ - lr_scheduler_type = "linear",
50
+ - seed = 3407,
51
+ - output_dir = "outputs"
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Step |
56
+ |:-------------:|:----:|
57
+ | 2.237900 | 1 |
58
+ | 2.292200 | 2 |
59
+ | 2.215200 | 3 |
60
+ | 1.561200 | 5 |
61
+ | 0.584500 | 10 |
62
+ | 0.372500 | 15 |
63
+ | 0.258600 | 20 |
64
+ | 0.126300 | 30 |
65
+ | 0.064100 | 40 |
66
+ | 0.040800 | 50 |
67
+ | 0.045700 | 60 |
68
+
69
+ ## Licenses
70
+ - **License:** apache-2.0