yyx123 commited on
Commit
0692c92
1 Parent(s): 81666ea

Model save

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ datasets:
9
+ - generator
10
+ base_model: 01-ai/Yi-6B
11
+ model-index:
12
+ - name: Yi-6B-ruozhiba2
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
+ # Yi-6B-ruozhiba2
20
+
21
+ This model is a fine-tuned version of [01-ai/Yi-6B](https://huggingface.co/01-ai/Yi-6B) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.8109
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 1
44
+ - eval_batch_size: 1
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 1
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss |
54
+ |:-------------:|:-----:|:----:|:---------------:|
55
+ | 1.8506 | 1.0 | 22 | 1.8109 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - PEFT 0.7.1
61
+ - Transformers 4.36.2
62
+ - Pytorch 2.2.2+cu118
63
+ - Datasets 2.14.6
64
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "01-ai/Yi-6B",
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
+ "k_proj",
23
+ "down_proj",
24
+ "gate_proj",
25
+ "o_proj",
26
+ "up_proj",
27
+ "q_proj",
28
+ "v_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd6fedae6f05f1e69589a520a5b716bd0979f3c93da26bd7ba28f7a31fe35599
3
+ size 72673912
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.810874581336975,
4
+ "eval_runtime": 6.7011,
5
+ "eval_samples": 240,
6
+ "eval_samples_per_second": 3.283,
7
+ "eval_steps_per_second": 3.283,
8
+ "train_loss": 1.9180040684613315,
9
+ "train_runtime": 40.6378,
10
+ "train_samples": 240,
11
+ "train_samples_per_second": 0.541,
12
+ "train_steps_per_second": 0.541
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.810874581336975,
4
+ "eval_runtime": 6.7011,
5
+ "eval_samples": 240,
6
+ "eval_samples_per_second": 3.283,
7
+ "eval_steps_per_second": 3.283
8
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
3
+ size 1033105
tokenizer_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
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": "<|startoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<|endoftext|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<|startoftext|>",
31
+ "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 %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "<|endoftext|>",
34
+ "legacy": true,
35
+ "model_max_length": 4096,
36
+ "pad_token": "<unk>",
37
+ "sp_model_kwargs": {},
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": false
41
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 1.9180040684613315,
4
+ "train_runtime": 40.6378,
5
+ "train_samples": 240,
6
+ "train_samples_per_second": 0.541,
7
+ "train_steps_per_second": 0.541
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 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": 2.0227,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.23,
19
+ "learning_rate": 0.00019458172417006347,
20
+ "loss": 2.0344,
21
+ "step": 5
22
+ },
23
+ {
24
+ "epoch": 0.45,
25
+ "learning_rate": 0.00014016954246529696,
26
+ "loss": 1.946,
27
+ "step": 10
28
+ },
29
+ {
30
+ "epoch": 0.68,
31
+ "learning_rate": 5.983045753470308e-05,
32
+ "loss": 1.8449,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 0.91,
37
+ "learning_rate": 5.418275829936537e-06,
38
+ "loss": 1.8506,
39
+ "step": 20
40
+ },
41
+ {
42
+ "epoch": 1.0,
43
+ "eval_loss": 1.810874581336975,
44
+ "eval_runtime": 6.697,
45
+ "eval_samples_per_second": 3.285,
46
+ "eval_steps_per_second": 3.285,
47
+ "step": 22
48
+ },
49
+ {
50
+ "epoch": 1.0,
51
+ "step": 22,
52
+ "total_flos": 1577464211963904.0,
53
+ "train_loss": 1.9180040684613315,
54
+ "train_runtime": 40.6378,
55
+ "train_samples_per_second": 0.541,
56
+ "train_steps_per_second": 0.541
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": 1577464211963904.0,
65
+ "train_batch_size": 1,
66
+ "trial_name": null,
67
+ "trial_params": null
68
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c8da20b6824fcb9fe2367c4ead77c479f943cd0ae9090744026260087f32dae
3
+ size 4728