xz-huggingface-0 commited on
Commit
7f0c3d6
·
1 Parent(s): bf673ab

Model save

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-2-7b-hf
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: llama2-7b-sft-lora-20231129-32
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # llama2-7b-sft-lora-20231129-32
14
+
15
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 1.4442
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 2e-05
37
+ - train_batch_size: 4
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - distributed_type: multi-GPU
41
+ - num_devices: 8
42
+ - gradient_accumulation_steps: 128
43
+ - total_train_batch_size: 4096
44
+ - total_eval_batch_size: 64
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: cosine
47
+ - num_epochs: 1
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:-----:|:----:|:---------------:|
53
+ | 1.4444 | 0.69 | 35 | 1.4442 |
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - Transformers 4.35.0
59
+ - Pytorch 2.1.0+cu121
60
+ - Datasets 2.14.6
61
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-hf",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "k_proj",
20
+ "o_proj",
21
+ "q_proj",
22
+ "v_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d29bc1f641e4479394b67977e2f3cb9b880094299e1bddb21ea9ca10578b8fad
3
+ size 134252592
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.69,
3
+ "train_loss": 1.5270403504371644,
4
+ "train_runtime": 10825.1048,
5
+ "train_samples": 207865,
6
+ "train_samples_per_second": 19.202,
7
+ "train_steps_per_second": 0.005
8
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "bos_token": "<s>",
29
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
30
+ "clean_up_tokenization_spaces": false,
31
+ "eos_token": "</s>",
32
+ "legacy": false,
33
+ "model_max_length": 2048,
34
+ "pad_token": "</s>",
35
+ "padding_side": "right",
36
+ "sp_model_kwargs": {},
37
+ "tokenizer_class": "LlamaTokenizer",
38
+ "unk_token": "<unk>",
39
+ "use_default_system_prompt": false
40
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.69,
3
+ "train_loss": 1.5270403504371644,
4
+ "train_runtime": 10825.1048,
5
+ "train_samples": 207865,
6
+ "train_samples_per_second": 19.202,
7
+ "train_steps_per_second": 0.005
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.6896551724137931,
5
+ "eval_steps": 500,
6
+ "global_step": 35,
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.02,
13
+ "learning_rate": 1.9980267284282718e-05,
14
+ "loss": 1.557,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.1,
19
+ "learning_rate": 1.9510565162951538e-05,
20
+ "loss": 1.5539,
21
+ "step": 5
22
+ },
23
+ {
24
+ "epoch": 0.2,
25
+ "learning_rate": 1.8090169943749477e-05,
26
+ "loss": 1.5433,
27
+ "step": 10
28
+ },
29
+ {
30
+ "epoch": 0.3,
31
+ "learning_rate": 1.5877852522924733e-05,
32
+ "loss": 1.5243,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 0.39,
37
+ "learning_rate": 1.3090169943749475e-05,
38
+ "loss": 1.4994,
39
+ "step": 20
40
+ },
41
+ {
42
+ "epoch": 0.49,
43
+ "learning_rate": 1e-05,
44
+ "loss": 1.4754,
45
+ "step": 25
46
+ },
47
+ {
48
+ "epoch": 0.59,
49
+ "learning_rate": 6.909830056250527e-06,
50
+ "loss": 1.4579,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.69,
55
+ "learning_rate": 4.12214747707527e-06,
56
+ "loss": 1.4444,
57
+ "step": 35
58
+ },
59
+ {
60
+ "epoch": 0.69,
61
+ "eval_loss": 1.4441827535629272,
62
+ "eval_runtime": 371.4624,
63
+ "eval_samples_per_second": 62.214,
64
+ "eval_steps_per_second": 0.975,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.69,
69
+ "step": 35,
70
+ "total_flos": 9.151767518380032e+16,
71
+ "train_loss": 1.5270403504371644,
72
+ "train_runtime": 10825.1048,
73
+ "train_samples_per_second": 19.202,
74
+ "train_steps_per_second": 0.005
75
+ }
76
+ ],
77
+ "logging_steps": 5,
78
+ "max_steps": 50,
79
+ "num_train_epochs": 1,
80
+ "save_steps": 500,
81
+ "total_flos": 9.151767518380032e+16,
82
+ "trial_name": null,
83
+ "trial_params": null
84
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d211fefa7d64006fec6beb26318120c6f5c355f8eb2199b7fd28e42160e9d702
3
+ size 5688