dimasik2987 commited on
Commit
ba1c555
·
verified ·
1 Parent(s): 775bc85

End of training

Browse files
README.md ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: NousResearch/CodeLlama-7b-hf-flash
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: 9dec3a75-8458-4e6e-8973-d778feaf3154
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
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
16
+ <details><summary>See axolotl config</summary>
17
+
18
+ axolotl version: `0.4.1`
19
+ ```yaml
20
+ adapter: lora
21
+ base_model: NousResearch/CodeLlama-7b-hf-flash
22
+ bf16: true
23
+ chat_template: llama3
24
+ data_processes: 8
25
+ dataset_prepared_path: null
26
+ datasets:
27
+ - data_files:
28
+ - ef066a96964aba8a_train_data.json
29
+ ds_type: json
30
+ format: custom
31
+ path: /workspace/input_data/ef066a96964aba8a_train_data.json
32
+ type:
33
+ field_instruction: title
34
+ field_output: description
35
+ format: '{instruction}'
36
+ no_input_format: '{instruction}'
37
+ system_format: '{system}'
38
+ system_prompt: ''
39
+ debug: null
40
+ deepspeed: null
41
+ device_map: auto
42
+ do_eval: true
43
+ early_stopping_patience: 1
44
+ eval_batch_size: 4
45
+ eval_max_new_tokens: 128
46
+ eval_steps: 50
47
+ eval_table_size: null
48
+ evals_per_epoch: null
49
+ flash_attention: false
50
+ fp16: false
51
+ gradient_accumulation_steps: 4
52
+ gradient_checkpointing: true
53
+ group_by_length: true
54
+ hub_model_id: dimasik2987/9dec3a75-8458-4e6e-8973-d778feaf3154
55
+ hub_repo: null
56
+ hub_strategy: end
57
+ hub_token: null
58
+ learning_rate: 5.0e-05
59
+ load_in_4bit: true
60
+ load_in_8bit: false
61
+ local_rank: null
62
+ logging_steps: 3
63
+ lora_alpha: 128
64
+ lora_dropout: 0.05
65
+ lora_fan_in_fan_out: null
66
+ lora_model_dir: null
67
+ lora_r: 64
68
+ lora_target_linear: true
69
+ lr_scheduler: cosine
70
+ max_grad_norm: 1.0
71
+ max_memory:
72
+ 0: 80GiB
73
+ cpu: 30GiB
74
+ max_steps: 150
75
+ micro_batch_size: 6
76
+ mlflow_experiment_name: /tmp/ef066a96964aba8a_train_data.json
77
+ model_type: AutoModelForCausalLM
78
+ num_epochs: 1
79
+ optim_args:
80
+ adam_beta1: 0.9
81
+ adam_beta2: 0.95
82
+ adam_epsilon: 1e-5
83
+ optimizer: adamw_bnb_8bit
84
+ output_dir: miner_id_24
85
+ pad_to_sequence_len: true
86
+ resume_from_checkpoint: null
87
+ s2_attention: null
88
+ sample_packing: false
89
+ save_steps: 50
90
+ sequence_len: 1024
91
+ special_tokens:
92
+ pad_token: </s>
93
+ strict: false
94
+ tf32: true
95
+ tokenizer_type: AutoTokenizer
96
+ train_on_inputs: false
97
+ trust_remote_code: true
98
+ val_set_size: 0.05
99
+ wandb_entity: null
100
+ wandb_mode: online
101
+ wandb_name: 7cf2646b-3084-4458-ab3f-4af8618983fd
102
+ wandb_project: Gradients-On-Demand
103
+ wandb_run: your_name
104
+ wandb_runid: 7cf2646b-3084-4458-ab3f-4af8618983fd
105
+ warmup_steps: 10
106
+ weight_decay: 0.001
107
+ xformers_attention: null
108
+
109
+ ```
110
+
111
+ </details><br>
112
+
113
+ # 9dec3a75-8458-4e6e-8973-d778feaf3154
114
+
115
+ This model is a fine-tuned version of [NousResearch/CodeLlama-7b-hf-flash](https://huggingface.co/NousResearch/CodeLlama-7b-hf-flash) on the None dataset.
116
+ It achieves the following results on the evaluation set:
117
+ - Loss: 1.3242
118
+
119
+ ## Model description
120
+
121
+ More information needed
122
+
123
+ ## Intended uses & limitations
124
+
125
+ More information needed
126
+
127
+ ## Training and evaluation data
128
+
129
+ More information needed
130
+
131
+ ## Training procedure
132
+
133
+ ### Training hyperparameters
134
+
135
+ The following hyperparameters were used during training:
136
+ - learning_rate: 5e-05
137
+ - train_batch_size: 6
138
+ - eval_batch_size: 4
139
+ - seed: 42
140
+ - gradient_accumulation_steps: 4
141
+ - total_train_batch_size: 24
142
+ - optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=adam_beta1=0.9,adam_beta2=0.95,adam_epsilon=1e-5
143
+ - lr_scheduler_type: cosine
144
+ - lr_scheduler_warmup_steps: 10
145
+ - training_steps: 84
146
+
147
+ ### Training results
148
+
149
+ | Training Loss | Epoch | Step | Validation Loss |
150
+ |:-------------:|:------:|:----:|:---------------:|
151
+ | No log | 0.0120 | 1 | 2.5323 |
152
+ | 5.031 | 0.5988 | 50 | 1.3242 |
153
+
154
+
155
+ ### Framework versions
156
+
157
+ - PEFT 0.13.2
158
+ - Transformers 4.46.0
159
+ - Pytorch 2.5.0+cu124
160
+ - Datasets 3.0.1
161
+ - Tokenizers 0.20.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NousResearch/CodeLlama-7b-hf-flash",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 128,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 64,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "up_proj",
24
+ "k_proj",
25
+ "q_proj",
26
+ "v_proj",
27
+ "o_proj",
28
+ "gate_proj",
29
+ "down_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ef8af5f0116f12c6561ae76127fe94da4bec717575f4822fb906cc5814e7eb3
3
+ size 639793354
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ffae69b7c2d320a8a5493288ab3b9e4c8f11f7deaa30b0dfcd27e0d5139de57
3
+ size 639691872
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "NousResearch/CodeLlama-7b-hf-flash",
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "auto_map": {
8
+ "AutoConfig": "NousResearch/CodeLlama-7b-hf-flash--configuration_llama.LlamaConfig",
9
+ "AutoModel": "NousResearch/CodeLlama-7b-hf-flash--modeling_flash_llama.LlamaModel",
10
+ "AutoModelForCausalLM": "NousResearch/CodeLlama-7b-hf-flash--modeling_flash_llama.LlamaForCausalLM",
11
+ "AutoModelForSequenceClassification": "NousResearch/CodeLlama-7b-hf-flash--modeling_flash_llama.LlamaForSequenceClassification"
12
+ },
13
+ "bos_token_id": 1,
14
+ "eos_token_id": 2,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 4096,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 11008,
19
+ "max_position_embeddings": 16384,
20
+ "model_type": "llama",
21
+ "num_attention_heads": 32,
22
+ "num_hidden_layers": 32,
23
+ "num_key_value_heads": 32,
24
+ "pretraining_tp": 1,
25
+ "quantization_config": {
26
+ "_load_in_4bit": true,
27
+ "_load_in_8bit": false,
28
+ "bnb_4bit_compute_dtype": "float32",
29
+ "bnb_4bit_quant_storage": "uint8",
30
+ "bnb_4bit_quant_type": "fp4",
31
+ "bnb_4bit_use_double_quant": false,
32
+ "llm_int8_enable_fp32_cpu_offload": false,
33
+ "llm_int8_has_fp16_weight": false,
34
+ "llm_int8_skip_modules": null,
35
+ "llm_int8_threshold": 6.0,
36
+ "load_in_4bit": true,
37
+ "load_in_8bit": false,
38
+ "quant_method": "bitsandbytes"
39
+ },
40
+ "rms_norm_eps": 1e-05,
41
+ "rope_scaling": null,
42
+ "rope_theta": 1000000,
43
+ "tie_word_embeddings": false,
44
+ "torch_dtype": "float16",
45
+ "transformers_version": "4.46.0",
46
+ "use_cache": false,
47
+ "vocab_size": 32016
48
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "</s>",
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:45ccb9c8b6b561889acea59191d66986d314e7cbd6a78abc6e49b139ca91c1e6
3
+ size 500058
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": "</s>",
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:d4b31e033203d38dcd433e3c9589da4e191a748e45f4e8202c88e7dce765b829
3
+ size 6840