fionazhang/fine-tune-mistral-environment
Browse files- README.md +56 -0
- adapter_config.json +29 -0
- adapter_model.safetensors +3 -0
- learning_curve.png +0 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +42 -0
- training_args.bin +3 -0
- training_logs.json +1 -0
README.md
CHANGED
@@ -1,3 +1,59 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: mistralai/Mistral-7B-v0.1
|
9 |
+
model-index:
|
10 |
+
- name: fine-tune-mistral-environment
|
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 |
+
# fine-tune-mistral-environment
|
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 None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 2.0377
|
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: 5e-05
|
41 |
+
- train_batch_size: 3
|
42 |
+
- eval_batch_size: 3
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: constant
|
46 |
+
- lr_scheduler_warmup_ratio: 0.03
|
47 |
+
- num_epochs: 2
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- PEFT 0.7.1
|
56 |
+
- Transformers 4.36.2
|
57 |
+
- Pytorch 2.1.0a0+git7bcf7da
|
58 |
+
- Datasets 2.16.1
|
59 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 8,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"v_proj",
|
23 |
+
"k_proj",
|
24 |
+
"o_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"q_proj"
|
27 |
+
],
|
28 |
+
"task_type": "CAUSAL_LM"
|
29 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78b9d57b9db265bbb3a6a7b4c41227a0149d902d4e186f4a2a4a67f9b9491003
|
3 |
+
size 23111352
|
learning_curve.png
ADDED
![]() |
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,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": true,
|
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 |
+
"clean_up_tokenization_spaces": false,
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"legacy": true,
|
35 |
+
"model_max_length": 1000000000000000019884624838656,
|
36 |
+
"pad_token": "</s>",
|
37 |
+
"sp_model_kwargs": {},
|
38 |
+
"spaces_between_special_tokens": false,
|
39 |
+
"tokenizer_class": "LlamaTokenizer",
|
40 |
+
"unk_token": "<unk>",
|
41 |
+
"use_default_system_prompt": false
|
42 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16ac804f65fce560a2ca2e267c121ed54cb693ce383b73bef020067e34c2a9dc
|
3 |
+
size 4664
|
training_logs.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
[{"loss": 1.9367, "learning_rate": 5e-05, "epoch": 0.06, "step": 10}, {"loss": 2.0026, "learning_rate": 5e-05, "epoch": 0.13, "step": 20}, {"loss": 2.1125, "learning_rate": 5e-05, "epoch": 0.19, "step": 30}, {"loss": 2.9601, "learning_rate": 5e-05, "epoch": 0.26, "step": 40}, {"loss": 1.8848, "learning_rate": 5e-05, "epoch": 0.32, "step": 50}, {"loss": 1.8588, "learning_rate": 5e-05, "epoch": 0.39, "step": 60}, {"loss": 2.1924, "learning_rate": 5e-05, "epoch": 0.45, "step": 70}, {"loss": 2.5077, "learning_rate": 5e-05, "epoch": 0.52, "step": 80}, {"loss": 1.8772, "learning_rate": 5e-05, "epoch": 0.58, "step": 90}, {"loss": 1.8502, "learning_rate": 5e-05, "epoch": 0.65, "step": 100}, {"loss": 2.0774, "learning_rate": 5e-05, "epoch": 0.71, "step": 110}, {"loss": 2.3096, "learning_rate": 5e-05, "epoch": 0.78, "step": 120}, {"loss": 1.8665, "learning_rate": 5e-05, "epoch": 0.84, "step": 130}, {"loss": 1.983, "learning_rate": 5e-05, "epoch": 0.91, "step": 140}, {"loss": 2.1746, "learning_rate": 5e-05, "epoch": 0.97, "step": 150}, {"loss": 2.2051, "learning_rate": 5e-05, "epoch": 1.04, "step": 160}, {"loss": 1.7956, "learning_rate": 5e-05, "epoch": 1.1, "step": 170}, {"loss": 1.8065, "learning_rate": 5e-05, "epoch": 1.17, "step": 180}, {"loss": 2.0293, "learning_rate": 5e-05, "epoch": 1.23, "step": 190}, {"loss": 1.7137, "learning_rate": 5e-05, "epoch": 1.3, "step": 200}, {"loss": 1.7704, "learning_rate": 5e-05, "epoch": 1.36, "step": 210}, {"loss": 1.6424, "learning_rate": 5e-05, "epoch": 1.43, "step": 220}, {"loss": 2.2269, "learning_rate": 5e-05, "epoch": 1.49, "step": 230}, {"loss": 1.8347, "learning_rate": 5e-05, "epoch": 1.56, "step": 240}, {"loss": 1.6955, "learning_rate": 5e-05, "epoch": 1.62, "step": 250}, {"loss": 1.6567, "learning_rate": 5e-05, "epoch": 1.69, "step": 260}, {"loss": 2.0633, "learning_rate": 5e-05, "epoch": 1.75, "step": 270}, {"loss": 1.6374, "learning_rate": 5e-05, "epoch": 1.82, "step": 280}, {"loss": 1.6859, "learning_rate": 5e-05, "epoch": 1.88, "step": 290}, {"loss": 1.7153, "learning_rate": 5e-05, "epoch": 1.95, "step": 300}, {"train_runtime": 82.3289, "train_samples_per_second": 11.199, "train_steps_per_second": 3.741, "total_flos": 4686375447478272.0, "train_loss": 1.9712854670239734, "epoch": 2.0, "step": 308}]
|