towhid2000bd commited on
Commit
bb230e5
·
verified ·
1 Parent(s): dae7c61

towhid2000bd/amplifier_design_Llama_2-7B-Instruct

Browse files
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: llama2
4
+ base_model: meta-llama/Llama-2-7b-chat-hf
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: Llama2-Instruct-7B
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # Llama2-Instruct-7B
16
+
17
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2191
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 0.0001
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 4
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 16
44
+ - optimizer: Use OptimizerNames.PAGED_ADAMW_8BIT with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_steps: 100
47
+ - num_epochs: 4
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:------:|:----:|:---------------:|
54
+ | 2.063 | 0.1144 | 50 | 1.8637 |
55
+ | 1.3888 | 0.2288 | 100 | 0.8130 |
56
+ | 0.4576 | 0.3432 | 150 | 0.3154 |
57
+ | 0.3002 | 0.4577 | 200 | 0.2924 |
58
+ | 0.285 | 0.5721 | 250 | 0.2795 |
59
+ | 0.2711 | 0.6865 | 300 | 0.2652 |
60
+ | 0.2598 | 0.8009 | 350 | 0.2550 |
61
+ | 0.2469 | 0.9153 | 400 | 0.2471 |
62
+ | 0.2427 | 1.0297 | 450 | 0.2420 |
63
+ | 0.239 | 1.1442 | 500 | 0.2386 |
64
+ | 0.2361 | 1.2586 | 550 | 0.2361 |
65
+ | 0.2332 | 1.3730 | 600 | 0.2345 |
66
+ | 0.2308 | 1.4874 | 650 | 0.2324 |
67
+ | 0.2301 | 1.6018 | 700 | 0.2307 |
68
+ | 0.228 | 1.7162 | 750 | 0.2295 |
69
+ | 0.228 | 1.8307 | 800 | 0.2285 |
70
+ | 0.2277 | 1.9451 | 850 | 0.2276 |
71
+ | 0.2257 | 2.0595 | 900 | 0.2269 |
72
+ | 0.2251 | 2.1739 | 950 | 0.2259 |
73
+ | 0.223 | 2.2883 | 1000 | 0.2248 |
74
+ | 0.2236 | 2.4027 | 1050 | 0.2241 |
75
+ | 0.221 | 2.5172 | 1100 | 0.2234 |
76
+ | 0.2211 | 2.6316 | 1150 | 0.2234 |
77
+ | 0.2214 | 2.7460 | 1200 | 0.2224 |
78
+ | 0.2205 | 2.8604 | 1250 | 0.2219 |
79
+ | 0.2199 | 2.9748 | 1300 | 0.2214 |
80
+ | 0.2193 | 3.0892 | 1350 | 0.2210 |
81
+ | 0.219 | 3.2037 | 1400 | 0.2206 |
82
+ | 0.2191 | 3.3181 | 1450 | 0.2203 |
83
+ | 0.2185 | 3.4325 | 1500 | 0.2198 |
84
+ | 0.2169 | 3.5469 | 1550 | 0.2197 |
85
+ | 0.2176 | 3.6613 | 1600 | 0.2194 |
86
+ | 0.2171 | 3.7757 | 1650 | 0.2192 |
87
+ | 0.2148 | 3.8902 | 1700 | 0.2191 |
88
+
89
+
90
+ ### Framework versions
91
+
92
+ - PEFT 0.14.0
93
+ - Transformers 4.50.3
94
+ - Pytorch 2.6.0+cu124
95
+ - Datasets 3.5.0
96
+ - Tokenizers 0.21.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.02,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "q_proj"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da892f5afa4bc3eca82e570b126a8c54772b83d832af2e840c5b483ea4f58a73
3
+ size 16785792
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.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false
44
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc098a972a17d9216420ccf7e64358badfa2c08e89b2de4ee1f55c9875a8d026
3
+ size 5368