RyanLi0802 commited on
Commit
d69cae1
1 Parent(s): 7c6a9c8

Upload 35 files

Browse files
Files changed (35) hide show
  1. sft_preference_v0.3/README.md +21 -0
  2. sft_preference_v0.3/adapter_config.json +21 -0
  3. sft_preference_v0.3/adapter_model.safetensors +3 -0
  4. sft_preference_v0.3/checkpoint-100/README.md +21 -0
  5. sft_preference_v0.3/checkpoint-100/adapter_config.json +21 -0
  6. sft_preference_v0.3/checkpoint-100/adapter_model.safetensors +3 -0
  7. sft_preference_v0.3/checkpoint-100/optimizer.pt +3 -0
  8. sft_preference_v0.3/checkpoint-100/rng_state.pth +3 -0
  9. sft_preference_v0.3/checkpoint-100/scheduler.pt +3 -0
  10. sft_preference_v0.3/checkpoint-100/special_tokens_map.json +24 -0
  11. sft_preference_v0.3/checkpoint-100/tokenizer.json +0 -0
  12. sft_preference_v0.3/checkpoint-100/tokenizer.model +3 -0
  13. sft_preference_v0.3/checkpoint-100/tokenizer_config.json +42 -0
  14. sft_preference_v0.3/checkpoint-100/trainer_state.json +81 -0
  15. sft_preference_v0.3/checkpoint-100/training_args.bin +3 -0
  16. sft_preference_v0.3/checkpoint-200/README.md +21 -0
  17. sft_preference_v0.3/checkpoint-200/adapter_config.json +21 -0
  18. sft_preference_v0.3/checkpoint-200/adapter_model.safetensors +3 -0
  19. sft_preference_v0.3/checkpoint-200/optimizer.pt +3 -0
  20. sft_preference_v0.3/checkpoint-200/rng_state.pth +3 -0
  21. sft_preference_v0.3/checkpoint-200/scheduler.pt +3 -0
  22. sft_preference_v0.3/checkpoint-200/special_tokens_map.json +24 -0
  23. sft_preference_v0.3/checkpoint-200/tokenizer.json +0 -0
  24. sft_preference_v0.3/checkpoint-200/tokenizer.model +3 -0
  25. sft_preference_v0.3/checkpoint-200/tokenizer_config.json +42 -0
  26. sft_preference_v0.3/checkpoint-200/trainer_state.json +141 -0
  27. sft_preference_v0.3/checkpoint-200/training_args.bin +3 -0
  28. sft_preference_v0.3/final_checkpoint/README.md +21 -0
  29. sft_preference_v0.3/final_checkpoint/adapter_config.json +21 -0
  30. sft_preference_v0.3/final_checkpoint/adapter_model.bin +3 -0
  31. sft_preference_v0.3/special_tokens_map.json +24 -0
  32. sft_preference_v0.3/tokenizer.json +0 -0
  33. sft_preference_v0.3/tokenizer.model +3 -0
  34. sft_preference_v0.3/tokenizer_config.json +42 -0
  35. sft_preference_v0.3/training_args.bin +3 -0
