Model save
Browse files- .ipynb_checkpoints/all_results-checkpoint.json +8 -0
- .ipynb_checkpoints/trainer_state-checkpoint.json +38 -0
- README.md +63 -0
- adapter_config.json +28 -0
- adapter_model.safetensors +3 -0
- all_results.json +9 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- train_results.json +9 -0
- trainer_state.json +38 -0
- training_args.bin +3 -0
.ipynb_checkpoints/all_results-checkpoint.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.8,
|
3 |
+
"total_flos": 2.2539726376402944e+16,
|
4 |
+
"train_loss": 2.351849317550659,
|
5 |
+
"train_runtime": 289.1969,
|
6 |
+
"train_samples_per_second": 1.107,
|
7 |
+
"train_steps_per_second": 0.003
|
8 |
+
}
|
.ipynb_checkpoints/trainer_state-checkpoint.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.8,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1,
|
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.8,
|
13 |
+
"eval_loss": 2.3482213020324707,
|
14 |
+
"eval_runtime": 27.1303,
|
15 |
+
"eval_samples_per_second": 2.949,
|
16 |
+
"eval_steps_per_second": 1.474,
|
17 |
+
"step": 1
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 0.8,
|
21 |
+
"step": 1,
|
22 |
+
"total_flos": 2.2539726376402944e+16,
|
23 |
+
"train_loss": 2.351849317550659,
|
24 |
+
"train_runtime": 289.1969,
|
25 |
+
"train_samples_per_second": 1.107,
|
26 |
+
"train_steps_per_second": 0.003
|
27 |
+
}
|
28 |
+
],
|
29 |
+
"logging_steps": 5,
|
30 |
+
"max_steps": 1,
|
31 |
+
"num_input_tokens_seen": 0,
|
32 |
+
"num_train_epochs": 1,
|
33 |
+
"save_steps": 500,
|
34 |
+
"total_flos": 2.2539726376402944e+16,
|
35 |
+
"train_batch_size": 2,
|
36 |
+
"trial_name": null,
|
37 |
+
"trial_params": null
|
38 |
+
}
|
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- generator
|
10 |
+
base_model: mistralai/Mistral-7B-v0.1
|
11 |
+
model-index:
|
12 |
+
- name: Project5_V3_Mistral7b_V2
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# Project5_V3_Mistral7b_V2
|
20 |
+
|
21 |
+
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.
|
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: 2e-05
|
41 |
+
- train_batch_size: 2
|
42 |
+
- eval_batch_size: 2
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 128
|
45 |
+
- total_train_batch_size: 256
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- num_epochs: 1
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
54 |
+
| No log | 0.8 | 1 | 2.3482 |
|
55 |
+
|
56 |
+
|
57 |
+
### Framework versions
|
58 |
+
|
59 |
+
- PEFT 0.7.1
|
60 |
+
- Transformers 4.37.0
|
61 |
+
- Pytorch 2.1.1+cu121
|
62 |
+
- Datasets 2.16.1
|
63 |
+
- Tokenizers 0.15.1
|
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-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.1,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 64,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"v_proj",
|
23 |
+
"o_proj",
|
24 |
+
"k_proj",
|
25 |
+
"q_proj"
|
26 |
+
],
|
27 |
+
"task_type": "CAUSAL_LM"
|
28 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c475e3acd2bc8865b5badb851841baab7fb0e3784f9ca6ce8e9cf55f3fc7de58
|
3 |
+
size 109086672
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.8,
|
3 |
+
"total_flos": 2.2539726376402944e+16,
|
4 |
+
"train_loss": 2.3496668338775635,
|
5 |
+
"train_runtime": 289.2113,
|
6 |
+
"train_samples": 60,
|
7 |
+
"train_samples_per_second": 1.106,
|
8 |
+
"train_steps_per_second": 0.003
|
9 |
+
}
|
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_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
},
|
30 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"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 %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 2048,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.8,
|
3 |
+
"total_flos": 2.2539726376402944e+16,
|
4 |
+
"train_loss": 2.3496668338775635,
|
5 |
+
"train_runtime": 289.2113,
|
6 |
+
"train_samples": 60,
|
7 |
+
"train_samples_per_second": 1.106,
|
8 |
+
"train_steps_per_second": 0.003
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.8,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1,
|
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.8,
|
13 |
+
"eval_loss": 2.3482398986816406,
|
14 |
+
"eval_runtime": 27.1269,
|
15 |
+
"eval_samples_per_second": 2.949,
|
16 |
+
"eval_steps_per_second": 1.475,
|
17 |
+
"step": 1
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 0.8,
|
21 |
+
"step": 1,
|
22 |
+
"total_flos": 2.2539726376402944e+16,
|
23 |
+
"train_loss": 2.3496668338775635,
|
24 |
+
"train_runtime": 289.2113,
|
25 |
+
"train_samples_per_second": 1.106,
|
26 |
+
"train_steps_per_second": 0.003
|
27 |
+
}
|
28 |
+
],
|
29 |
+
"logging_steps": 5,
|
30 |
+
"max_steps": 1,
|
31 |
+
"num_input_tokens_seen": 0,
|
32 |
+
"num_train_epochs": 1,
|
33 |
+
"save_steps": 500,
|
34 |
+
"total_flos": 2.2539726376402944e+16,
|
35 |
+
"train_batch_size": 2,
|
36 |
+
"trial_name": null,
|
37 |
+
"trial_params": null
|
38 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89cc65e3b9e8852135116eb98a0f36927c6bf087ff9e84ea9f73ca6bca59cada
|
3 |
+
size 4792
|