Junxiong Wang commited on
Commit
24a7edb
·
1 Parent(s): f507d9f

add models

Browse files
.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
+ pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,73 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: /data/junxiong/sft/zephyr_0_5_sft_open_not_openhermes_progressive_train_largest_dataset/
3
+ tags:
4
+ - alignment-handbook
5
+ - generated_from_trainer
6
+ datasets:
7
+ - HuggingFaceH4/ultrafeedback_binarized
8
+ model-index:
9
+ - name: zephyr_0_5_dpo_open_not_openhermes_progressive_train_largest_dataset_ep3
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # zephyr_0_5_dpo_open_not_openhermes_progressive_train_largest_dataset_ep3
17
+
18
+ This model is a fine-tuned version of [/data/junxiong/sft/zephyr_0_5_sft_open_not_openhermes_progressive_train_largest_dataset/](https://huggingface.co//data/junxiong/sft/zephyr_0_5_sft_open_not_openhermes_progressive_train_largest_dataset/) on the HuggingFaceH4/ultrafeedback_binarized dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.7141
21
+ - Rewards/chosen: -5.3346
22
+ - Rewards/rejected: -8.3118
23
+ - Rewards/accuracies: 0.7891
24
+ - Rewards/margins: 2.9772
25
+ - Logps/rejected: -337.4994
26
+ - Logps/chosen: -304.9619
27
+ - Logits/rejected: -2.7812
28
+ - Logits/chosen: -2.8272
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 5e-07
48
+ - train_batch_size: 4
49
+ - eval_batch_size: 8
50
+ - seed: 42
51
+ - distributed_type: multi-GPU
52
+ - num_devices: 8
53
+ - total_train_batch_size: 32
54
+ - total_eval_batch_size: 64
55
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
+ - lr_scheduler_type: cosine
57
+ - lr_scheduler_warmup_ratio: 0.1
58
+ - num_epochs: 3
59
+
60
+ ### Training results
61
+
62
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
63
+ |:-------------:|:------:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
64
+ | 0.1171 | 1.0466 | 2000 | 0.5329 | -1.4521 | -2.9272 | 0.7734 | 1.4750 | -283.6535 | -266.1376 | -2.8897 | -2.9362 |
65
+ | 0.0086 | 2.0931 | 4000 | 0.7141 | -5.3346 | -8.3118 | 0.7891 | 2.9772 | -337.4994 | -304.9619 | -2.7812 | -2.8272 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.41.2
71
+ - Pytorch 2.1.0+cu118
72
+ - Datasets 2.20.0
73
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -2.7541587352752686,
4
+ "eval_logits/rejected": -2.7098710536956787,
5
+ "eval_logps/chosen": -318.3198547363281,
6
+ "eval_logps/rejected": -354.8788757324219,
7
+ "eval_loss": 0.7910895347595215,
8
+ "eval_rewards/accuracies": 0.7890625,
9
+ "eval_rewards/chosen": -6.6703782081604,
10
+ "eval_rewards/margins": 3.3793439865112305,
11
+ "eval_rewards/rejected": -10.049721717834473,
12
+ "eval_runtime": 82.4302,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 24.263,
15
+ "eval_steps_per_second": 0.388,
16
+ "total_flos": 0.0,
17
+ "train_loss": 0.22024025758457094,
18
+ "train_runtime": 20844.5321,
19
+ "train_samples": 61134,
20
+ "train_samples_per_second": 8.799,
21
+ "train_steps_per_second": 0.275
22
+ }
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "HuggingFaceH4/zephyr-7b-beta",
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
+ "pad_token_id": 2,
19
+ "rms_norm_eps": 1e-05,
20
+ "rope_theta": 10000.0,
21
+ "sliding_window": 4096,
22
+ "tie_word_embeddings": false,
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.41.2",
25
+ "use_cache": true,
26
+ "vocab_size": 32000
27
+ }
configs.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mamba_0_5:
2
+ prompt_template: "zephyr-7b-alpha/prompt.txt"
3
+ fn_completions: "huggingface_local_completions"
4
+ completions_kwargs:
5
+ model_name: "/data/junxiong/sft/zephyr_0_5_dpo_open_not_openhermes_progressive_train_largest_dataset_ep3/"
6
+ model_kwargs:
7
+ torch_dtype: 'bfloat16'
8
+ max_new_tokens: 2048
9
+ temperature: 0.7
10
+ top_p: 1.0
11
+ do_sample: True
12
+ pretty_name: "Mamba 0 5 From Zephyr 7B Beta"
13
+ link: "https://huggingface.co/HuggingFaceH4/zephyr-7b-beta"
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -2.7541587352752686,
4
+ "eval_logits/rejected": -2.7098710536956787,
5
+ "eval_logps/chosen": -318.3198547363281,
6
+ "eval_logps/rejected": -354.8788757324219,
7
+ "eval_loss": 0.7910895347595215,
8
+ "eval_rewards/accuracies": 0.7890625,
9
+ "eval_rewards/chosen": -6.6703782081604,
10
+ "eval_rewards/margins": 3.3793439865112305,
11
+ "eval_rewards/rejected": -10.049721717834473,
12
+ "eval_runtime": 82.4302,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 24.263,
15
+ "eval_steps_per_second": 0.388
16
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.41.2"
6
+ }
mamba_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "d_model": 4096,
3
+ "ssm_cfg": {
4
+ "expand": 1
5
+ },
6
+ "rms_norm_eps": 1e-05,
7
+ "vocab_size": null,
8
+ "d_xb": 1024,
9
+ "intermediate_size": 14336,
10
+ "hidden_act": "silu",
11
+ "n_layer": 32,
12
+ "attn_layers": [
13
+ 1,
14
+ 3,
15
+ 5,
16
+ 7,
17
+ 9,
18
+ 11,
19
+ 13,
20
+ 15,
21
+ 17,
22
+ 19,
23
+ 21,
24
+ 23,
25
+ 25,
26
+ 27,
27
+ 29,
28
+ 31
29
+ ]
30
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0258c344bffe00276118e65a9664d3217bebd14a2de31bd7a40e434ef0ad9847
3
+ size 30181056602
special_tokens_map.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<unk>",
4
+ "<s>",
5
+ "</s>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<s>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "unk_token": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "<unk>",
32
+ "<s>",
33
+ "</s>"
34
+ ],
35
+ "bos_token": "<s>",
36
+ "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 %}",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "legacy": true,
40
+ "model_max_length": 2048,
41
+ "pad_token": "</s>",
42
+ "sp_model_kwargs": {},
43
+ "spaces_between_special_tokens": false,
44
+ "tokenizer_class": "LlamaTokenizer",
45
+ "truncation_side": "left",
46
+ "unk_token": "<unk>",
47
+ "use_default_system_prompt": true
48
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.22024025758457094,
5
+ "train_runtime": 20844.5321,
6
+ "train_samples": 61134,
7
+ "train_samples_per_second": 8.799,
8
+ "train_steps_per_second": 0.275
9
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f6692bffc5b663e51cbee4638b95ae89bfe2b19f201382e1bdb43bec6fc69ef
3
+ size 6328