Serega6678
commited on
Commit
•
7998b00
1
Parent(s):
358f8ed
Model save
Browse files- .ipynb_checkpoints/adapter_config-checkpoint.json +31 -0
- .ipynb_checkpoints/all_results-checkpoint.json +13 -0
- .ipynb_checkpoints/config-checkpoint.json +26 -0
- .ipynb_checkpoints/tokenizer_config-checkpoint.json +51 -0
- README.md +4 -5
- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- all_results.json +10 -10
- eval_results.json +5 -5
- train_results.json +5 -5
- trainer_state.json +32 -26
- training_args.bin +1 -1
.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 |
-
-
|
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
|
21 |
It achieves the following results on the evaluation set:
|
22 |
-
- Loss:
|
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.
|
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 |
-
"
|
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:
|
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":
|
4 |
-
"eval_runtime":
|
5 |
-
"eval_samples":
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second": 0.
|
8 |
-
"train_loss": 1.
|
9 |
-
"train_runtime":
|
10 |
-
"train_samples":
|
11 |
-
"train_samples_per_second":
|
12 |
-
"train_steps_per_second": 0.
|
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":
|
4 |
-
"eval_runtime":
|
5 |
-
"eval_samples":
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second": 0.
|
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.
|
4 |
-
"train_runtime":
|
5 |
-
"train_samples":
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second": 0.
|
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":
|
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.
|
13 |
-
"learning_rate":
|
14 |
-
"loss": 1.
|
15 |
"step": 1
|
16 |
},
|
17 |
{
|
18 |
-
"epoch": 0.
|
19 |
-
"learning_rate": 0.
|
20 |
-
"loss": 1.
|
21 |
"step": 5
|
22 |
},
|
23 |
{
|
24 |
-
"epoch": 0.
|
25 |
-
"learning_rate": 0.
|
26 |
-
"loss": 1.
|
27 |
"step": 10
|
28 |
},
|
29 |
{
|
30 |
-
"epoch": 0.
|
31 |
-
"learning_rate":
|
32 |
-
"loss": 1.
|
33 |
"step": 15
|
34 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
{
|
36 |
"epoch": 1.0,
|
37 |
-
"eval_loss":
|
38 |
-
"eval_runtime":
|
39 |
-
"eval_samples_per_second":
|
40 |
-
"eval_steps_per_second": 0.
|
41 |
-
"step":
|
42 |
},
|
43 |
{
|
44 |
"epoch": 1.0,
|
45 |
-
"step":
|
46 |
-
"total_flos": 1.
|
47 |
-
"train_loss": 1.
|
48 |
-
"train_runtime":
|
49 |
-
"train_samples_per_second":
|
50 |
-
"train_steps_per_second": 0.
|
51 |
}
|
52 |
],
|
53 |
"logging_steps": 5,
|
54 |
-
"max_steps":
|
55 |
"num_input_tokens_seen": 0,
|
56 |
"num_train_epochs": 1,
|
57 |
"save_steps": 100,
|
58 |
-
"total_flos": 1.
|
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:
|
3 |
size 4856
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4ec1a30ffc3e3543c6f3726587f9e4f89d6d59b28a1239701a7135804e54a0d
|
3 |
size 4856
|