laquythang commited on
Commit
5478659
β€’
1 Parent(s): 7f6a6d3

End of training

Browse files
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: unsloth/codellama-7b
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: 1c035dd4-6499-4016-bb3e-be95ced4a3af
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ [<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)
17
+ <details><summary>See axolotl config</summary>
18
+
19
+ axolotl version: `0.4.1`
20
+ ```yaml
21
+ adapter: lora
22
+ base_model: unsloth/codellama-7b
23
+ bf16: auto
24
+ chat_template: llama3
25
+ dataset_prepared_path: null
26
+ datasets:
27
+ - data_files:
28
+ - 0e67f25d9c7a30b5_train_data.json
29
+ ds_type: json
30
+ format: custom
31
+ path: /workspace/input_data/0e67f25d9c7a30b5_train_data.json
32
+ type:
33
+ field_instruction: text
34
+ field_output: target
35
+ format: '{instruction}'
36
+ no_input_format: '{instruction}'
37
+ system_format: '{system}'
38
+ system_prompt: ''
39
+ debug: null
40
+ deepspeed: null
41
+ early_stopping_patience: null
42
+ eval_max_new_tokens: 128
43
+ eval_table_size: null
44
+ evals_per_epoch: 1
45
+ flash_attention: true
46
+ fp16: null
47
+ fsdp: null
48
+ fsdp_config: null
49
+ gradient_accumulation_steps: 1
50
+ gradient_checkpointing: true
51
+ group_by_length: false
52
+ hub_model_id: laquythang/1c035dd4-6499-4016-bb3e-be95ced4a3af
53
+ hub_repo: null
54
+ hub_strategy: end
55
+ hub_token: null
56
+ learning_rate: 0.0002
57
+ load_in_4bit: true
58
+ load_in_8bit: true
59
+ local_rank: null
60
+ logging_steps: 1
61
+ lora_alpha: 32
62
+ lora_dropout: 0.05
63
+ lora_fan_in_fan_out: null
64
+ lora_model_dir: null
65
+ lora_r: 16
66
+ lora_target_linear: true
67
+ lr_scheduler: cosine
68
+ max_steps: 10
69
+ micro_batch_size: 1
70
+ mlflow_experiment_name: /tmp/0e67f25d9c7a30b5_train_data.json
71
+ model_type: AutoModelForCausalLM
72
+ num_epochs: 1
73
+ optimizer: adamw_bnb_8bit
74
+ output_dir: miner_id_24
75
+ pad_to_sequence_len: true
76
+ resume_from_checkpoint: null
77
+ s2_attention: null
78
+ sample_packing: false
79
+ saves_per_epoch: 1
80
+ sequence_len: 2048
81
+ strict: false
82
+ tf32: false
83
+ tokenizer_type: AutoTokenizer
84
+ train_on_inputs: false
85
+ trust_remote_code: true
86
+ val_set_size: 0.05
87
+ wandb_entity: null
88
+ wandb_mode: online
89
+ wandb_name: 1c035dd4-6499-4016-bb3e-be95ced4a3af
90
+ wandb_project: Gradients-On-Demand
91
+ wandb_run: your_name
92
+ wandb_runid: 1c035dd4-6499-4016-bb3e-be95ced4a3af
93
+ warmup_steps: 10
94
+ weight_decay: 0.0
95
+ xformers_attention: true
96
+
97
+ ```
98
+
99
+ </details><br>
100
+
101
+ # 1c035dd4-6499-4016-bb3e-be95ced4a3af
102
+
103
+ This model is a fine-tuned version of [unsloth/codellama-7b](https://huggingface.co/unsloth/codellama-7b) on the None dataset.
104
+ It achieves the following results on the evaluation set:
105
+ - Loss: 1.6374
106
+
107
+ ## Model description
108
+
109
+ More information needed
110
+
111
+ ## Intended uses & limitations
112
+
113
+ More information needed
114
+
115
+ ## Training and evaluation data
116
+
117
+ More information needed
118
+
119
+ ## Training procedure
120
+
121
+ ### Training hyperparameters
122
+
123
+ The following hyperparameters were used during training:
124
+ - learning_rate: 0.0002
125
+ - train_batch_size: 1
126
+ - eval_batch_size: 1
127
+ - seed: 42
128
+ - optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
129
+ - lr_scheduler_type: cosine
130
+ - lr_scheduler_warmup_steps: 10
131
+ - training_steps: 10
132
+
133
+ ### Training results
134
+
135
+ | Training Loss | Epoch | Step | Validation Loss |
136
+ |:-------------:|:------:|:----:|:---------------:|
137
+ | 2.2726 | 0.0000 | 10 | 1.6374 |
138
+
139
+
140
+ ### Framework versions
141
+
142
+ - PEFT 0.13.2
143
+ - Transformers 4.46.0
144
+ - Pytorch 2.5.0+cu124
145
+ - Datasets 3.0.1
146
+ - 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": "unsloth/codellama-7b",
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": 32,
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": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "k_proj",
24
+ "down_proj",
25
+ "q_proj",
26
+ "gate_proj",
27
+ "o_proj",
28
+ "up_proj",
29
+ "v_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:7f203076d290dc6c4eef699df1fee3930c0407becfcf45994f94f5f33161ac23
3
+ size 160069834
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d56b746e7b6fcbc682c70f36cc24c2f2b9e45e8cbc89ac1ba4f0b6cd3aec1271
3
+ size 159967880
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "unsloth/codellama-7b",
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 1,
10
+ "eos_token_id": 2,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 4096,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 11008,
16
+ "max_position_embeddings": 16384,
17
+ "mlp_bias": false,
18
+ "model_type": "llama",
19
+ "num_attention_heads": 32,
20
+ "num_hidden_layers": 32,
21
+ "num_key_value_heads": 32,
22
+ "pad_token_id": 0,
23
+ "pretraining_tp": 1,
24
+ "quantization_config": {
25
+ "_load_in_4bit": false,
26
+ "_load_in_8bit": true,
27
+ "bnb_4bit_compute_dtype": "float32",
28
+ "bnb_4bit_quant_storage": "uint8",
29
+ "bnb_4bit_quant_type": "fp4",
30
+ "bnb_4bit_use_double_quant": false,
31
+ "llm_int8_enable_fp32_cpu_offload": false,
32
+ "llm_int8_has_fp16_weight": false,
33
+ "llm_int8_skip_modules": null,
34
+ "llm_int8_threshold": 6.0,
35
+ "load_in_4bit": false,
36
+ "load_in_8bit": true,
37
+ "quant_method": "bitsandbytes"
38
+ },
39
+ "rms_norm_eps": 1e-05,
40
+ "rope_scaling": null,
41
+ "rope_theta": 1000000,
42
+ "tie_word_embeddings": false,
43
+ "torch_dtype": "bfloat16",
44
+ "transformers_version": "4.46.0",
45
+ "unsloth_version": "2024.9",
46
+ "use_cache": false,
47
+ "vocab_size": 32016
48
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "▁<PRE>",
4
+ "▁<MID>",
5
+ "▁<SUF>",
6
+ "▁<EOT>",
7
+ "▁<PRE>",
8
+ "▁<MID>",
9
+ "▁<SUF>",
10
+ "▁<EOT>"
11
+ ],
12
+ "bos_token": {
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "eos_token": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "pad_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ },
33
+ "unk_token": {
34
+ "content": "<unk>",
35
+ "lstrip": false,
36
+ "normalized": false,
37
+ "rstrip": false,
38
+ "single_word": false
39
+ }
40
+ }
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,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "32007": {
30
+ "content": "▁<PRE>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32008": {
38
+ "content": "▁<SUF>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32009": {
46
+ "content": "▁<MID>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "32010": {
54
+ "content": "▁<EOT>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ }
61
+ },
62
+ "additional_special_tokens": [
63
+ "▁<PRE>",
64
+ "▁<MID>",
65
+ "▁<SUF>",
66
+ "▁<EOT>",
67
+ "▁<PRE>",
68
+ "▁<MID>",
69
+ "▁<SUF>",
70
+ "▁<EOT>"
71
+ ],
72
+ "bos_token": "<s>",
73
+ "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 %}",
74
+ "clean_up_tokenization_spaces": false,
75
+ "eos_token": "</s>",
76
+ "eot_token": "▁<EOT>",
77
+ "fill_token": "<FILL_ME>",
78
+ "legacy": null,
79
+ "middle_token": "▁<MID>",
80
+ "model_max_length": 1000000000000000019884624838656,
81
+ "pad_token": "<unk>",
82
+ "padding_side": "left",
83
+ "prefix_token": "▁<PRE>",
84
+ "sp_model_kwargs": {},
85
+ "suffix_token": "▁<SUF>",
86
+ "tokenizer_class": "CodeLlamaTokenizer",
87
+ "unk_token": "<unk>",
88
+ "use_default_system_prompt": false
89
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f533d6dae735298500e74047a5639379e967bc6ee3133134634fa16d2fb7c0a6
3
+ size 6776