Serega6678 commited on
Commit
7998b00
1 Parent(s): 358f8ed

Model save

Browse files
.ipynb_checkpoints/adapter_config-checkpoint.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
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.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 16,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "q_proj",
23
+ "up_proj",
24
+ "o_proj",
25
+ "down_proj",
26
+ "gate_proj",
27
+ "k_proj",
28
+ "v_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
.ipynb_checkpoints/all_results-checkpoint.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.0569556951522827,
4
+ "eval_runtime": 10.2753,
5
+ "eval_samples": 124,
6
+ "eval_samples_per_second": 12.068,
7
+ "eval_steps_per_second": 0.779,
8
+ "train_loss": 1.0657691690656874,
9
+ "train_runtime": 300.603,
10
+ "train_samples": 1143,
11
+ "train_samples_per_second": 3.802,
12
+ "train_steps_per_second": 0.06
13
+ }
.ipynb_checkpoints/config-checkpoint.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mistral-7B-v0.1",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 32768,
14
+ "model_type": "llava_mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 32,
17
+ "num_key_value_heads": 8,
18
+ "rms_norm_eps": 1e-05,
19
+ "rope_theta": 10000.0,
20
+ "sliding_window": 4096,
21
+ "tie_word_embeddings": false,
22
+ "torch_dtype": "bfloat16",
23
+ "transformers_version": "4.36.2",
24
+ "use_cache": true,
25
+ "vocab_size": 32000
26
+ }
.ipynb_checkpoints/tokenizer_config-checkpoint.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<EMBEDDING>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ }
37
+ },
38
+ "additional_special_tokens": [],
39
+ "bos_token": "<s>",
40
+ "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 %}",
41
+ "clean_up_tokenization_spaces": false,
42
+ "eos_token": "</s>",
43
+ "legacy": true,
44
+ "model_max_length": 2048,
45
+ "pad_token": "</s>",
46
+ "sp_model_kwargs": {},
47
+ "spaces_between_special_tokens": false,
48
+ "tokenizer_class": "LlamaTokenizer",
49
+ "unk_token": "<unk>",
50
+ "use_default_system_prompt": false
51
+ }
README.md CHANGED
@@ -2,11 +2,10 @@
2
  license: apache-2.0
3
  library_name: peft
4
  tags:
5
- - alignment-handbook
6
  - generated_from_trainer
7
  base_model: mistralai/Mistral-7B-v0.1
8
  datasets:
9
- - HuggingFaceH4/ultrachat_200k
10
  model-index:
11
  - name: Test_with_new_script
12
  results: []
@@ -17,9 +16,9 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  # Test_with_new_script
19
 
20
- This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the HuggingFaceH4/ultrachat_200k dataset.
21
  It achieves the following results on the evaluation set:
22
- - Loss: 1.0905
23
 
24
  ## Model description
25
 
@@ -55,7 +54,7 @@ The following hyperparameters were used during training:
55
 
56
  | Training Loss | Epoch | Step | Validation Loss |
57
  |:-------------:|:-----:|:----:|:---------------:|
58
- | 1.11 | 1.0 | 18 | 1.0905 |
59
 
60
 
61
  ### Framework versions
 
2
  license: apache-2.0
3
  library_name: peft
4
  tags:
 
5
  - generated_from_trainer
6
  base_model: mistralai/Mistral-7B-v0.1
7
  datasets:
8
+ - generator
9
  model-index:
10
  - name: Test_with_new_script
11
  results: []
 
16
 
17
  # Test_with_new_script
18
 
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the generator dataset.
20
  It achieves the following results on the evaluation set:
21
+ - Loss: 0.9985
22
 
23
  ## Model description
24
 
 
54
 
55
  | Training Loss | Epoch | Step | Validation Loss |
56
  |:-------------:|:-----:|:----:|:---------------:|
57
+ | 1.0052 | 1.0 | 22 | 0.9985 |
58
 
59
 
60
  ### Framework versions
adapter_config.json CHANGED
@@ -19,13 +19,13 @@
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
 
 
 
22
  "k_proj",
23
  "o_proj",
24
- "down_proj",
25
  "up_proj",
26
- "v_proj",
27
- "gate_proj",
28
- "q_proj"
29
  ],
30
  "task_type": "CAUSAL_LM"
31
  }
 
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
22
+ "gate_proj",
23
+ "q_proj",
24
+ "v_proj",
25
  "k_proj",
26
  "o_proj",
 
27
  "up_proj",
28
+ "down_proj"
 
 
29
  ],
30
  "task_type": "CAUSAL_LM"
31
  }
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:14d37b719ded8577e0c19e669ca2cebb01db619d1866b04e1652272e8172b6b1
3
  size 83946192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67010e2a89699ee21c974ed33ddbce0d2b58366053107584dc70fbfcdebfadc0
3
  size 83946192
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 1.0,
3
- "eval_loss": 1.0904877185821533,
4
- "eval_runtime": 15.5995,
5
- "eval_samples": 124,
6
- "eval_samples_per_second": 7.949,
7
- "eval_steps_per_second": 0.513,
8
- "train_loss": 1.168492575486501,
9
- "train_runtime": 457.8696,
10
- "train_samples": 1143,
11
- "train_samples_per_second": 2.496,
12
- "train_steps_per_second": 0.039
13
  }
 
