rzr1331 commited on
Commit
75c61f0
·
verified ·
1 Parent(s): 99149bd

rzr1331/nexi-mind-adapter

Browse files
README.md CHANGED
@@ -1,11 +1,11 @@
1
  ---
2
- license: mit
3
  library_name: peft
 
4
  tags:
5
  - trl
6
  - sft
7
  - generated_from_trainer
8
- base_model: microsoft/Phi-3-mini-4k-instruct
9
  model-index:
10
  - name: phi-3-mini-LoRA
11
  results: []
@@ -16,9 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # phi-3-mini-LoRA
18
 
19
- This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on an unknown dataset.
20
- It achieves the following results on the evaluation set:
21
- - Loss: 0.5733
22
 
23
  ## Model description
24
 
@@ -38,11 +36,11 @@ More information needed
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 0.0001
41
- - train_batch_size: 2
42
- - eval_batch_size: 2
43
  - seed: 42
44
- - gradient_accumulation_steps: 2
45
- - total_train_batch_size: 4
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
  - lr_scheduler_warmup_ratio: 0.1
@@ -50,15 +48,6 @@ The following hyperparameters were used during training:
50
 
51
  ### Training results
52
 
53
- | Training Loss | Epoch | Step | Validation Loss |
54
- |:-------------:|:-----:|:----:|:---------------:|
55
- | 0.8349 | 0.4 | 100 | 0.6078 |
56
- | 0.599 | 0.8 | 200 | 0.5819 |
57
- | 0.5878 | 1.2 | 300 | 0.5786 |
58
- | 0.5663 | 1.6 | 400 | 0.5757 |
59
- | 0.5656 | 2.0 | 500 | 0.5745 |
60
- | 0.5622 | 2.4 | 600 | 0.5741 |
61
- | 0.5471 | 2.8 | 700 | 0.5733 |
62
 
63
 
64
  ### Framework versions
 
1
  ---
2
+ base_model: microsoft/Phi-3-medium-128k-instruct
3
  library_name: peft
4
+ license: mit
5
  tags:
6
  - trl
7
  - sft
8
  - generated_from_trainer
 
9
  model-index:
10
  - name: phi-3-mini-LoRA
11
  results: []
 
16
 
17
  # phi-3-mini-LoRA
18
 
19
+ This model is a fine-tuned version of [microsoft/Phi-3-medium-128k-instruct](https://huggingface.co/microsoft/Phi-3-medium-128k-instruct) on an unknown dataset.
 
 
20
 
21
  ## Model description
22
 
 
36
 
37
  The following hyperparameters were used during training:
38
  - learning_rate: 0.0001
39
+ - train_batch_size: 8
40
+ - eval_batch_size: 8
41
  - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 32
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
46
  - lr_scheduler_warmup_ratio: 0.1
 
48
 
49
  ### Training results
50
 
 
 
 
 
 
 
 
 
 
51
 
52
 
53
  ### Framework versions
adapter_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
- "base_model_name_or_path": "microsoft/Phi-3-mini-4k-instruct",
5
  "bias": "none",
6
  "fan_in_fan_out": false,
7
  "inference_mode": true,
@@ -20,13 +20,13 @@
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
23
- "down_proj",
24
  "q_proj",
25
- "up_proj",
26
  "k_proj",
 
 
27
  "o_proj",
28
  "v_proj",
29
- "gate_proj"
30
  ],
31
  "task_type": "CAUSAL_LM",
32
  "use_dora": false,
 
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
+ "base_model_name_or_path": "microsoft/Phi-3-medium-128k-instruct",
5
  "bias": "none",
6
  "fan_in_fan_out": false,
7
  "inference_mode": true,
 
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
 
23
  "q_proj",
 
24
  "k_proj",
25
+ "down_proj",
26
+ "gate_proj",
27
  "o_proj",
28
  "v_proj",
29
+ "up_proj"
30
  ],
31
  "task_type": "CAUSAL_LM",
32
  "use_dora": false,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:13a7e7e631d51cc91de36bf9cb0318a769da56842299579c89171b1cea711cc3
3
- size 35668592
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:593c7d46d0a5cde3abc3191ca9cccaf58c19e401eb0ec080fd1be5585518b881
3
+ size 85218160
tokenizer_config.json CHANGED
@@ -117,11 +117,11 @@
117
  }
118
  },
119
  "bos_token": "<s>",
120
- "chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
121
  "clean_up_tokenization_spaces": false,
122
  "eos_token": "<|endoftext|>",
123
  "legacy": false,
124
- "model_max_length": 4096,
125
  "pad_token": "<unk>",
126
  "padding_side": "left",
127
  "sp_model_kwargs": {},
 
117
  }
118
  },
119
  "bos_token": "<s>",
120
+ "chat_template": "{% for message in messages %}{% if (message['role'] == 'user') %}{{'<|user|>' + '\n' + message['content'] + '<|end|>' + '\n' + '<|assistant|>' + '\n'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + '\n'}}{% endif %}{% endfor %}",
121
  "clean_up_tokenization_spaces": false,
122
  "eos_token": "<|endoftext|>",
123
  "legacy": false,
124
+ "model_max_length": 131072,
125
  "pad_token": "<unk>",
126
  "padding_side": "left",
127
  "sp_model_kwargs": {},
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:76cfadcf94600af31d86e74323371e7f24490b6386c2ec1e415dd3aa38cf483f
3
  size 5432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:771cfc8c89a1c8cb4fe68de7e82ec78e924b4898e294036099ffe4901411447a
3
  size 5432