Model save
Browse files- README.md +62 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- all_results.json +21 -0
- config.json +26 -0
- eval_results.json +16 -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_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_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 |
+
"k_proj",
|
23 |
+
"q_proj",
|
24 |
+
"down_proj",
|
25 |
+
"v_proj",
|
26 |
+
"up_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"o_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:b0dfd31abdf83e940590c6fffa89efd594477774be9e85083a1811c4db27d5c0
|
3 |
+
size 335605144
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -1.9072314500808716,
|
4 |
+
"eval_logits/rejected": -1.686521053314209,
|
5 |
+
"eval_logps/chosen": -320.5736083984375,
|
6 |
+
"eval_logps/rejected": -328.9005126953125,
|
7 |
+
"eval_loss": 0.604966402053833,
|
8 |
+
"eval_rewards/accuracies": 0.6899999976158142,
|
9 |
+
"eval_rewards/chosen": -0.04819466918706894,
|
10 |
+
"eval_rewards/margins": 0.26583459973335266,
|
11 |
+
"eval_rewards/rejected": -0.3140292465686798,
|
12 |
+
"eval_runtime": 384.0617,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 5.207,
|
15 |
+
"eval_steps_per_second": 0.651,
|
16 |
+
"train_loss": 0.0,
|
17 |
+
"train_runtime": 0.0096,
|
18 |
+
"train_samples": 5000,
|
19 |
+
"train_samples_per_second": 521173.985,
|
20 |
+
"train_steps_per_second": 4065.157
|
21 |
+
}
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "alignment-handbook/zephyr-7b-sft-full",
|
3 |
+
"architectures": [
|
4 |
+
"MistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 14336,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"model_type": "mistral",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
17 |
+
"num_key_value_heads": 8,
|
18 |
+
"rms_norm_eps": 1e-05,
|
19 |
+
"rope_theta": 10000.0,
|
20 |
+
"sliding_window": 4096,
|
21 |
+
"tie_word_embeddings": false,
|
22 |
+
"torch_dtype": "bfloat16",
|
23 |
+
"transformers_version": "4.36.2",
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000
|
26 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -1.9072314500808716,
|
4 |
+
"eval_logits/rejected": -1.686521053314209,
|
5 |
+
"eval_logps/chosen": -320.5736083984375,
|
6 |
+
"eval_logps/rejected": -328.9005126953125,
|
7 |
+
"eval_loss": 0.604966402053833,
|
8 |
+
"eval_rewards/accuracies": 0.6899999976158142,
|
9 |
+
"eval_rewards/chosen": -0.04819466918706894,
|
10 |
+
"eval_rewards/margins": 0.26583459973335266,
|
11 |
+
"eval_rewards/rejected": -0.3140292465686798,
|
12 |
+
"eval_runtime": 384.0617,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 5.207,
|
15 |
+
"eval_steps_per_second": 0.651
|
16 |
+
}
|
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.0,
|
4 |
+
"train_runtime": 0.0096,
|
5 |
+
"train_samples": 5000,
|
6 |
+
"train_samples_per_second": 521173.985,
|
7 |
+
"train_steps_per_second": 4065.157
|
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.5433855056762695,
|
15 |
+
"logits/rejected": -2.521193504333496,
|
16 |
+
"logps/chosen": -335.29010009765625,
|
17 |
+
"logps/rejected": -420.1910400390625,
|
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.4242465496063232,
|
29 |
+
"logits/rejected": -2.3739523887634277,
|
30 |
+
"logps/chosen": -283.9295349121094,
|
31 |
+
"logps/rejected": -356.6905517578125,
|
32 |
+
"loss": 0.6732,
|
33 |
+
"rewards/accuracies": 0.6354166865348816,
|
34 |
+
"rewards/chosen": 0.0827573761343956,
|
35 |
+
"rewards/margins": 0.037400420755147934,
|
36 |
+
"rewards/rejected": 0.045356955379247665,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.51,
|
41 |
+
"learning_rate": 2.835583164544139e-06,
|
42 |
+
"logits/chosen": -2.1755757331848145,
|
43 |
+
"logits/rejected": -2.069685935974121,
|
44 |
+
"logps/chosen": -307.59771728515625,
|
45 |
+
"logps/rejected": -366.8892517089844,
|
46 |
+
"loss": 0.6079,
|
47 |
+
"rewards/accuracies": 0.768750011920929,
|
48 |
+
"rewards/chosen": 0.02839103899896145,
|
49 |
+
"rewards/margins": 0.22918327152729034,
|
50 |
+
"rewards/rejected": -0.20079222321510315,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.77,
|
55 |
+
"learning_rate": 7.723433775328385e-07,
|
56 |
+
"logits/chosen": -1.9671818017959595,
|
57 |
+
"logits/rejected": -1.8299922943115234,
|
58 |
+
"logps/chosen": -337.34051513671875,
|
59 |
+
"logps/rejected": -414.0975646972656,
|
60 |
+
"loss": 0.5677,
|
61 |
+
"rewards/accuracies": 0.746874988079071,
|
62 |
+
"rewards/chosen": -0.01181054301559925,
|
63 |
+
"rewards/margins": 0.3342409133911133,
|
64 |
+
"rewards/rejected": -0.34605151414871216,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.0,
|
69 |
+
"step": 39,
|
70 |
+
"total_flos": 0.0,
|
71 |
+
"train_loss": 0.0,
|
72 |
+
"train_runtime": 0.0096,
|
73 |
+
"train_samples_per_second": 521173.985,
|
74 |
+
"train_steps_per_second": 4065.157
|
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:f660d5bb72f5c540d92587c414b14213c0edb9f7c8d2e1b978c6a22886ea8f5b
|
3 |
+
size 4920
|