sft_preference_v0.3/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ ---
4
+ ## Training procedure
5
+
6
+
7
+ The following `bitsandbytes` quantization config was used during training:
8
+ - quant_method: QuantizationMethod.BITS_AND_BYTES
9
+ - load_in_8bit: False
10
+ - load_in_4bit: True
11
+ - llm_int8_threshold: 6.0
12
+ - llm_int8_skip_modules: None
13
+ - llm_int8_enable_fp32_cpu_offload: False
14
+ - llm_int8_has_fp16_weight: False
15
+ - bnb_4bit_quant_type: nf4
16
+ - bnb_4bit_use_double_quant: True
17
+ - bnb_4bit_compute_dtype: bfloat16
18
+ ### Framework versions
19
+
20
+
21
+ - PEFT 0.5.0
sft_preference_v0.3/adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 16,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 8,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
sft_preference_v0.3/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70df534c2bc0969dcae5a92848da7ad1c62695136578c261c0ffcfecd0beac18
3
+ size 8405600
sft_preference_v0.3/checkpoint-100/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ ---
4
+ ## Training procedure
5
+
6
+
7
+ The following `bitsandbytes` quantization config was used during training:
8
+ - quant_method: QuantizationMethod.BITS_AND_BYTES
9
+ - load_in_8bit: False
10
+ - load_in_4bit: True
11
+ - llm_int8_threshold: 6.0
12
+ - llm_int8_skip_modules: None
13
+ - llm_int8_enable_fp32_cpu_offload: False
14
+ - llm_int8_has_fp16_weight: False
15
+ - bnb_4bit_quant_type: nf4
16
+ - bnb_4bit_use_double_quant: True
17
+ - bnb_4bit_compute_dtype: bfloat16
18
+ ### Framework versions
19
+
20
+
21
+ - PEFT 0.5.0
sft_preference_v0.3/checkpoint-100/adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 16,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 8,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
sft_preference_v0.3/checkpoint-100/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da99d7006aef04f9213e097b5e64a5eee95dc913962bd956519d3ec545a68ad9
3
+ size 8405600
sft_preference_v0.3/checkpoint-100/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c215aea0a6d7fac411037a87e7ad17ac97bb43675acb29fad3316e4dda8ffdf0
3
+ size 33630138
sft_preference_v0.3/checkpoint-100/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1803dfd87d103f5caf0018d4ea28f26f5e20b9cc05e45495fb58c9c613635aa
3
+ size 14244
sft_preference_v0.3/checkpoint-100/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1fb12e131d1377879ac9b0a15c30a531e9ff47fc8821ee05539954e1d56fbe7
3
+ size 1064
sft_preference_v0.3/checkpoint-100/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
+ }
sft_preference_v0.3/checkpoint-100/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
sft_preference_v0.3/checkpoint-100/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
sft_preference_v0.3/checkpoint-100/tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
sft_preference_v0.3/checkpoint-100/trainer_state.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.6622296173044924,
5
+ "eval_steps": 500,
6
+ "global_step": 100,
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.27,
13
+ "learning_rate": 2.0000000000000003e-06,
14
+ "loss": 2.0008,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.53,
19
+ "learning_rate": 4.000000000000001e-06,
20
+ "loss": 1.9939,
21
+ "step": 20
22
+ },
23
+ {
24
+ "epoch": 0.8,
25
+ "learning_rate": 6e-06,
26
+ "loss": 2.0215,
27
+ "step": 30
28
+ },
29
+ {
30
+ "epoch": 1.06,
31
+ "learning_rate": 8.000000000000001e-06,
32
+ "loss": 1.9508,
33
+ "step": 40
34
+ },
35
+ {
36
+ "epoch": 1.33,
37
+ "learning_rate": 1e-05,
38
+ "loss": 1.9897,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 1.6,
43
+ "learning_rate": 1.2e-05,
44
+ "loss": 1.961,
45
+ "step": 60
46
+ },
47
+ {
48
+ "epoch": 1.86,
49
+ "learning_rate": 1.4000000000000001e-05,
50
+ "loss": 1.904,
51
+ "step": 70
52
+ },
53
+ {
54
+ "epoch": 2.13,
55
+ "learning_rate": 1.6000000000000003e-05,
56
+ "loss": 1.8214,
57
+ "step": 80
58
+ },
59
+ {
60
+ "epoch": 2.4,
61
+ "learning_rate": 1.8e-05,
62
+ "loss": 1.8104,
63
+ "step": 90
64
+ },
65
+ {
66
+ "epoch": 2.66,
67
+ "learning_rate": 2e-05,
68
+ "loss": 1.709,
69
+ "step": 100
70
+ }
71
+ ],
72
+ "logging_steps": 10,
73
+ "max_steps": 296,
74
+ "num_input_tokens_seen": 0,
75
+ "num_train_epochs": 8,
76
+ "save_steps": 100,
77
+ "total_flos": 2.59976249475072e+17,
78
+ "train_batch_size": 1,
79
+ "trial_name": null,
80
+ "trial_params": null
81
+ }
sft_preference_v0.3/checkpoint-100/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1c4f3b98603de8e34ba509671833ac09ec3678b685439de2cb301ceafeb6f91
3
+ size 4856
sft_preference_v0.3/checkpoint-200/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ ---
4
+ ## Training procedure
5
+
6
+
7
+ The following `bitsandbytes` quantization config was used during training:
8
+ - quant_method: QuantizationMethod.BITS_AND_BYTES
9
+ - load_in_8bit: False
10
+ - load_in_4bit: True
11
+ - llm_int8_threshold: 6.0
12
+ - llm_int8_skip_modules: None
13
+ - llm_int8_enable_fp32_cpu_offload: False
14
+ - llm_int8_has_fp16_weight: False
15
+ - bnb_4bit_quant_type: nf4
16
+ - bnb_4bit_use_double_quant: True
17
+ - bnb_4bit_compute_dtype: bfloat16
18
+ ### Framework versions
19
+
20
+
21
+ - PEFT 0.5.0
sft_preference_v0.3/checkpoint-200/adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 16,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 8,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
sft_preference_v0.3/checkpoint-200/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d55c4c0d3ae9e2b616add0b8a95cb70843f7a15f784dbc01698919f61a42be7
3
+ size 8405600
sft_preference_v0.3/checkpoint-200/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b010c7f8e7ce48c5c3a27ad2af3b87ffbc56f068a8dd4611128357f703b57698
3
+ size 33630138
sft_preference_v0.3/checkpoint-200/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6873d5230fdaff13e6f440694b41c884eb0ec0756aa958b6060732c536309d3
3
+ size 14244
sft_preference_v0.3/checkpoint-200/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92d0f3d36329b219620945409bb1f5fcf06174147dd67d0c46737d88c89a6ccc
3
+ size 1064
sft_preference_v0.3/checkpoint-200/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
+ }
sft_preference_v0.3/checkpoint-200/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
sft_preference_v0.3/checkpoint-200/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
sft_preference_v0.3/checkpoint-200/tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
sft_preference_v0.3/checkpoint-200/trainer_state.json ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.324459234608985,
5
+ "eval_steps": 500,
6
+ "global_step": 200,
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.27,
13
+ "learning_rate": 2.0000000000000003e-06,
14
+ "loss": 2.0008,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.53,
19
+ "learning_rate": 4.000000000000001e-06,
20
+ "loss": 1.9939,
21
+ "step": 20
22
+ },
23
+ {
24
+ "epoch": 0.8,
25
+ "learning_rate": 6e-06,
26
+ "loss": 2.0215,
27
+ "step": 30
28
+ },
29
+ {
30
+ "epoch": 1.06,
31
+ "learning_rate": 8.000000000000001e-06,
32
+ "loss": 1.9508,
33
+ "step": 40
34
+ },
35
+ {
36
+ "epoch": 1.33,
37
+ "learning_rate": 1e-05,
38
+ "loss": 1.9897,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 1.6,
43
+ "learning_rate": 1.2e-05,
44
+ "loss": 1.961,
45
+ "step": 60
46
+ },
47
+ {
48
+ "epoch": 1.86,
49
+ "learning_rate": 1.4000000000000001e-05,
50
+ "loss": 1.904,
51
+ "step": 70
52
+ },
53
+ {
54
+ "epoch": 2.13,
55
+ "learning_rate": 1.6000000000000003e-05,
56
+ "loss": 1.8214,
57
+ "step": 80
58
+ },
59
+ {
60
+ "epoch": 2.4,
61
+ "learning_rate": 1.8e-05,
62
+ "loss": 1.8104,
63
+ "step": 90
64
+ },
65
+ {
66
+ "epoch": 2.66,
67
+ "learning_rate": 2e-05,
68
+ "loss": 1.709,
69
+ "step": 100
70
+ },
71
+ {
72
+ "epoch": 2.93,
73
+ "learning_rate": 2.2000000000000003e-05,
74
+ "loss": 1.618,
75
+ "step": 110
76
+ },
77
+ {
78
+ "epoch": 3.19,
79
+ "learning_rate": 2.4e-05,
80
+ "loss": 1.5314,
81
+ "step": 120
82
+ },
83
+ {
84
+ "epoch": 3.46,
85
+ "learning_rate": 2.6000000000000002e-05,
86
+ "loss": 1.5163,
87
+ "step": 130
88
+ },
89
+ {
90
+ "epoch": 3.73,
91
+ "learning_rate": 2.8000000000000003e-05,
92
+ "loss": 1.4742,
93
+ "step": 140
94
+ },
95
+ {
96
+ "epoch": 3.99,
97
+ "learning_rate": 3e-05,
98
+ "loss": 1.4783,
99
+ "step": 150
100
+ },
101
+ {
102
+ "epoch": 4.26,
103
+ "learning_rate": 3.2000000000000005e-05,
104
+ "loss": 1.43,
105
+ "step": 160
106
+ },
107
+ {
108
+ "epoch": 4.53,
109
+ "learning_rate": 3.4000000000000007e-05,
110
+ "loss": 1.4322,
111
+ "step": 170
112
+ },
113
+ {
114
+ "epoch": 4.79,
115
+ "learning_rate": 3.6e-05,
116
+ "loss": 1.3991,
117
+ "step": 180
118
+ },
119
+ {
120
+ "epoch": 5.06,
121
+ "learning_rate": 3.8e-05,
122
+ "loss": 1.3835,
123
+ "step": 190
124
+ },
125
+ {
126
+ "epoch": 5.32,
127
+ "learning_rate": 4e-05,
128
+ "loss": 1.3465,
129
+ "step": 200
130
+ }
131
+ ],
132
+ "logging_steps": 10,
133
+ "max_steps": 296,
134
+ "num_input_tokens_seen": 0,
135
+ "num_train_epochs": 8,
136
+ "save_steps": 100,
137
+ "total_flos": 5.19952498950144e+17,
138
+ "train_batch_size": 1,
139
+ "trial_name": null,
140
+ "trial_params": null
141
+ }
sft_preference_v0.3/checkpoint-200/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1c4f3b98603de8e34ba509671833ac09ec3678b685439de2cb301ceafeb6f91
3
+ size 4856
sft_preference_v0.3/final_checkpoint/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ ---
4
+ ## Training procedure
5
+
6
+
7
+ The following `bitsandbytes` quantization config was used during training:
8
+ - quant_method: QuantizationMethod.BITS_AND_BYTES
9
+ - load_in_8bit: False
10
+ - load_in_4bit: True
11
+ - llm_int8_threshold: 6.0
12
+ - llm_int8_skip_modules: None
13
+ - llm_int8_enable_fp32_cpu_offload: False
14
+ - llm_int8_has_fp16_weight: False
15
+ - bnb_4bit_quant_type: nf4
16
+ - bnb_4bit_use_double_quant: True
17
+ - bnb_4bit_compute_dtype: bfloat16
18
+ ### Framework versions
19
+
20
+
21
+ - PEFT 0.5.0
sft_preference_v0.3/final_checkpoint/adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 16,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 8,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
sft_preference_v0.3/final_checkpoint/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d03e0c8ff5900d743bf3db43fbb064aeff8496e30ea0053d45cc0ff9bad90481
3
+ size 8434826
sft_preference_v0.3/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
+ }
sft_preference_v0.3/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
sft_preference_v0.3/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
sft_preference_v0.3/tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
sft_preference_v0.3/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1c4f3b98603de8e34ba509671833ac09ec3678b685439de2cb301ceafeb6f91
3
+ size 4856