SebastianSchramm commited on
Commit
cb45edb
1 Parent(s): 9e750ce

Model save

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ model-index:
5
+ - name: tinyllama-1.1B-intermediate-step-715k-1.5T-dpo-lora
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
10
+ should probably proofread and complete it, then remove this comment. -->
11
+
12
+ # tinyllama-1.1B-intermediate-step-715k-1.5T-dpo-lora
13
+
14
+ This model was trained from scratch on the None dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Loss: 0.6877
17
+ - Rewards/chosen: 0.0254
18
+ - Rewards/rejected: 0.0135
19
+ - Rewards/accuracies: 0.5645
20
+ - Rewards/margins: 0.0119
21
+ - Logps/rejected: -315.6106
22
+ - Logps/chosen: -402.4017
23
+ - Logits/rejected: -4.0818
24
+ - Logits/chosen: -4.1916
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 5e-07
44
+ - train_batch_size: 2
45
+ - eval_batch_size: 4
46
+ - seed: 42
47
+ - distributed_type: multi-GPU
48
+ - gradient_accumulation_steps: 32
49
+ - total_train_batch_size: 64
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_ratio: 0.1
53
+ - num_epochs: 3
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
59
+ | 0.6916 | 1.0 | 968 | 0.6921 | 0.0039 | 0.0011 | 0.5070 | 0.0028 | -315.7343 | -402.6164 | -4.0813 | -4.1913 |
60
+ | 0.6904 | 2.0 | 1936 | 0.6884 | 0.0191 | 0.0086 | 0.5570 | 0.0105 | -315.6588 | -402.4643 | -4.0824 | -4.1920 |
61
+ | 0.6876 | 3.0 | 2904 | 0.6877 | 0.0254 | 0.0135 | 0.5645 | 0.0119 | -315.6106 | -402.4017 | -4.0818 | -4.1916 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.35.0
67
+ - Pytorch 2.1.0+cu121
68
+ - Datasets 2.14.6
69
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "SebastianSchramm/tinyllama-1.1B-intermediate-step-715k-1.5T-sft-lora-merged",
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
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "v_proj",
20
+ "o_proj",
21
+ "q_proj",
22
+ "k_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8ff0c74b34643eff3dc8d8ba700c641227b39f2e9980347c5d5e69af64dd6f8
3
+ size 72113224
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -4.191605567932129,
4
+ "eval_logits/rejected": -4.081777572631836,
5
+ "eval_logps/chosen": -402.4017333984375,
6
+ "eval_logps/rejected": -315.6105651855469,
7
+ "eval_loss": 0.6876626014709473,
8
+ "eval_rewards/accuracies": 0.5644999742507935,
9
+ "eval_rewards/chosen": 0.025381002575159073,
10
+ "eval_rewards/margins": 0.011920945718884468,
11
+ "eval_rewards/rejected": 0.013460054062306881,
12
+ "eval_runtime": 777.3765,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 2.573,
15
+ "eval_steps_per_second": 0.643,
16
+ "train_loss": 0.6907179896044994,
17
+ "train_runtime": 111372.3355,
18
+ "train_samples": 61966,
19
+ "train_samples_per_second": 1.669,
20
+ "train_steps_per_second": 0.026
21
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -4.191605567932129,
4
+ "eval_logits/rejected": -4.081777572631836,
5
+ "eval_logps/chosen": -402.4017333984375,
6
+ "eval_logps/rejected": -315.6105651855469,
7
+ "eval_loss": 0.6876626014709473,
8
+ "eval_rewards/accuracies": 0.5644999742507935,
9
+ "eval_rewards/chosen": 0.025381002575159073,
10
+ "eval_rewards/margins": 0.011920945718884468,
11
+ "eval_rewards/rejected": 0.013460054062306881,
12
+ "eval_runtime": 777.3765,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 2.573,
15
+ "eval_steps_per_second": 0.643
16
+ }
runs/Nov12_12-39-07_sebastian-dell/events.out.tfevents.1699789155.sebastian-dell.51009.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13134646747ac148fd878b532fcc8498b8c49b26ada3eea8d79ac0199ead8f4b
3
+ size 191548
runs/Nov12_12-39-07_sebastian-dell/events.out.tfevents.1699901305.sebastian-dell.51009.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0d6b1c306a1e0569c8ff0790b68b65ad1d0bee4997fcdace13b103d3da4cf29
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_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "tokenizer_class": "LlamaTokenizer",
38
+ "unk_token": "<unk>",
39
+ "use_default_system_prompt": false
40
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.6907179896044994,
4
+ "train_runtime": 111372.3355,
5
+ "train_samples": 61966,
6
+ "train_samples_per_second": 1.669,
7
+ "train_steps_per_second": 0.026
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:e540bfcb141d683b819b3b5de88c55baa43bf7813a466523b763fb2090be2ac9
3
+ size 4856