sridhar1111111111111111
commited on
Commit
•
ab90aef
1
Parent(s):
735a36e
gemma2B-Medical-Finetune-test-2epochs
Browse files- .gitattributes +1 -0
- README.md +13 -19
- adapter_config.json +5 -5
- adapter_model.safetensors +2 -2
- runs/Mar17_13-32-52_3ac06cdcb29d/events.out.tfevents.1710682377.3ac06cdcb29d.351.0 +3 -0
- special_tokens_map.json +34 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +70 -0
- training_args.bin +2 -2
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
library_name: peft
|
4 |
tags:
|
|
|
|
|
5 |
- generated_from_trainer
|
6 |
-
base_model:
|
7 |
model-index:
|
8 |
- name: outputs
|
9 |
results: []
|
@@ -14,9 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
14 |
|
15 |
# outputs
|
16 |
|
17 |
-
This model is a fine-tuned version of [
|
18 |
-
It achieves the following results on the evaluation set:
|
19 |
-
- Loss: 0.5527
|
20 |
|
21 |
## Model description
|
22 |
|
@@ -35,30 +35,24 @@ More information needed
|
|
35 |
### Training hyperparameters
|
36 |
|
37 |
The following hyperparameters were used during training:
|
38 |
-
- learning_rate:
|
39 |
-
- train_batch_size:
|
40 |
-
- eval_batch_size:
|
41 |
- seed: 42
|
42 |
- gradient_accumulation_steps: 8
|
43 |
-
- total_train_batch_size:
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- num_epochs: 2
|
47 |
-
- mixed_precision_training: Native AMP
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
52 |
-
|:-------------:|:-----:|:----:|:---------------:|
|
53 |
-
| 0.6694 | 0.59 | 50 | 0.6315 |
|
54 |
-
| 0.5594 | 1.18 | 100 | 0.5652 |
|
55 |
-
| 0.5449 | 1.77 | 150 | 0.5527 |
|
56 |
|
57 |
|
58 |
### Framework versions
|
59 |
|
60 |
- PEFT 0.8.2
|
61 |
-
- Transformers 4.38.0
|
62 |
-
- Pytorch 2.1
|
63 |
-
- Datasets 2.
|
64 |
-
- Tokenizers 0.15.
|
|
|
1 |
---
|
2 |
+
license: other
|
3 |
library_name: peft
|
4 |
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
- generated_from_trainer
|
8 |
+
base_model: google/gemma-2b-it
|
9 |
model-index:
|
10 |
- name: outputs
|
11 |
results: []
|
|
|
16 |
|
17 |
# outputs
|
18 |
|
19 |
+
This model is a fine-tuned version of [google/gemma-2b-it](https://huggingface.co/google/gemma-2b-it) on an unknown dataset.
|
|
|
|
|
20 |
|
21 |
## Model description
|
22 |
|
|
|
35 |
### Training hyperparameters
|
36 |
|
37 |
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 0.0002
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 8
|
41 |
- seed: 42
|
42 |
- gradient_accumulation_steps: 8
|
43 |
+
- total_train_batch_size: 16
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- num_epochs: 2
|
|
|
47 |
|
48 |
### Training results
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
### Framework versions
|
53 |
|
54 |
- PEFT 0.8.2
|
55 |
+
- Transformers 4.38.0
|
56 |
+
- Pytorch 2.2.1+cu121
|
57 |
+
- Datasets 2.17.0
|
58 |
+
- Tokenizers 0.15.2
|
adapter_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
-
"base_model_name_or_path": "
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
@@ -15,16 +15,16 @@
|
|
15 |
"megatron_core": "megatron.core",
|
16 |
"modules_to_save": null,
|
17 |
"peft_type": "LORA",
|
18 |
-
"r":
|
19 |
"rank_pattern": {},
|
20 |
"revision": null,
|
21 |
"target_modules": [
|
22 |
-
"o_proj",
|
23 |
-
"down_proj",
|
24 |
"k_proj",
|
25 |
-
"
|
26 |
"q_proj",
|
27 |
"up_proj",
|
|
|
|
|
28 |
"v_proj"
|
29 |
],
|
30 |
"task_type": "CAUSAL_LM",
|
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google/gemma-2b-it",
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
|
|
15 |
"megatron_core": "megatron.core",
|
16 |
"modules_to_save": null,
|
17 |
"peft_type": "LORA",
|
18 |
+
"r": 32,
|
19 |
"rank_pattern": {},
|
20 |
"revision": null,
|
21 |
"target_modules": [
|
|
|
|
|
22 |
"k_proj",
|
23 |
+
"down_proj",
|
24 |
"q_proj",
|
25 |
"up_proj",
|
26 |
+
"gate_proj",
|
27 |
+
"o_proj",
|
28 |
"v_proj"
|
29 |
],
|
30 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:934c9dc96cbcbdf7a0291059d54fad03ea27608fa06c284ed0be9e650bc1b8c3
|
3 |
+
size 156926880
|
runs/Mar17_13-32-52_3ac06cdcb29d/events.out.tfevents.1710682377.3ac06cdcb29d.351.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e51b55fcd42ce600d442a6957c2015141e233ea9bc8d2136a42b8d167bf0505
|
3 |
+
size 10579
|
special_tokens_map.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<start_of_turn>",
|
4 |
+
"<end_of_turn>"
|
5 |
+
],
|
6 |
+
"bos_token": {
|
7 |
+
"content": "<bos>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"eos_token": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"pad_token": {
|
21 |
+
"content": "<pad>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"unk_token": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
}
|
34 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce19157ce6b457736a0015a2a4fb06c966c6ff252ec9d1950777eec6598abf6d
|
3 |
+
size 17478028
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
|
3 |
+
size 4241003
|
tokenizer_config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<pad>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "<bos>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"3": {
|
30 |
+
"content": "<unk>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"106": {
|
38 |
+
"content": "<start_of_turn>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"107": {
|
46 |
+
"content": "<end_of_turn>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"additional_special_tokens": [
|
55 |
+
"<start_of_turn>",
|
56 |
+
"<end_of_turn>"
|
57 |
+
],
|
58 |
+
"bos_token": "<bos>",
|
59 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
60 |
+
"clean_up_tokenization_spaces": false,
|
61 |
+
"eos_token": "<eos>",
|
62 |
+
"legacy": null,
|
63 |
+
"model_max_length": 1000000000000000019884624838656,
|
64 |
+
"pad_token": "<pad>",
|
65 |
+
"sp_model_kwargs": {},
|
66 |
+
"spaces_between_special_tokens": false,
|
67 |
+
"tokenizer_class": "GemmaTokenizer",
|
68 |
+
"unk_token": "<unk>",
|
69 |
+
"use_default_system_prompt": false
|
70 |
+
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77c7ac08fea4403b0d9beed0ef5095552d19edd85f199fb8f60683b4c33202f6
|
3 |
+
size 4920
|