amazingvince
commited on
Commit
•
be3400c
1
Parent(s):
164f59b
Model save
Browse files- README.md +80 -0
- all_results.json +21 -0
- config.json +27 -0
- eval_results.json +16 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- runs/Nov20_08-23-26_VincentPC/events.out.tfevents.1700486695.VincentPC.27019.0 +3 -0
- runs/Nov20_10-27-35_VincentPC/events.out.tfevents.1700494067.VincentPC.10612.0 +3 -0
- runs/Nov20_10-31-10_VincentPC/events.out.tfevents.1700494279.VincentPC.12424.0 +3 -0
- runs/Nov20_12-53-06_VincentPC/events.out.tfevents.1700502799.VincentPC.18560.0 +3 -0
- runs/Nov20_12-53-06_VincentPC/events.out.tfevents.1700517603.VincentPC.18560.1 +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +41 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: amazingvince/zephyr-smol_llama-100m-sft-full
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: zephyr-smol_llama-100m-dpo-full
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# zephyr-smol_llama-100m-dpo-full
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [amazingvince/zephyr-smol_llama-100m-sft-full](https://huggingface.co/amazingvince/zephyr-smol_llama-100m-sft-full) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.5465
|
19 |
+
- Rewards/chosen: -0.0518
|
20 |
+
- Rewards/rejected: -0.7661
|
21 |
+
- Rewards/accuracies: 0.7170
|
22 |
+
- Rewards/margins: 0.7143
|
23 |
+
- Logps/rejected: -450.2018
|
24 |
+
- Logps/chosen: -588.7877
|
25 |
+
- Logits/rejected: -4.9602
|
26 |
+
- Logits/chosen: -5.2468
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 5e-07
|
46 |
+
- train_batch_size: 8
|
47 |
+
- eval_batch_size: 8
|
48 |
+
- seed: 42
|
49 |
+
- distributed_type: multi-GPU
|
50 |
+
- num_devices: 2
|
51 |
+
- total_train_batch_size: 16
|
52 |
+
- total_eval_batch_size: 16
|
53 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- lr_scheduler_warmup_ratio: 0.1
|
56 |
+
- num_epochs: 3
|
57 |
+
|
58 |
+
### Training results
|
59 |
+
|
60 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
61 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
62 |
+
| 0.6549 | 0.26 | 1000 | 0.6037 | -0.1205 | -0.4850 | 0.6550 | 0.3644 | -447.3903 | -589.4750 | -4.7410 | -5.0341 |
|
63 |
+
| 0.5349 | 0.52 | 2000 | 0.5779 | -0.0126 | -0.5080 | 0.6770 | 0.4955 | -447.6208 | -588.3951 | -4.8645 | -5.1463 |
|
64 |
+
| 0.6029 | 0.77 | 3000 | 0.5657 | 0.0902 | -0.4636 | 0.6900 | 0.5538 | -447.1767 | -587.3674 | -5.0016 | -5.2911 |
|
65 |
+
| 0.5273 | 1.03 | 4000 | 0.5596 | 0.0496 | -0.5449 | 0.7040 | 0.5944 | -447.9891 | -587.7738 | -4.9972 | -5.2892 |
|
66 |
+
| 0.5 | 1.29 | 5000 | 0.5557 | 0.0585 | -0.6110 | 0.7050 | 0.6695 | -448.6505 | -587.6843 | -5.0108 | -5.3047 |
|
67 |
+
| 0.5056 | 1.55 | 6000 | 0.5499 | 0.0054 | -0.6719 | 0.7130 | 0.6773 | -449.2598 | -588.2154 | -4.9988 | -5.2907 |
|
68 |
+
| 0.4608 | 1.81 | 7000 | 0.5500 | -0.0376 | -0.7494 | 0.7030 | 0.7118 | -450.0341 | -588.6455 | -5.0549 | -5.3406 |
|
69 |
+
| 0.426 | 2.07 | 8000 | 0.5472 | -0.0106 | -0.7021 | 0.7100 | 0.6916 | -449.5617 | -588.3751 | -4.9750 | -5.2626 |
|
70 |
+
| 0.3875 | 2.32 | 9000 | 0.5464 | -0.0011 | -0.7171 | 0.7140 | 0.7159 | -449.7113 | -588.2810 | -4.9935 | -5.2796 |
|
71 |
+
| 0.397 | 2.58 | 10000 | 0.5462 | -0.0391 | -0.7566 | 0.7190 | 0.7175 | -450.1064 | -588.6602 | -4.9737 | -5.2618 |
|
72 |
+
| 0.4486 | 2.84 | 11000 | 0.5459 | -0.0493 | -0.7667 | 0.7110 | 0.7174 | -450.2074 | -588.7629 | -4.9569 | -5.2441 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.35.0
|
78 |
+
- Pytorch 2.1.0
|
79 |
+
- Datasets 2.14.6
|
80 |
+
- Tokenizers 0.14.1
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -5.246756553649902,
|
4 |
+
"eval_logits/rejected": -4.960155010223389,
|
5 |
+
"eval_logps/chosen": -588.7877197265625,
|
6 |
+
"eval_logps/rejected": -450.20184326171875,
|
7 |
+
"eval_loss": 0.5464638471603394,
|
8 |
+
"eval_rewards/accuracies": 0.7170000076293945,
|
9 |
+
"eval_rewards/chosen": -0.05181777477264404,
|
10 |
+
"eval_rewards/margins": 0.7143149375915527,
|
11 |
+
"eval_rewards/rejected": -0.7661327123641968,
|
12 |
+
"eval_runtime": 103.5267,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 19.319,
|
15 |
+
"eval_steps_per_second": 1.207,
|
16 |
+
"train_loss": 0.49318724932753905,
|
17 |
+
"train_runtime": 14700.0435,
|
18 |
+
"train_samples": 61966,
|
19 |
+
"train_samples_per_second": 12.646,
|
20 |
+
"train_steps_per_second": 0.79
|
21 |
+
}
|
config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "amazingvince/zephyr-smol_llama-100m-sft-full",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"max_position_embeddings": 1024,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 24,
|
16 |
+
"num_hidden_layers": 6,
|
17 |
+
"num_key_value_heads": 8,
|
18 |
+
"pretraining_tp": 1,
|
19 |
+
"rms_norm_eps": 1e-05,
|
20 |
+
"rope_scaling": null,
|
21 |
+
"rope_theta": 10000.0,
|
22 |
+
"tie_word_embeddings": false,
|
23 |
+
"torch_dtype": "bfloat16",
|
24 |
+
"transformers_version": "4.35.0",
|
25 |
+
"use_cache": false,
|
26 |
+
"vocab_size": 32128
|
27 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -5.246756553649902,
|
4 |
+
"eval_logits/rejected": -4.960155010223389,
|
5 |
+
"eval_logps/chosen": -588.7877197265625,
|
6 |
+
"eval_logps/rejected": -450.20184326171875,
|
7 |
+
"eval_loss": 0.5464638471603394,
|
8 |
+
"eval_rewards/accuracies": 0.7170000076293945,
|
9 |
+
"eval_rewards/chosen": -0.05181777477264404,
|
10 |
+
"eval_rewards/margins": 0.7143149375915527,
|
11 |
+
"eval_rewards/rejected": -0.7661327123641968,
|
12 |
+
"eval_runtime": 103.5267,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 19.319,
|
15 |
+
"eval_steps_per_second": 1.207
|
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.35.0"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11254ff1350269e3a1552bd5d84c022f39edb984d4c1188f7643e68b5b528916
|
3 |
+
size 202532568
|
runs/Nov20_08-23-26_VincentPC/events.out.tfevents.1700486695.VincentPC.27019.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6705abed88efa762f0379d2602a2e450c80faf5569f7f0d15aada6cffbb4df66
|
3 |
+
size 46556
|
runs/Nov20_10-27-35_VincentPC/events.out.tfevents.1700494067.VincentPC.10612.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8021775699e0024e0bdc843370ebcac3585c3d27d9d6487dfc2fdc1d1e4e0df
|
3 |
+
size 4959
|
runs/Nov20_10-31-10_VincentPC/events.out.tfevents.1700494279.VincentPC.12424.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:850efafee7b1b265a37d9e47b81bb9dee15b04a404909bac97308730fa9a57b0
|
3 |
+
size 50478
|
runs/Nov20_12-53-06_VincentPC/events.out.tfevents.1700502799.VincentPC.18560.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:012be864f5f6aa6eb4ba5fb26913c6851af67f64931d59d7e2c629f7689e2cf0
|
3 |
+
size 749418
|
runs/Nov20_12-53-06_VincentPC/events.out.tfevents.1700517603.VincentPC.18560.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d79b5dd8ae5070ae78faae280c6bec597473bdc5ca2175cacd7b0978eabae236
|
3 |
+
size 828
|
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.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,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"spaces_between_special_tokens": false,
|
38 |
+
"tokenizer_class": "LlamaTokenizer",
|
39 |
+
"unk_token": "<unk>",
|
40 |
+
"use_default_system_prompt": true
|
41 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"train_loss": 0.49318724932753905,
|
4 |
+
"train_runtime": 14700.0435,
|
5 |
+
"train_samples": 61966,
|
6 |
+
"train_samples_per_second": 12.646,
|
7 |
+
"train_steps_per_second": 0.79
|
8 |
+
}
|
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:37f048b150d90e7d6fa7099074c9828acc64ffd7e97ab89372928ba11890d17f
|
3 |
+
size 5688
|