amazingvince
commited on
Commit
•
7d3854d
1
Parent(s):
7938e13
Model save
Browse files- README.md +72 -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_20-48-27_VincentPC/events.out.tfevents.1700531314.VincentPC.14406.0 +3 -0
- runs/Nov20_20-48-27_VincentPC/events.out.tfevents.1700536318.VincentPC.14406.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,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-1-epoch
|
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-1-epoch
|
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.5661
|
19 |
+
- Rewards/chosen: 0.0614
|
20 |
+
- Rewards/rejected: -0.4791
|
21 |
+
- Rewards/accuracies: 0.6810
|
22 |
+
- Rewards/margins: 0.5405
|
23 |
+
- Logps/rejected: -447.3311
|
24 |
+
- Logps/chosen: -587.6553
|
25 |
+
- Logits/rejected: -4.9351
|
26 |
+
- Logits/chosen: -5.2302
|
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.05
|
56 |
+
- num_epochs: 1
|
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.6597 | 0.26 | 1000 | 0.5887 | -0.0788 | -0.5504 | 0.6700 | 0.4715 | -448.0441 | -589.0577 | -4.7945 | -5.0906 |
|
63 |
+
| 0.5306 | 0.52 | 2000 | 0.5740 | 0.0053 | -0.5021 | 0.6840 | 0.5074 | -447.5612 | -588.2166 | -4.8585 | -5.1486 |
|
64 |
+
| 0.6036 | 0.77 | 3000 | 0.5676 | 0.0550 | -0.4785 | 0.6890 | 0.5335 | -447.3253 | -587.7193 | -4.9388 | -5.2343 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.35.0
|
70 |
+
- Pytorch 2.1.0
|
71 |
+
- Datasets 2.14.6
|
72 |
+
- Tokenizers 0.14.1
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -5.230160236358643,
|
4 |
+
"eval_logits/rejected": -4.935074329376221,
|
5 |
+
"eval_logps/chosen": -587.6553344726562,
|
6 |
+
"eval_logps/rejected": -447.3310852050781,
|
7 |
+
"eval_loss": 0.5660516619682312,
|
8 |
+
"eval_rewards/accuracies": 0.6809999942779541,
|
9 |
+
"eval_rewards/chosen": 0.06142662093043327,
|
10 |
+
"eval_rewards/margins": 0.5404847264289856,
|
11 |
+
"eval_rewards/rejected": -0.4790581166744232,
|
12 |
+
"eval_runtime": 108.3952,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 18.451,
|
15 |
+
"eval_steps_per_second": 1.153,
|
16 |
+
"train_loss": 0.5843773977780509,
|
17 |
+
"train_runtime": 4895.0541,
|
18 |
+
"train_samples": 61966,
|
19 |
+
"train_samples_per_second": 12.659,
|
20 |
+
"train_steps_per_second": 0.791
|
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": 1.0,
|
3 |
+
"eval_logits/chosen": -5.230160236358643,
|
4 |
+
"eval_logits/rejected": -4.935074329376221,
|
5 |
+
"eval_logps/chosen": -587.6553344726562,
|
6 |
+
"eval_logps/rejected": -447.3310852050781,
|
7 |
+
"eval_loss": 0.5660516619682312,
|
8 |
+
"eval_rewards/accuracies": 0.6809999942779541,
|
9 |
+
"eval_rewards/chosen": 0.06142662093043327,
|
10 |
+
"eval_rewards/margins": 0.5404847264289856,
|
11 |
+
"eval_rewards/rejected": -0.4790581166744232,
|
12 |
+
"eval_runtime": 108.3952,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 18.451,
|
15 |
+
"eval_steps_per_second": 1.153
|
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:4d8a6581429ab1777c57933c066a11845f950de0ac647a134ee4d1d4851862d6
|
3 |
+
size 202532568
|
runs/Nov20_20-48-27_VincentPC/events.out.tfevents.1700531314.VincentPC.14406.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:74894e7d02cad13f72e54bbc6df3915c78e0428d6abf2d7ebba237e5168c7a31
|
3 |
+
size 252828
|
runs/Nov20_20-48-27_VincentPC/events.out.tfevents.1700536318.VincentPC.14406.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f6754da3bfd10b67e0b2f53da516c71f42d399c4c866b7e977db4af1a03dfe3
|
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": 1.0,
|
3 |
+
"train_loss": 0.5843773977780509,
|
4 |
+
"train_runtime": 4895.0541,
|
5 |
+
"train_samples": 61966,
|
6 |
+
"train_samples_per_second": 12.659,
|
7 |
+
"train_steps_per_second": 0.791
|
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:9f9caf5864401b77ea7fa19fec068be8525068daea4c72df8d140267d3f03167
|
3 |
+
size 5752
|