tyson0420 commited on
Commit
19e168b
Β·
verified Β·
1 Parent(s): d20a0bb

Model save

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ base_model: codellama/CodeLlama-7b-Instruct-hf
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: codellama-7b-inst-sft-lora-test
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # codellama-7b-inst-sft-lora-test
15
+
16
+ This model is a fine-tuned version of [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.6483
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 2
43
+ - gradient_accumulation_steps: 128
44
+ - total_train_batch_size: 1024
45
+ - total_eval_batch_size: 16
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.6579 | 0.49 | 1 | 1.6482 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.35.0
61
+ - Pytorch 2.1.0
62
+ - Datasets 2.14.6
63
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "codellama/CodeLlama-7b-Instruct-hf",
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
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "k_proj",
20
+ "o_proj",
21
+ "q_proj",
22
+ "v_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c96f5d29af1f922422da0bf97d235a4f3cc768da58a51d34cf53ef8a2616b4d3
3
+ size 134252592
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.49,
3
+ "eval_loss": 1.6482644081115723,
4
+ "eval_runtime": 1524.9151,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 15.155,
7
+ "eval_steps_per_second": 0.948,
8
+ "train_loss": 2.3372400999069214,
9
+ "train_runtime": 2103.1993,
10
+ "train_samples": 2078,
11
+ "train_samples_per_second": 0.988,
12
+ "train_steps_per_second": 0.001
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.49,
3
+ "eval_loss": 1.6482644081115723,
4
+ "eval_runtime": 1524.9151,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 15.155,
7
+ "eval_steps_per_second": 0.948
8
+ }
runs/Jan11_15-38-24_dl-host10/events.out.tfevents.1704955122.dl-host10.139132.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aec705cc59ed6605fc441784a8cf7323b229c53b6dbfb57c982cb2bc2583014
3
+ size 5140
runs/Jan12_07-09-12_dl-host10/events.out.tfevents.1705010966.dl-host10.169225.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:514de9b1d5d8b52bde44d97451096dcfe2cde115b798ed289cf71fa6f97f8b95
3
+ size 5140
runs/Jan12_07-09-12_dl-host10/events.out.tfevents.1705014594.dl-host10.169225.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db9cc1a273bb6de16756d2ef2cbbf13c21233e4baa8eb9f9cebb685ba70f6ef0
3
+ size 354
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "▁<PRE>",
4
+ "▁<MID>",
5
+ "▁<SUF>",
6
+ "▁<EOT>"
7
+ ],
8
+ "bos_token": {
9
+ "content": "<s>",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ },
15
+ "eos_token": {
16
+ "content": "</s>",
17
+ "lstrip": false,
18
+ "normalized": true,
19
+ "rstrip": false,
20
+ "single_word": false
21
+ },
22
+ "pad_token": "</s>",
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": true,
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_config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": true,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": true,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "32007": {
28
+ "content": "▁<PRE>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "32008": {
36
+ "content": "▁<SUF>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "32009": {
44
+ "content": "▁<MID>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "32010": {
52
+ "content": "▁<EOT>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ }
59
+ },
60
+ "additional_special_tokens": [
61
+ "▁<PRE>",
62
+ "▁<MID>",
63
+ "▁<SUF>",
64
+ "▁<EOT>"
65
+ ],
66
+ "bos_token": "<s>",
67
+ "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 %}",
68
+ "clean_up_tokenization_spaces": false,
69
+ "eos_token": "</s>",
70
+ "eot_token": "▁<EOT>",
71
+ "fill_token": "<FILL_ME>",
72
+ "legacy": null,
73
+ "middle_token": "▁<MID>",
74
+ "model_max_length": 2048,
75
+ "pad_token": "</s>",
76
+ "prefix_token": "▁<PRE>",
77
+ "sp_model_kwargs": {},
78
+ "suffix_token": "▁<SUF>",
79
+ "tokenizer_class": "CodeLlamaTokenizer",
80
+ "unk_token": "<unk>",
81
+ "use_default_system_prompt": false
82
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.49,
3
+ "train_loss": 2.3372400999069214,
4
+ "train_runtime": 2103.1993,
5
+ "train_samples": 2078,
6
+ "train_samples_per_second": 0.988,
7
+ "train_steps_per_second": 0.001
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.49230769230769234,
5
+ "eval_steps": 500,
6
+ "global_step": 1,
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.49,
13
+ "learning_rate": 2e-05,
14
+ "loss": 1.6579,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.49,
19
+ "eval_loss": 1.648226261138916,
20
+ "eval_runtime": 1525.0437,
21
+ "eval_samples_per_second": 15.154,
22
+ "eval_steps_per_second": 0.948,
23
+ "step": 1
24
+ },
25
+ {
26
+ "epoch": 0.49,
27
+ "step": 1,
28
+ "total_flos": 909231154790400.0,
29
+ "train_loss": 2.3372400999069214,
30
+ "train_runtime": 2103.1993,
31
+ "train_samples_per_second": 0.988,
32
+ "train_steps_per_second": 0.001
33
+ }
34
+ ],
35
+ "logging_steps": 5,
36
+ "max_steps": 2,
37
+ "num_train_epochs": 1,
38
+ "save_steps": 100,
39
+ "total_flos": 909231154790400.0,
40
+ "trial_name": null,
41
+ "trial_params": null
42
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93f3a5ea9e00e0ddec5d9339578649c62f8899f5c8af281023a17e36c2da8730
3
+ size 5688