Model save
Browse files- .gitattributes +1 -0
- README.md +76 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- all_results.json +9 -0
- runs/Jun05_13-37-49_user-HP-Z8-Fury-G5-Workstation-Desktop-PC/events.out.tfevents.1717562283.user-HP-Z8-Fury-G5-Workstation-Desktop-PC.24479.0 +3 -0
- special_tokens_map.json +34 -0
- tokenizer.json +3 -0
- tokenizer_config.json +70 -0
- train_results.json +9 -0
- trainer_state.json +141 -0
- training_args.bin +3 -0
.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
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: google/gemma-2b
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: gemma2b-summarize-gpt4o-1k
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# gemma2b-summarize-gpt4o-1k
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [google/gemma-2b](https://huggingface.co/google/gemma-2b) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 2.7415
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.0002
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 3
|
48 |
+
- gradient_accumulation_steps: 2
|
49 |
+
- total_train_batch_size: 48
|
50 |
+
- total_eval_batch_size: 24
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: cosine
|
53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
54 |
+
- num_epochs: 10
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
60 |
+
| 2.9975 | 0.8 | 2 | 3.1990 |
|
61 |
+
| 2.8744 | 2.0 | 5 | 3.0048 |
|
62 |
+
| 2.8744 | 2.8 | 7 | 2.8992 |
|
63 |
+
| 2.3833 | 4.0 | 10 | 2.8237 |
|
64 |
+
| 2.3833 | 4.8 | 12 | 2.7889 |
|
65 |
+
| 2.1436 | 6.0 | 15 | 2.7588 |
|
66 |
+
| 2.1436 | 6.8 | 17 | 2.7501 |
|
67 |
+
| 2.0522 | 8.0 | 20 | 2.7415 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- PEFT 0.11.1
|
73 |
+
- Transformers 4.41.2
|
74 |
+
- Pytorch 2.3.0+cu121
|
75 |
+
- Datasets 2.19.2
|
76 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google/gemma-2b",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 8,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"q_proj",
|
24 |
+
"up_proj",
|
25 |
+
"down_proj",
|
26 |
+
"k_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"o_proj",
|
29 |
+
"v_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9230b300525a626a6d57dd6868725660049f437e396c16902adfc85ab57fa79a
|
3 |
+
size 19644912
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 8.0,
|
3 |
+
"total_flos": 1.1747466839851008e+16,
|
4 |
+
"train_loss": 2.369537723064423,
|
5 |
+
"train_runtime": 116.0943,
|
6 |
+
"train_samples": 1009,
|
7 |
+
"train_samples_per_second": 9.561,
|
8 |
+
"train_steps_per_second": 0.172
|
9 |
+
}
|
runs/Jun05_13-37-49_user-HP-Z8-Fury-G5-Workstation-Desktop-PC/events.out.tfevents.1717562283.user-HP-Z8-Fury-G5-Workstation-Desktop-PC.24479.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9f862e1efa97fb702869fc5fd6e2f200afcff4a211fcf0146f73bc3709e184c
|
3 |
+
size 9104
|
special_tokens_map.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
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:322a5f52ab5cab196761ab397a022d6fa3a2e1418585e532bb6efb2fedd2ae94
|
3 |
+
size 17477501
|
tokenizer_config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
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": "<|im_start|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"107": {
|
46 |
+
"content": "<|im_end|>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"additional_special_tokens": [
|
55 |
+
"<|im_start|>",
|
56 |
+
"<|im_end|>"
|
57 |
+
],
|
58 |
+
"bos_token": "<bos>",
|
59 |
+
"chat_template": "{% if messages[0]['role'] == 'user' or messages[0]['role'] == 'system' %}{{ bos_token }}{% endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% elif messages[-1]['role'] == 'assistant' %}{{ eos_token }}{% endif %}",
|
60 |
+
"clean_up_tokenization_spaces": false,
|
61 |
+
"eos_token": "<eos>",
|
62 |
+
"legacy": null,
|
63 |
+
"model_max_length": 2048,
|
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 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 8.0,
|
3 |
+
"total_flos": 1.1747466839851008e+16,
|
4 |
+
"train_loss": 2.369537723064423,
|
5 |
+
"train_runtime": 116.0943,
|
6 |
+
"train_samples": 1009,
|
7 |
+
"train_samples_per_second": 9.561,
|
8 |
+
"train_steps_per_second": 0.172
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 8.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 20,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.4,
|
13 |
+
"grad_norm": 1.9609375,
|
14 |
+
"learning_rate": 0.0001,
|
15 |
+
"loss": 2.9975,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.8,
|
20 |
+
"eval_loss": 3.199005126953125,
|
21 |
+
"eval_runtime": 0.8132,
|
22 |
+
"eval_samples_per_second": 12.297,
|
23 |
+
"eval_steps_per_second": 1.23,
|
24 |
+
"step": 2
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 2.0,
|
28 |
+
"grad_norm": 1.8046875,
|
29 |
+
"learning_rate": 0.00018660254037844388,
|
30 |
+
"loss": 2.8744,
|
31 |
+
"step": 5
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"eval_loss": 3.0047969818115234,
|
36 |
+
"eval_runtime": 0.5075,
|
37 |
+
"eval_samples_per_second": 19.705,
|
38 |
+
"eval_steps_per_second": 1.97,
|
39 |
+
"step": 5
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.8,
|
43 |
+
"eval_loss": 2.8991804122924805,
|
44 |
+
"eval_runtime": 0.5408,
|
45 |
+
"eval_samples_per_second": 18.49,
|
46 |
+
"eval_steps_per_second": 1.849,
|
47 |
+
"step": 7
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 4.0,
|
51 |
+
"grad_norm": 1.28125,
|
52 |
+
"learning_rate": 0.00011736481776669306,
|
53 |
+
"loss": 2.3833,
|
54 |
+
"step": 10
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 4.0,
|
58 |
+
"eval_loss": 2.823747158050537,
|
59 |
+
"eval_runtime": 0.5235,
|
60 |
+
"eval_samples_per_second": 19.103,
|
61 |
+
"eval_steps_per_second": 1.91,
|
62 |
+
"step": 10
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"epoch": 4.8,
|
66 |
+
"eval_loss": 2.7889246940612793,
|
67 |
+
"eval_runtime": 0.5403,
|
68 |
+
"eval_samples_per_second": 18.509,
|
69 |
+
"eval_steps_per_second": 1.851,
|
70 |
+
"step": 12
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"epoch": 6.0,
|
74 |
+
"grad_norm": 0.953125,
|
75 |
+
"learning_rate": 3.5721239031346066e-05,
|
76 |
+
"loss": 2.1436,
|
77 |
+
"step": 15
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 6.0,
|
81 |
+
"eval_loss": 2.7588186264038086,
|
82 |
+
"eval_runtime": 0.5365,
|
83 |
+
"eval_samples_per_second": 18.64,
|
84 |
+
"eval_steps_per_second": 1.864,
|
85 |
+
"step": 15
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 6.8,
|
89 |
+
"eval_loss": 2.7500834465026855,
|
90 |
+
"eval_runtime": 0.5587,
|
91 |
+
"eval_samples_per_second": 17.898,
|
92 |
+
"eval_steps_per_second": 1.79,
|
93 |
+
"step": 17
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 8.0,
|
97 |
+
"grad_norm": 0.79296875,
|
98 |
+
"learning_rate": 0.0,
|
99 |
+
"loss": 2.0522,
|
100 |
+
"step": 20
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 8.0,
|
104 |
+
"eval_loss": 2.7414565086364746,
|
105 |
+
"eval_runtime": 0.5472,
|
106 |
+
"eval_samples_per_second": 18.276,
|
107 |
+
"eval_steps_per_second": 1.828,
|
108 |
+
"step": 20
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"epoch": 8.0,
|
112 |
+
"step": 20,
|
113 |
+
"total_flos": 1.1747466839851008e+16,
|
114 |
+
"train_loss": 2.369537723064423,
|
115 |
+
"train_runtime": 116.0943,
|
116 |
+
"train_samples_per_second": 9.561,
|
117 |
+
"train_steps_per_second": 0.172
|
118 |
+
}
|
119 |
+
],
|
120 |
+
"logging_steps": 5,
|
121 |
+
"max_steps": 20,
|
122 |
+
"num_input_tokens_seen": 0,
|
123 |
+
"num_train_epochs": 10,
|
124 |
+
"save_steps": 100,
|
125 |
+
"stateful_callbacks": {
|
126 |
+
"TrainerControl": {
|
127 |
+
"args": {
|
128 |
+
"should_epoch_stop": false,
|
129 |
+
"should_evaluate": false,
|
130 |
+
"should_log": false,
|
131 |
+
"should_save": false,
|
132 |
+
"should_training_stop": false
|
133 |
+
},
|
134 |
+
"attributes": {}
|
135 |
+
}
|
136 |
+
},
|
137 |
+
"total_flos": 1.1747466839851008e+16,
|
138 |
+
"train_batch_size": 8,
|
139 |
+
"trial_name": null,
|
140 |
+
"trial_params": null
|
141 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5619d72bebda400f1e1d25266e8517a3ee95cf40cc1e6b618d6e8399bf22354
|
3 |
+
size 5304
|