MM-AdaptionLabs commited on
Commit
cf23ec4
·
verified ·
1 Parent(s): ec444ae

Add 12 files

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
+ training-metrics.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
3
+ library_name: peft
4
+ license: other
5
+ tags:
6
+ - lora
7
+ - peft
8
+ - adapter
9
+ - adaption
10
+ ---
11
+
12
+ # adaption_diverse_ai_task_samples
13
+
14
+ ## Model Training
15
+
16
+ A LORA adapter for `mistralai/Mixtral-8x7B-Instruct-v0.1`. This model was trained with SFT using [Adaption](https://adaptionlabs.ai)'s AutoScientist on the diverse_ai_task_samples dataset.
17
+
18
+
19
+ ![Training metrics](training-metrics.png)
20
+
21
+ ### AutoScientist Config
22
+
23
+ ```json
24
+ {
25
+ "job_id": "34447162-a1f5-49ba-ab92-d9ad159c85a0",
26
+ "training_experiment_id": "77bacf88-1a66-492e-9e7d-2e5d1cb4fab5",
27
+ "original_model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
28
+ "trained_model_name": "adaption_diverse_ai_task_samples",
29
+ "training_method": "sft",
30
+ "training_type": "lora",
31
+ "data_format": "chat",
32
+ "hyperparams": {
33
+ "lora": "true",
34
+ "lora_r": 16,
35
+ "n_evals": 5,
36
+ "n_epochs": 4,
37
+ "batch_size": "max",
38
+ "lora_alpha": 32,
39
+ "lora_dropout": 0.1,
40
+ "min_lr_ratio": 0.1,
41
+ "warmup_ratio": 0.05,
42
+ "weight_decay": 0.01,
43
+ "learning_rate": 0.00004,
44
+ "max_grad_norm": 1,
45
+ "base_model_size": "46.7B",
46
+ "train_on_inputs": "false",
47
+ "training_method": "sft",
48
+ "lr_scheduler_type": "cosine",
49
+ "scheduler_num_cycles": 0.5,
50
+ "lora_trainable_modules": "all-linear"
51
+ }
52
+ }
53
+ ```
54
+
55
+ ## Training Data
56
+
57
+ The model was trained on 795 rows of adapted data with the following domain distribution: entertainment (12%), language (11%), academic-education (9%), news (8%), history (8%), science (8%), writing-editing-communication (7%), math (6%), sports (6%), other (4%), data-analysis-visualization (3%), social (2%), geography (2%), games (2%), how-to (2%), medical (2%), religion (2%), governance (2%), personal-growth (2%), art (1%), code (1%), cooking (1%), culture (1%), animal-nature (1%), product-advice (1%), logic (1%), music (1%), dating (1%), roleplay (1%), technology (1%).
58
+
59
+ ## Model Evaluation
60
+
61
+ The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.
62
+
63
+
64
+ ![Win rates](win-rates.png)
65
+
66
+
67
+ ## How to use
68
+
69
+ ```bash
70
+ pip install torch transformers peft
71
+ ```
72
+
73
+ ```python
74
+ import torch
75
+ from transformers import AutoModelForCausalLM, AutoTokenizer
76
+ from peft import PeftModel
77
+
78
+ BASE = "mistralai/Mixtral-8x7B-Instruct-v0.1"
79
+ ADAPTER = "<this-repo-id>"
80
+
81
+ device = "cuda" if torch.cuda.is_available() else "cpu"
82
+ dtype = torch.float32 if device == "cpu" else torch.bfloat16
83
+
84
+ base = AutoModelForCausalLM.from_pretrained(BASE, dtype=dtype).to(device)
85
+ model = PeftModel.from_pretrained(base, ADAPTER)
86
+ # Optional: merge the LoRA weights into the base for faster inference
87
+ model = model.merge_and_unload()
88
+ model.eval()
89
+
90
+ tokenizer = AutoTokenizer.from_pretrained(BASE)
91
+ messages = [{"role": "user", "content": "Hello!"}]
92
+ text = tokenizer.apply_chat_template(
93
+ messages, tokenize=False, add_generation_prompt=True)
94
+ inputs = tokenizer(text, return_tensors="pt").to(device)
95
+
96
+ with torch.inference_mode():
97
+ out = model.generate(**inputs, max_new_tokens=512)
98
+ print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
99
+ ```
adapter_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mixtral-8x7B-Instruct-v0.1",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": [],
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 32,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.10000000149011612,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 16,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "q_proj",
28
+ "v_proj",
29
+ "k_proj",
30
+ "o_proj"
31
+ ],
32
+ "task_type": "CAUSAL_LM",
33
+ "trainable_token_indices": null,
34
+ "use_dora": false,
35
+ "use_rslora": false
36
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af94c1b8b886457850757cc30053f845f1470116a26671a31031d29bc73326ba
3
+ size 54560368
chat_template.jinja ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if messages[0]['role'] == 'system' %}
2
+ {%- set system_message = messages[0]['content'] %}
3
+ {%- set loop_messages = messages[1:] %}
4
+ {%- else %}
5
+ {%- set loop_messages = messages %}
6
+ {%- endif %}
7
+
8
+ {{- bos_token }}
9
+ {%- for message in loop_messages %}
10
+ {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}
11
+ {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}
12
+ {%- endif %}
13
+ {%- if message['role'] == 'user' %}
14
+ {%- if loop.first and system_message is defined %}
15
+ {{- ' [INST] ' + system_message + '\n\n' + message['content'] + ' [/INST]' }}
16
+ {%- else %}
17
+ {{- ' [INST] ' + message['content'] + ' [/INST]' }}
18
+ {%- endif %}
19
+ {%- elif message['role'] == 'assistant' %}
20
+ {{- ' ' + message['content'] + eos_token}}
21
+ {%- else %}
22
+ {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}
23
+ {%- endif %}
24
+ {%- endfor %}
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MixtralForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 1,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 2,
9
+ "head_dim": null,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 14336,
14
+ "max_position_embeddings": 32768,
15
+ "model_type": "mixtral",
16
+ "num_attention_heads": 32,
17
+ "num_experts_per_tok": 2,
18
+ "num_hidden_layers": 32,
19
+ "num_key_value_heads": 8,
20
+ "num_local_experts": 8,
21
+ "output_router_logits": false,
22
+ "pad_token_id": 2,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_theta": 1000000.0,
25
+ "router_aux_loss_coef": 0.02,
26
+ "router_jitter_noise": 0.0,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": false,
29
+ "transformers_version": "4.57.0",
30
+ "use_cache": false,
31
+ "vocab_size": 32000,
32
+ "torch_dtype": "bfloat16"
33
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 32768,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "tokenizer_class": "LlamaTokenizer",
43
+ "unk_token": "<unk>",
44
+ "use_default_system_prompt": false
45
+ }
trainer_state.json ADDED
@@ -0,0 +1,774 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 4.0,
6
+ "eval_steps": 20,
7
+ "global_step": 100,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.04,
14
+ "grad_norm": 0.4760715663433075,
15
+ "learning_rate": 0.0,
16
+ "loss": 1.4658,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.08,
21
+ "grad_norm": 0.5013044476509094,
22
+ "learning_rate": 8.000000000000001e-06,
23
+ "loss": 1.4224,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.12,
28
+ "grad_norm": 0.2839778661727905,
29
+ "learning_rate": 1.6000000000000003e-05,
30
+ "loss": 1.125,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.16,
35
+ "grad_norm": 0.33960863947868347,
36
+ "learning_rate": 2.4e-05,
37
+ "loss": 1.238,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.2,
42
+ "grad_norm": 0.416923850774765,
43
+ "learning_rate": 3.2000000000000005e-05,
44
+ "loss": 1.2939,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.24,
49
+ "grad_norm": 0.5548073649406433,
50
+ "learning_rate": 4e-05,
51
+ "loss": 1.4395,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.28,
56
+ "grad_norm": 0.7273683547973633,
57
+ "learning_rate": 3.999015863213667e-05,
58
+ "loss": 1.5093,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.32,
63
+ "grad_norm": 0.5051376223564148,
64
+ "learning_rate": 3.996064528993794e-05,
65
+ "loss": 1.1609,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.36,
70
+ "grad_norm": 0.49626877903938293,
71
+ "learning_rate": 3.9911492245810205e-05,
72
+ "loss": 1.3969,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.4,
77
+ "grad_norm": 0.42138198018074036,
78
+ "learning_rate": 3.9842753247885556e-05,
79
+ "loss": 1.1953,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.44,
84
+ "grad_norm": 0.5137280821800232,
85
+ "learning_rate": 3.975450346124901e-05,
86
+ "loss": 1.3467,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.48,
91
+ "grad_norm": 0.2119121551513672,
92
+ "learning_rate": 3.964683938574657e-05,
93
+ "loss": 0.811,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.52,
98
+ "grad_norm": 0.28574588894844055,
99
+ "learning_rate": 3.9519878750464104e-05,
100
+ "loss": 1.1553,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.56,
105
+ "grad_norm": 0.3548891842365265,
106
+ "learning_rate": 3.937376038499228e-05,
107
+ "loss": 1.1643,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.6,
112
+ "grad_norm": 0.32107675075531006,
113
+ "learning_rate": 3.920864406761844e-05,
114
+ "loss": 1.186,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.64,
119
+ "grad_norm": 0.4450090527534485,
120
+ "learning_rate": 3.9024710350611426e-05,
121
+ "loss": 1.297,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.68,
126
+ "grad_norm": 0.3887384235858917,
127
+ "learning_rate": 3.88221603627903e-05,
128
+ "loss": 1.2583,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.72,
133
+ "grad_norm": 0.2024194747209549,
134
+ "learning_rate": 3.860121558959293e-05,
135
+ "loss": 1.1979,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.76,
140
+ "grad_norm": 0.164462149143219,
141
+ "learning_rate": 3.836211763088493e-05,
142
+ "loss": 1.0645,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.8,
147
+ "grad_norm": 0.07839324325323105,
148
+ "learning_rate": 3.8105127936773746e-05,
149
+ "loss": 0.7288,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 0.8,
154
+ "eval_loss": 0.855224609375,
155
+ "eval_runtime": 2.1713,
156
+ "eval_samples_per_second": 2.303,
157
+ "eval_steps_per_second": 0.461,
158
+ "step": 20
159
+ },
160
+ {
161
+ "epoch": 0.84,
162
+ "grad_norm": 0.13838034868240356,
163
+ "learning_rate": 3.78305275217168e-05,
164
+ "loss": 1.1664,
165
+ "step": 21
166
+ },
167
+ {
168
+ "epoch": 0.88,
169
+ "grad_norm": 0.20036262273788452,
170
+ "learning_rate": 3.7538616657236334e-05,
171
+ "loss": 1.2454,
172
+ "step": 22
173
+ },
174
+ {
175
+ "epoch": 0.92,
176
+ "grad_norm": 0.08870978653430939,
177
+ "learning_rate": 3.722971454357684e-05,
178
+ "loss": 0.9868,
179
+ "step": 23
180
+ },
181
+ {
182
+ "epoch": 0.96,
183
+ "grad_norm": 0.08468154072761536,
184
+ "learning_rate": 3.6904158960664365e-05,
185
+ "loss": 1.0046,
186
+ "step": 24
187
+ },
188
+ {
189
+ "epoch": 1.0,
190
+ "grad_norm": 0.1123848706483841,
191
+ "learning_rate": 3.656230589874905e-05,
192
+ "loss": 1.1274,
193
+ "step": 25
194
+ },
195
+ {
196
+ "epoch": 1.04,
197
+ "grad_norm": 0.11019331961870193,
198
+ "learning_rate": 3.6204529169135086e-05,
199
+ "loss": 1.156,
200
+ "step": 26
201
+ },
202
+ {
203
+ "epoch": 1.08,
204
+ "grad_norm": 0.10665232688188553,
205
+ "learning_rate": 3.5831219995423466e-05,
206
+ "loss": 1.1367,
207
+ "step": 27
208
+ },
209
+ {
210
+ "epoch": 1.12,
211
+ "grad_norm": 0.08694541454315186,
212
+ "learning_rate": 3.544278658571477e-05,
213
+ "loss": 0.9375,
214
+ "step": 28
215
+ },
216
+ {
217
+ "epoch": 1.16,
218
+ "grad_norm": 0.0901435911655426,
219
+ "learning_rate": 3.5039653686239606e-05,
220
+ "loss": 1.0381,
221
+ "step": 29
222
+ },
223
+ {
224
+ "epoch": 1.2,
225
+ "grad_norm": 0.09067416191101074,
226
+ "learning_rate": 3.4622262116904795e-05,
227
+ "loss": 1.0396,
228
+ "step": 30
229
+ },
230
+ {
231
+ "epoch": 1.24,
232
+ "grad_norm": 0.09607220441102982,
233
+ "learning_rate": 3.419106828926334e-05,
234
+ "loss": 1.1133,
235
+ "step": 31
236
+ },
237
+ {
238
+ "epoch": 1.28,
239
+ "grad_norm": 0.09983466565608978,
240
+ "learning_rate": 3.374654370743504e-05,
241
+ "loss": 1.1624,
242
+ "step": 32
243
+ },
244
+ {
245
+ "epoch": 1.32,
246
+ "grad_norm": 0.08482648432254791,
247
+ "learning_rate": 3.328917445252367e-05,
248
+ "loss": 0.9143,
249
+ "step": 33
250
+ },
251
+ {
252
+ "epoch": 1.3599999999999999,
253
+ "grad_norm": 0.10168825834989548,
254
+ "learning_rate": 3.281946065109445e-05,
255
+ "loss": 1.1602,
256
+ "step": 34
257
+ },
258
+ {
259
+ "epoch": 1.4,
260
+ "grad_norm": 0.08425932377576828,
261
+ "learning_rate": 3.233791592829299e-05,
262
+ "loss": 1.0061,
263
+ "step": 35
264
+ },
265
+ {
266
+ "epoch": 1.44,
267
+ "grad_norm": 0.09837682545185089,
268
+ "learning_rate": 3.1845066846203686e-05,
269
+ "loss": 1.1282,
270
+ "step": 36
271
+ },
272
+ {
273
+ "epoch": 1.48,
274
+ "grad_norm": 0.05306907743215561,
275
+ "learning_rate": 3.134145232806188e-05,
276
+ "loss": 0.7241,
277
+ "step": 37
278
+ },
279
+ {
280
+ "epoch": 1.52,
281
+ "grad_norm": 0.08243704587221146,
282
+ "learning_rate": 3.082762306894915e-05,
283
+ "loss": 1.0229,
284
+ "step": 38
285
+ },
286
+ {
287
+ "epoch": 1.56,
288
+ "grad_norm": 0.07551784068346024,
289
+ "learning_rate": 3.0304140933616387e-05,
290
+ "loss": 1.0286,
291
+ "step": 39
292
+ },
293
+ {
294
+ "epoch": 1.6,
295
+ "grad_norm": 0.08548041433095932,
296
+ "learning_rate": 2.977157834209287e-05,
297
+ "loss": 1.0471,
298
+ "step": 40
299
+ },
300
+ {
301
+ "epoch": 1.6,
302
+ "eval_loss": 0.798828125,
303
+ "eval_runtime": 2.202,
304
+ "eval_samples_per_second": 2.271,
305
+ "eval_steps_per_second": 0.454,
306
+ "step": 40
307
+ },
308
+ {
309
+ "epoch": 1.6400000000000001,
310
+ "grad_norm": 0.08860009163618088,
311
+ "learning_rate": 2.9230517643753457e-05,
312
+ "loss": 1.1273,
313
+ "step": 41
314
+ },
315
+ {
316
+ "epoch": 1.6800000000000002,
317
+ "grad_norm": 0.09040582180023193,
318
+ "learning_rate": 2.8681550480527974e-05,
319
+ "loss": 1.1182,
320
+ "step": 42
321
+ },
322
+ {
323
+ "epoch": 1.72,
324
+ "grad_norm": 0.07563644647598267,
325
+ "learning_rate": 2.812527713994958e-05,
326
+ "loss": 1.0964,
327
+ "step": 43
328
+ },
329
+ {
330
+ "epoch": 1.76,
331
+ "grad_norm": 0.07461907714605331,
332
+ "learning_rate": 2.7562305898749054e-05,
333
+ "loss": 0.9688,
334
+ "step": 44
335
+ },
336
+ {
337
+ "epoch": 1.8,
338
+ "grad_norm": 0.04516046494245529,
339
+ "learning_rate": 2.6993252357713205e-05,
340
+ "loss": 0.6775,
341
+ "step": 45
342
+ },
343
+ {
344
+ "epoch": 1.8399999999999999,
345
+ "grad_norm": 0.07931992411613464,
346
+ "learning_rate": 2.6418738768534388e-05,
347
+ "loss": 1.0747,
348
+ "step": 46
349
+ },
350
+ {
351
+ "epoch": 1.88,
352
+ "grad_norm": 0.09479013085365295,
353
+ "learning_rate": 2.5839393353387444e-05,
354
+ "loss": 1.1385,
355
+ "step": 47
356
+ },
357
+ {
358
+ "epoch": 1.92,
359
+ "grad_norm": 0.057173825800418854,
360
+ "learning_rate": 2.5255849617977983e-05,
361
+ "loss": 0.9226,
362
+ "step": 48
363
+ },
364
+ {
365
+ "epoch": 1.96,
366
+ "grad_norm": 0.059427376836538315,
367
+ "learning_rate": 2.4668745658813156e-05,
368
+ "loss": 0.9497,
369
+ "step": 49
370
+ },
371
+ {
372
+ "epoch": 2.0,
373
+ "grad_norm": 0.07764241099357605,
374
+ "learning_rate": 2.4078723465452556e-05,
375
+ "loss": 1.0436,
376
+ "step": 50
377
+ },
378
+ {
379
+ "epoch": 2.04,
380
+ "grad_norm": 0.07360248267650604,
381
+ "learning_rate": 2.3486428218501987e-05,
382
+ "loss": 1.0789,
383
+ "step": 51
384
+ },
385
+ {
386
+ "epoch": 2.08,
387
+ "grad_norm": 0.07298833131790161,
388
+ "learning_rate": 2.2892507584118004e-05,
389
+ "loss": 1.0659,
390
+ "step": 52
391
+ },
392
+ {
393
+ "epoch": 2.12,
394
+ "grad_norm": 0.05753123015165329,
395
+ "learning_rate": 2.2297611005794456e-05,
396
+ "loss": 0.8865,
397
+ "step": 53
398
+ },
399
+ {
400
+ "epoch": 2.16,
401
+ "grad_norm": 0.06963388621807098,
402
+ "learning_rate": 2.170238899420555e-05,
403
+ "loss": 0.9897,
404
+ "step": 54
405
+ },
406
+ {
407
+ "epoch": 2.2,
408
+ "grad_norm": 0.07072041928768158,
409
+ "learning_rate": 2.1107492415882002e-05,
410
+ "loss": 0.9912,
411
+ "step": 55
412
+ },
413
+ {
414
+ "epoch": 2.24,
415
+ "grad_norm": 0.07816724479198456,
416
+ "learning_rate": 2.0513571781498022e-05,
417
+ "loss": 1.0527,
418
+ "step": 56
419
+ },
420
+ {
421
+ "epoch": 2.2800000000000002,
422
+ "grad_norm": 0.0970468819141388,
423
+ "learning_rate": 1.9921276534547453e-05,
424
+ "loss": 1.1062,
425
+ "step": 57
426
+ },
427
+ {
428
+ "epoch": 2.32,
429
+ "grad_norm": 0.07797855883836746,
430
+ "learning_rate": 1.9331254341186843e-05,
431
+ "loss": 0.8679,
432
+ "step": 58
433
+ },
434
+ {
435
+ "epoch": 2.36,
436
+ "grad_norm": 0.08266980946063995,
437
+ "learning_rate": 1.874415038202203e-05,
438
+ "loss": 1.1044,
439
+ "step": 59
440
+ },
441
+ {
442
+ "epoch": 2.4,
443
+ "grad_norm": 0.06626752018928528,
444
+ "learning_rate": 1.816060664661256e-05,
445
+ "loss": 0.9661,
446
+ "step": 60
447
+ },
448
+ {
449
+ "epoch": 2.4,
450
+ "eval_loss": 0.77880859375,
451
+ "eval_runtime": 2.2199,
452
+ "eval_samples_per_second": 2.252,
453
+ "eval_steps_per_second": 0.45,
454
+ "step": 60
455
+ },
456
+ {
457
+ "epoch": 2.44,
458
+ "grad_norm": 0.08102354407310486,
459
+ "learning_rate": 1.7581261231465618e-05,
460
+ "loss": 1.0759,
461
+ "step": 61
462
+ },
463
+ {
464
+ "epoch": 2.48,
465
+ "grad_norm": 0.054694049060344696,
466
+ "learning_rate": 1.70067476422868e-05,
467
+ "loss": 0.7046,
468
+ "step": 62
469
+ },
470
+ {
471
+ "epoch": 2.52,
472
+ "grad_norm": 0.07155449688434601,
473
+ "learning_rate": 1.643769410125095e-05,
474
+ "loss": 0.9838,
475
+ "step": 63
476
+ },
477
+ {
478
+ "epoch": 2.56,
479
+ "grad_norm": 0.06532476842403412,
480
+ "learning_rate": 1.5874722860050423e-05,
481
+ "loss": 0.994,
482
+ "step": 64
483
+ },
484
+ {
485
+ "epoch": 2.6,
486
+ "grad_norm": 0.07697983086109161,
487
+ "learning_rate": 1.5318449519472025e-05,
488
+ "loss": 1.0082,
489
+ "step": 65
490
+ },
491
+ {
492
+ "epoch": 2.64,
493
+ "grad_norm": 0.08935107290744781,
494
+ "learning_rate": 1.4769482356246556e-05,
495
+ "loss": 1.0865,
496
+ "step": 66
497
+ },
498
+ {
499
+ "epoch": 2.68,
500
+ "grad_norm": 0.0887816920876503,
501
+ "learning_rate": 1.422842165790713e-05,
502
+ "loss": 1.0815,
503
+ "step": 67
504
+ },
505
+ {
506
+ "epoch": 2.7199999999999998,
507
+ "grad_norm": 0.07478179782629013,
508
+ "learning_rate": 1.3695859066383624e-05,
509
+ "loss": 1.0665,
510
+ "step": 68
511
+ },
512
+ {
513
+ "epoch": 2.76,
514
+ "grad_norm": 0.07210303097963333,
515
+ "learning_rate": 1.317237693105086e-05,
516
+ "loss": 0.9429,
517
+ "step": 69
518
+ },
519
+ {
520
+ "epoch": 2.8,
521
+ "grad_norm": 0.044374942779541016,
522
+ "learning_rate": 1.2658547671938135e-05,
523
+ "loss": 0.6628,
524
+ "step": 70
525
+ },
526
+ {
527
+ "epoch": 2.84,
528
+ "grad_norm": 0.07966240495443344,
529
+ "learning_rate": 1.2154933153796323e-05,
530
+ "loss": 1.0466,
531
+ "step": 71
532
+ },
533
+ {
534
+ "epoch": 2.88,
535
+ "grad_norm": 0.0976930782198906,
536
+ "learning_rate": 1.1662084071707018e-05,
537
+ "loss": 1.1078,
538
+ "step": 72
539
+ },
540
+ {
541
+ "epoch": 2.92,
542
+ "grad_norm": 0.05639340355992317,
543
+ "learning_rate": 1.118053934890555e-05,
544
+ "loss": 0.9038,
545
+ "step": 73
546
+ },
547
+ {
548
+ "epoch": 2.96,
549
+ "grad_norm": 0.06098003685474396,
550
+ "learning_rate": 1.0710825547476333e-05,
551
+ "loss": 0.9326,
552
+ "step": 74
553
+ },
554
+ {
555
+ "epoch": 3.0,
556
+ "grad_norm": 0.07597635686397552,
557
+ "learning_rate": 1.0253456292564965e-05,
558
+ "loss": 1.0192,
559
+ "step": 75
560
+ },
561
+ {
562
+ "epoch": 3.04,
563
+ "grad_norm": 0.07052882015705109,
564
+ "learning_rate": 9.808931710736666e-06,
565
+ "loss": 1.0579,
566
+ "step": 76
567
+ },
568
+ {
569
+ "epoch": 3.08,
570
+ "grad_norm": 0.07034008204936981,
571
+ "learning_rate": 9.377737883095207e-06,
572
+ "loss": 1.0454,
573
+ "step": 77
574
+ },
575
+ {
576
+ "epoch": 3.12,
577
+ "grad_norm": 0.05514257028698921,
578
+ "learning_rate": 8.9603463137604e-06,
579
+ "loss": 0.873,
580
+ "step": 78
581
+ },
582
+ {
583
+ "epoch": 3.16,
584
+ "grad_norm": 0.06549564749002457,
585
+ "learning_rate": 8.557213414285236e-06,
586
+ "loss": 0.9741,
587
+ "step": 79
588
+ },
589
+ {
590
+ "epoch": 3.2,
591
+ "grad_norm": 0.07224049419164658,
592
+ "learning_rate": 8.168780004576542e-06,
593
+ "loss": 0.9753,
594
+ "step": 80
595
+ },
596
+ {
597
+ "epoch": 3.2,
598
+ "eval_loss": 0.771484375,
599
+ "eval_runtime": 2.2033,
600
+ "eval_samples_per_second": 2.269,
601
+ "eval_steps_per_second": 0.454,
602
+ "step": 80
603
+ },
604
+ {
605
+ "epoch": 3.24,
606
+ "grad_norm": 0.07591705769300461,
607
+ "learning_rate": 7.79547083086492e-06,
608
+ "loss": 1.0322,
609
+ "step": 81
610
+ },
611
+ {
612
+ "epoch": 3.2800000000000002,
613
+ "grad_norm": 0.09342397004365921,
614
+ "learning_rate": 7.437694101250949e-06,
615
+ "loss": 1.0872,
616
+ "step": 82
617
+ },
618
+ {
619
+ "epoch": 3.32,
620
+ "grad_norm": 0.07288067787885666,
621
+ "learning_rate": 7.09584103933564e-06,
622
+ "loss": 0.8525,
623
+ "step": 83
624
+ },
625
+ {
626
+ "epoch": 3.36,
627
+ "grad_norm": 0.07975227385759354,
628
+ "learning_rate": 6.7702854564231615e-06,
629
+ "loss": 1.0865,
630
+ "step": 84
631
+ },
632
+ {
633
+ "epoch": 3.4,
634
+ "grad_norm": 0.06429357826709747,
635
+ "learning_rate": 6.461383342763671e-06,
636
+ "loss": 0.9534,
637
+ "step": 85
638
+ },
639
+ {
640
+ "epoch": 3.44,
641
+ "grad_norm": 0.08074600249528885,
642
+ "learning_rate": 6.169472478283199e-06,
643
+ "loss": 1.0605,
644
+ "step": 86
645
+ },
646
+ {
647
+ "epoch": 3.48,
648
+ "grad_norm": 0.05224496126174927,
649
+ "learning_rate": 5.894872063226258e-06,
650
+ "loss": 0.696,
651
+ "step": 87
652
+ },
653
+ {
654
+ "epoch": 3.52,
655
+ "grad_norm": 0.06972762197256088,
656
+ "learning_rate": 5.637882369115075e-06,
657
+ "loss": 0.9702,
658
+ "step": 88
659
+ },
660
+ {
661
+ "epoch": 3.56,
662
+ "grad_norm": 0.06537563353776932,
663
+ "learning_rate": 5.3987844104070754e-06,
664
+ "loss": 0.9809,
665
+ "step": 89
666
+ },
667
+ {
668
+ "epoch": 3.6,
669
+ "grad_norm": 0.07811121642589569,
670
+ "learning_rate": 5.177839637209707e-06,
671
+ "loss": 0.9956,
672
+ "step": 90
673
+ },
674
+ {
675
+ "epoch": 3.64,
676
+ "grad_norm": 0.08834316581487656,
677
+ "learning_rate": 4.975289649388577e-06,
678
+ "loss": 1.0721,
679
+ "step": 91
680
+ },
681
+ {
682
+ "epoch": 3.68,
683
+ "grad_norm": 0.08688650280237198,
684
+ "learning_rate": 4.791355932381563e-06,
685
+ "loss": 1.0693,
686
+ "step": 92
687
+ },
688
+ {
689
+ "epoch": 3.7199999999999998,
690
+ "grad_norm": 0.0746871680021286,
691
+ "learning_rate": 4.626239615007727e-06,
692
+ "loss": 1.0565,
693
+ "step": 93
694
+ },
695
+ {
696
+ "epoch": 3.76,
697
+ "grad_norm": 0.07580739259719849,
698
+ "learning_rate": 4.480121249535897e-06,
699
+ "loss": 0.9346,
700
+ "step": 94
701
+ },
702
+ {
703
+ "epoch": 3.8,
704
+ "grad_norm": 0.061057522892951965,
705
+ "learning_rate": 4.353160614253432e-06,
706
+ "loss": 0.6584,
707
+ "step": 95
708
+ },
709
+ {
710
+ "epoch": 3.84,
711
+ "grad_norm": 0.08070012927055359,
712
+ "learning_rate": 4.245496538750999e-06,
713
+ "loss": 1.0371,
714
+ "step": 96
715
+ },
716
+ {
717
+ "epoch": 3.88,
718
+ "grad_norm": 0.09691870212554932,
719
+ "learning_rate": 4.157246752114447e-06,
720
+ "loss": 1.0974,
721
+ "step": 97
722
+ },
723
+ {
724
+ "epoch": 3.92,
725
+ "grad_norm": 0.0571683831512928,
726
+ "learning_rate": 4.0885077541897945e-06,
727
+ "loss": 0.8972,
728
+ "step": 98
729
+ },
730
+ {
731
+ "epoch": 3.96,
732
+ "grad_norm": 0.061304960399866104,
733
+ "learning_rate": 4.039354710062059e-06,
734
+ "loss": 0.9272,
735
+ "step": 99
736
+ },
737
+ {
738
+ "epoch": 4.0,
739
+ "grad_norm": 0.07660021632909775,
740
+ "learning_rate": 4.0098413678633315e-06,
741
+ "loss": 1.0127,
742
+ "step": 100
743
+ },
744
+ {
745
+ "epoch": 4.0,
746
+ "eval_loss": 0.77001953125,
747
+ "eval_runtime": 2.1902,
748
+ "eval_samples_per_second": 2.283,
749
+ "eval_steps_per_second": 0.457,
750
+ "step": 100
751
+ }
752
+ ],
753
+ "logging_steps": 1.0,
754
+ "max_steps": 100,
755
+ "num_input_tokens_seen": 0,
756
+ "num_train_epochs": 4,
757
+ "save_steps": 0,
758
+ "stateful_callbacks": {
759
+ "TrainerControl": {
760
+ "args": {
761
+ "should_epoch_stop": false,
762
+ "should_evaluate": false,
763
+ "should_log": false,
764
+ "should_save": true,
765
+ "should_training_stop": true
766
+ },
767
+ "attributes": {}
768
+ }
769
+ },
770
+ "total_flos": 1.1998359434821632e+18,
771
+ "train_batch_size": 1,
772
+ "trial_name": null,
773
+ "trial_params": null
774
+ }
training-metrics.png ADDED

Git LFS Details

  • SHA256: 26a476e4c1f96e2b8ffea457f1d7ce593b6c723291155770203ab4d600c60c97
  • Pointer size: 131 Bytes
  • Size of remote file: 206 kB
win-rates.png ADDED