Model save
Browse files- README.md +62 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- all_results.json +8 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- train_results.json +8 -0
- trainer_state.json +86 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
9 |
+
model-index:
|
10 |
+
- name: nash_dpo_rank4_iter_real_plus_3
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# nash_dpo_rank4_iter_real_plus_3
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the None dataset.
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 5e-06
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 2
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 4
|
44 |
+
- gradient_accumulation_steps: 16
|
45 |
+
- total_train_batch_size: 128
|
46 |
+
- total_eval_batch_size: 8
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: cosine
|
49 |
+
- lr_scheduler_warmup_ratio: 0.1
|
50 |
+
- num_epochs: 1
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- PEFT 0.7.1
|
59 |
+
- Transformers 4.36.2
|
60 |
+
- Pytorch 2.1.2+cu121
|
61 |
+
- Datasets 2.14.6
|
62 |
+
- Tokenizers 0.15.2
|
adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "alignment-handbook/zephyr-7b-sft-full",
|
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 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 128,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 64,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"gate_proj",
|
23 |
+
"down_proj",
|
24 |
+
"v_proj",
|
25 |
+
"up_proj",
|
26 |
+
"q_proj",
|
27 |
+
"o_proj",
|
28 |
+
"k_proj"
|
29 |
+
],
|
30 |
+
"task_type": "CAUSAL_LM"
|
31 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35c113d03e4787d14c6624b3675c6764a94f774a9c167f0bd5f8159446d0fa90
|
3 |
+
size 335605144
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.5628757874170939,
|
4 |
+
"train_runtime": 1697.0362,
|
5 |
+
"train_samples": 5000,
|
6 |
+
"train_samples_per_second": 2.946,
|
7 |
+
"train_steps_per_second": 0.023
|
8 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"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 %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 2048,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.5628757874170939,
|
4 |
+
"train_runtime": 1697.0362,
|
5 |
+
"train_samples": 5000,
|
6 |
+
"train_samples_per_second": 2.946,
|
7 |
+
"train_steps_per_second": 0.023
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9984,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 39,
|
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.03,
|
13 |
+
"learning_rate": 1.25e-06,
|
14 |
+
"logits/chosen": -2.400381326675415,
|
15 |
+
"logits/rejected": -2.39224910736084,
|
16 |
+
"logps/chosen": -298.7495422363281,
|
17 |
+
"logps/rejected": -385.2267761230469,
|
18 |
+
"loss": 0.6931,
|
19 |
+
"rewards/accuracies": 0.0,
|
20 |
+
"rewards/chosen": 0.0,
|
21 |
+
"rewards/margins": 0.0,
|
22 |
+
"rewards/rejected": 0.0,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.26,
|
27 |
+
"learning_rate": 4.646121984004666e-06,
|
28 |
+
"logits/chosen": -2.1682252883911133,
|
29 |
+
"logits/rejected": -2.1295580863952637,
|
30 |
+
"logps/chosen": -284.8713684082031,
|
31 |
+
"logps/rejected": -366.9027099609375,
|
32 |
+
"loss": 0.6526,
|
33 |
+
"rewards/accuracies": 0.5798611044883728,
|
34 |
+
"rewards/chosen": -0.2899032235145569,
|
35 |
+
"rewards/margins": 0.10106495022773743,
|
36 |
+
"rewards/rejected": -0.3909682035446167,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.51,
|
41 |
+
"learning_rate": 2.835583164544139e-06,
|
42 |
+
"logits/chosen": -1.947609305381775,
|
43 |
+
"logits/rejected": -1.8020164966583252,
|
44 |
+
"logps/chosen": -310.9280090332031,
|
45 |
+
"logps/rejected": -387.20355224609375,
|
46 |
+
"loss": 0.5644,
|
47 |
+
"rewards/accuracies": 0.7906249761581421,
|
48 |
+
"rewards/chosen": -0.3633348345756531,
|
49 |
+
"rewards/margins": 0.3639495074748993,
|
50 |
+
"rewards/rejected": -0.7272843718528748,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.77,
|
55 |
+
"learning_rate": 7.723433775328385e-07,
|
56 |
+
"logits/chosen": -1.7138926982879639,
|
57 |
+
"logits/rejected": -1.5106457471847534,
|
58 |
+
"logps/chosen": -347.11175537109375,
|
59 |
+
"logps/rejected": -445.07470703125,
|
60 |
+
"loss": 0.513,
|
61 |
+
"rewards/accuracies": 0.765625,
|
62 |
+
"rewards/chosen": -0.46522030234336853,
|
63 |
+
"rewards/margins": 0.533661961555481,
|
64 |
+
"rewards/rejected": -0.9988821148872375,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.0,
|
69 |
+
"step": 39,
|
70 |
+
"total_flos": 0.0,
|
71 |
+
"train_loss": 0.5628757874170939,
|
72 |
+
"train_runtime": 1697.0362,
|
73 |
+
"train_samples_per_second": 2.946,
|
74 |
+
"train_steps_per_second": 0.023
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"logging_steps": 10,
|
78 |
+
"max_steps": 39,
|
79 |
+
"num_input_tokens_seen": 0,
|
80 |
+
"num_train_epochs": 1,
|
81 |
+
"save_steps": 100,
|
82 |
+
"total_flos": 0.0,
|
83 |
+
"train_batch_size": 2,
|
84 |
+
"trial_name": null,
|
85 |
+
"trial_params": null
|
86 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:226bb160a19f04d0aa2c4a8ccc5cfcc9d9140bff0cf6a09b8f92c28ee8483943
|
3 |
+
size 4920
|