magesh-sundar commited on
Commit
c48a9d2
1 Parent(s): 34b012d

Upload Emma Adapters v0.1

Browse files
README.md CHANGED
@@ -1,3 +1,63 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
9
+ model-index:
10
+ - name: emma_assistant_v0.3
11
+ results: []
12
  ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # emma_assistant_v0.3
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the emma_assistant dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.1406
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.001
41
+ - train_batch_size: 2
42
+ - eval_batch_size: 2
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 16
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - num_epochs: 5.0
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 0.9342 | 2.55 | 200 | 1.1406 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - PEFT 0.9.0
60
+ - Transformers 4.38.2
61
+ - Pytorch 2.1.0+cu121
62
+ - Datasets 2.18.0
63
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
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
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "v_proj",
23
+ "q_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_dora": false,
27
+ "use_rslora": false
28
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:264959cd8f9d53ab54a57dbb6b9469ea88778042e8046bf660e703a03506f217
3
+ size 13648432
all_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.97,
3
+ "eval_loss": 1.1405508518218994,
4
+ "eval_runtime": 10.7289,
5
+ "eval_samples_per_second": 13.049,
6
+ "eval_steps_per_second": 6.524,
7
+ "train_loss": 0.6901797954852764,
8
+ "train_runtime": 1500.9342,
9
+ "train_samples_per_second": 4.181,
10
+ "train_steps_per_second": 0.26
11
+ }
eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.97,
3
+ "eval_loss": 1.1405508518218994,
4
+ "eval_runtime": 10.7289,
5
+ "eval_samples_per_second": 13.049,
6
+ "eval_steps_per_second": 6.524
7
+ }
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.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,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
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
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{{ '<s>' + system_message }}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '[INST] ' + content + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ content + '</s>' }}{% endif %}{% endfor %}",
34
+ "clean_up_tokenization_spaces": false,
35
+ "eos_token": "</s>",
36
+ "legacy": true,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": false
46
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.97,
3
+ "train_loss": 0.6901797954852764,
4
+ "train_runtime": 1500.9342,
5
+ "train_samples_per_second": 4.181,
6
+ "train_steps_per_second": 0.26
7
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"current_steps": 200, "total_steps": 390, "loss": 0.9342, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.0004798670299452926, "epoch": 2.55, "percentage": 51.28, "elapsed_time": "0:12:42", "remaining_time": "0:12:04"}
2
+ {"current_steps": 200, "total_steps": 390, "loss": null, "eval_loss": 1.1405508518218994, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 2.55, "percentage": 51.28, "elapsed_time": "0:12:42", "remaining_time": "0:12:04"}
3
+ {"current_steps": 390, "total_steps": 390, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 4.97, "percentage": 100.0, "elapsed_time": "0:25:00", "remaining_time": "0:00:00"}
4
+ {"current_steps": 70, "total_steps": 70, "loss": null, "eval_loss": 1.1405508518218994, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 4.97, "percentage": 100.0, "elapsed_time": "0:25:12", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.1405508518218994,
3
+ "best_model_checkpoint": "saves/Mistral-7B-v0.2-Chat/lora/emma_assistant_v0.3/checkpoint-200",
4
+ "epoch": 4.968152866242038,
5
+ "eval_steps": 200,
6
+ "global_step": 390,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 2.55,
13
+ "grad_norm": 1.330633521080017,
14
+ "learning_rate": 0.0004798670299452926,
15
+ "loss": 0.9342,
16
+ "step": 200
17
+ },
18
+ {
19
+ "epoch": 2.55,
20
+ "eval_loss": 1.1405508518218994,
21
+ "eval_runtime": 10.6843,
22
+ "eval_samples_per_second": 13.103,
23
+ "eval_steps_per_second": 6.552,
24
+ "step": 200
25
+ },
26
+ {
27
+ "epoch": 4.97,
28
+ "step": 390,
29
+ "total_flos": 1.6822812952815206e+17,
30
+ "train_loss": 0.6901797954852764,
31
+ "train_runtime": 1500.9342,
32
+ "train_samples_per_second": 4.181,
33
+ "train_steps_per_second": 0.26
34
+ }
35
+ ],
36
+ "logging_steps": 200,
37
+ "max_steps": 390,
38
+ "num_input_tokens_seen": 0,
39
+ "num_train_epochs": 5,
40
+ "save_steps": 200,
41
+ "total_flos": 1.6822812952815206e+17,
42
+ "train_batch_size": 2,
43
+ "trial_name": null,
44
+ "trial_params": null
45
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dcffc82536eae9ec34475d8522da09571db612284fd1397fbda52a0e8879065
3
+ size 5112