Casper0508 commited on
Commit
e0ae9d4
1 Parent(s): 14c3308

End of training

Browse files
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ base_model: meta-llama/Llama-2-7b-chat-hf
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: MSc_llama2_finetuned_model_secondData5
8
+ results: []
9
+ library_name: peft
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
+ # MSc_llama2_finetuned_model_secondData5
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.7187
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
+
36
+ The following `bitsandbytes` quantization config was used during training:
37
+ - quant_method: bitsandbytes
38
+ - _load_in_8bit: False
39
+ - _load_in_4bit: True
40
+ - llm_int8_threshold: 6.0
41
+ - llm_int8_skip_modules: None
42
+ - llm_int8_enable_fp32_cpu_offload: False
43
+ - llm_int8_has_fp16_weight: False
44
+ - bnb_4bit_quant_type: nf4
45
+ - bnb_4bit_use_double_quant: True
46
+ - bnb_4bit_compute_dtype: bfloat16
47
+ - load_in_4bit: True
48
+ - load_in_8bit: False
49
+ ### Training hyperparameters
50
+
51
+ The following hyperparameters were used during training:
52
+ - learning_rate: 3e-05
53
+ - train_batch_size: 8
54
+ - eval_batch_size: 8
55
+ - seed: 42
56
+ - gradient_accumulation_steps: 8
57
+ - total_train_batch_size: 64
58
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
+ - lr_scheduler_type: cosine
60
+ - lr_scheduler_warmup_ratio: 0.03
61
+ - training_steps: 250
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss |
66
+ |:-------------:|:-----:|:----:|:---------------:|
67
+ | 3.9919 | 1.36 | 10 | 3.6771 |
68
+ | 3.369 | 2.71 | 20 | 2.9923 |
69
+ | 2.6302 | 4.07 | 30 | 2.2344 |
70
+ | 1.9467 | 5.42 | 40 | 1.7496 |
71
+ | 1.5893 | 6.78 | 50 | 1.5028 |
72
+ | 1.2919 | 8.14 | 60 | 1.1706 |
73
+ | 0.9447 | 9.49 | 70 | 0.8988 |
74
+ | 0.8096 | 10.85 | 80 | 0.8443 |
75
+ | 0.745 | 12.2 | 90 | 0.8025 |
76
+ | 0.6904 | 13.56 | 100 | 0.7733 |
77
+ | 0.6546 | 14.92 | 110 | 0.7539 |
78
+ | 0.6267 | 16.27 | 120 | 0.7387 |
79
+ | 0.5954 | 17.63 | 130 | 0.7316 |
80
+ | 0.5799 | 18.98 | 140 | 0.7256 |
81
+ | 0.5596 | 20.34 | 150 | 0.7228 |
82
+ | 0.5432 | 21.69 | 160 | 0.7215 |
83
+ | 0.5389 | 23.05 | 170 | 0.7176 |
84
+ | 0.5234 | 24.41 | 180 | 0.7175 |
85
+ | 0.518 | 25.76 | 190 | 0.7189 |
86
+ | 0.5122 | 27.12 | 200 | 0.7177 |
87
+ | 0.5036 | 28.47 | 210 | 0.7185 |
88
+ | 0.5049 | 29.83 | 220 | 0.7191 |
89
+ | 0.5041 | 31.19 | 230 | 0.7195 |
90
+ | 0.5028 | 32.54 | 240 | 0.7188 |
91
+ | 0.4973 | 33.9 | 250 | 0.7187 |
92
+
93
+
94
+ ### Framework versions
95
+
96
+ - PEFT 0.4.0
97
+ - Transformers 4.38.2
98
+ - Pytorch 2.3.1+cu121
99
+ - Datasets 2.13.1
100
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 64,
11
+ "lora_dropout": 0.1,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 32,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "k_proj",
19
+ "v_proj",
20
+ "out_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ad0a4d1ab07824e878d58fe23e5ff2f7ceb1acc1170e6636eadd24f90f9fc59
3
+ size 100689152
emissions.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ timestamp,experiment_id,project_name,duration,emissions,energy_consumed,country_name,country_iso_code,region,on_cloud,cloud_provider,cloud_region
2
+ 2024-06-22T20:34:59,ce747098-b5f3-453c-9606-3f670931bcdf,codecarbon,2998.2358384132385,0.20044933884618016,0.2982393066777835,United Kingdom,GBR,scotland,N,,
runs/Jun22_19-44-57_msc-modeltrain-pod2/events.out.tfevents.1719085501.msc-modeltrain-pod2.9420.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f40905205bab5a48143718b6cbc0d41609efebf1e7a06899012fda8362cbe0c
3
+ size 17462
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,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "bos_token": "<s>",
31
+ "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 %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
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:8b5b889d5804cd5b9bf885865491cf0f043e9502601e6354e303d46d4b778f7b
3
+ size 4984