1
  {
2
  "epoch": 1.0,
3
+ "eval_loss": 0.9985440969467163,
4
+ "eval_runtime": 10.4315,
5
+ "eval_samples": 154,
6
+ "eval_samples_per_second": 14.763,
7
+ "eval_steps_per_second": 0.959,
8
+ "train_loss": 1.0528265129436145,
9
+ "train_runtime": 330.3819,
10
+ "train_samples": 1383,
11
+ "train_samples_per_second": 4.186,
12
+ "train_steps_per_second": 0.067
13
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 1.0,
3
- "eval_loss": 1.0904877185821533,
4
- "eval_runtime": 15.5995,
5
- "eval_samples": 124,
6
- "eval_samples_per_second": 7.949,
7
- "eval_steps_per_second": 0.513
8
  }
 
1
  {
2
  "epoch": 1.0,
3
+ "eval_loss": 0.9985440969467163,
4
+ "eval_runtime": 10.4315,
5
+ "eval_samples": 154,
6
+ "eval_samples_per_second": 14.763,
7
+ "eval_steps_per_second": 0.959
8
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 1.0,
3
- "train_loss": 1.168492575486501,
4
- "train_runtime": 457.8696,
5
- "train_samples": 1143,
6
- "train_samples_per_second": 2.496,
7
- "train_steps_per_second": 0.039
8
  }
 
1
  {
2
  "epoch": 1.0,
3
+ "train_loss": 1.0528265129436145,
4
+ "train_runtime": 330.3819,
5
+ "train_samples": 1383,
6
+ "train_samples_per_second": 4.186,
7
+ "train_steps_per_second": 0.067
8
  }
trainer_state.json CHANGED
@@ -3,59 +3,65 @@
3
  "best_model_checkpoint": null,
4
  "epoch": 1.0,
5
  "eval_steps": 500,
6
- "global_step": 18,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
- "epoch": 0.06,
13
- "learning_rate": 0.0001,
14
- "loss": 1.3159,
15
  "step": 1
16
  },
17
  {
18
- "epoch": 0.28,
19
- "learning_rate": 0.00018314696123025454,
20
- "loss": 1.2515,
21
  "step": 5
22
  },
23
  {
24
- "epoch": 0.56,
25
- "learning_rate": 0.0001,
26
- "loss": 1.1683,
27
  "step": 10
28
  },
29
  {
30
- "epoch": 0.83,
31
- "learning_rate": 1.6853038769745467e-05,
32
- "loss": 1.11,
33
  "step": 15
34
  },
 
 
 
 
 
 
35
  {
36
  "epoch": 1.0,
37
- "eval_loss": 1.0904877185821533,
38
- "eval_runtime": 15.6992,
39
- "eval_samples_per_second": 7.899,
40
- "eval_steps_per_second": 0.51,
41
- "step": 18
42
  },
43
  {
44
  "epoch": 1.0,
45
- "step": 18,
46
- "total_flos": 1.0560439065981747e+17,
47
- "train_loss": 1.168492575486501,
48
- "train_runtime": 457.8696,
49
- "train_samples_per_second": 2.496,
50
- "train_steps_per_second": 0.039
51
  }
52
  ],
53
  "logging_steps": 5,
54
- "max_steps": 18,
55
  "num_input_tokens_seen": 0,
56
  "num_train_epochs": 1,
57
  "save_steps": 100,
58
- "total_flos": 1.0560439065981747e+17,
59
  "train_batch_size": 32,
60
  "trial_name": null,
61
  "trial_params": null
 
3
  "best_model_checkpoint": null,
4
  "epoch": 1.0,
5
  "eval_steps": 500,
6
+ "global_step": 22,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
+ "epoch": 0.05,
13
+ "learning_rate": 6.666666666666667e-05,
14
+ "loss": 1.1782,
15
  "step": 1
16
  },
17
  {
18
+ "epoch": 0.23,
19
+ "learning_rate": 0.00019458172417006347,
20
+ "loss": 1.1529,
21
  "step": 5
22
  },
23
  {
24
+ "epoch": 0.45,
25
+ "learning_rate": 0.00014016954246529696,
26
+ "loss": 1.06,
27
  "step": 10
28
  },
29
  {
30
+ "epoch": 0.68,
31
+ "learning_rate": 5.983045753470308e-05,
32
+ "loss": 1.0093,
33
  "step": 15
34
  },
35
+ {
36
+ "epoch": 0.91,
37
+ "learning_rate": 5.418275829936537e-06,
38
+ "loss": 1.0052,
39
+ "step": 20
40
+ },
41
  {
42
  "epoch": 1.0,
43
+ "eval_loss": 0.9985440969467163,
44
+ "eval_runtime": 10.4369,
45
+ "eval_samples_per_second": 14.755,
46
+ "eval_steps_per_second": 0.958,
47
+ "step": 22
48
  },
49
  {
50
  "epoch": 1.0,
51
+ "step": 22,
52
+ "total_flos": 1.2907203290936115e+17,
53
+ "train_loss": 1.0528265129436145,
54
+ "train_runtime": 330.3819,
55
+ "train_samples_per_second": 4.186,
56
+ "train_steps_per_second": 0.067
57
  }
58
  ],
59
  "logging_steps": 5,
60
+ "max_steps": 22,
61
  "num_input_tokens_seen": 0,
62
  "num_train_epochs": 1,
63
  "save_steps": 100,
64
+ "total_flos": 1.2907203290936115e+17,
65
  "train_batch_size": 32,
66
  "trial_name": null,
67
  "trial_params": null
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:61a0e14ac8baf459cacbf69a626c50bdbd4c30f0415167c5ee51730735ba152c
3
  size 4856
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4ec1a30ffc3e3543c6f3726587f9e4f89d6d59b28a1239701a7135804e54a0d
3
  size 4856