marialvsantiago commited on
Commit
0a8c31b
·
verified ·
1 Parent(s): 85010d8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: katuni4ka/tiny-random-falcon-40b
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: 9c573ede-35b8-4ec8-b345-fb106a9ddab0
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: katuni4ka/tiny-random-falcon-40b
22
+ bf16: auto
23
+ chat_template: llama3
24
+ dataset_prepared_path: null
25
+ datasets:
26
+ - data_files:
27
+ - ab2fc8caa89864d9_train_data.json
28
+ ds_type: json
29
+ format: custom
30
+ path: /workspace/input_data/ab2fc8caa89864d9_train_data.json
31
+ type:
32
+ field_input: statements
33
+ field_instruction: quiz
34
+ field_output: solution_text
35
+ format: '{instruction} {input}'
36
+ no_input_format: '{instruction}'
37
+ system_format: '{system}'
38
+ system_prompt: ''
39
+ debug: null
40
+ deepspeed: null
41
+ device: cuda
42
+ early_stopping_patience: 1
43
+ eval_max_new_tokens: 128
44
+ eval_steps: 5
45
+ eval_table_size: null
46
+ evals_per_epoch: null
47
+ flash_attention: false
48
+ fp16: null
49
+ gradient_accumulation_steps: 4
50
+ gradient_checkpointing: true
51
+ group_by_length: true
52
+ hub_model_id: marialvsantiago/9c573ede-35b8-4ec8-b345-fb106a9ddab0
53
+ hub_repo: null
54
+ hub_strategy: end
55
+ hub_token: null
56
+ learning_rate: 5.0e-05
57
+ load_in_4bit: false
58
+ load_in_8bit: true
59
+ local_rank: null
60
+ logging_steps: 3
61
+ lora_alpha: 16
62
+ lora_dropout: 0.05
63
+ lora_fan_in_fan_out: null
64
+ lora_model_dir: null
65
+ lora_r: 8
66
+ lora_target_linear: true
67
+ lr_scheduler: cosine
68
+ max_memory:
69
+ 0: 79GiB
70
+ max_steps: 30
71
+ micro_batch_size: 2
72
+ mlflow_experiment_name: /tmp/ab2fc8caa89864d9_train_data.json
73
+ model_type: AutoModelForCausalLM
74
+ num_epochs: 1
75
+ optim_args:
76
+ adam_beta1: 0.9
77
+ adam_beta2: 0.95
78
+ adam_epsilon: 1e-5
79
+ optimizer: adamw_torch
80
+ output_dir: miner_id_24
81
+ pad_to_sequence_len: true
82
+ resume_from_checkpoint: null
83
+ s2_attention: null
84
+ sample_packing: false
85
+ save_steps: 10
86
+ sequence_len: 1024
87
+ special_tokens:
88
+ pad_token: <|endoftext|>
89
+ strict: false
90
+ tf32: false
91
+ tokenizer_type: AutoTokenizer
92
+ train_on_inputs: true
93
+ trust_remote_code: true
94
+ val_set_size: 0.05
95
+ wandb_entity: null
96
+ wandb_mode: online
97
+ wandb_name: 1d550d29-f74b-42e2-a40e-b5d8a39cd793
98
+ wandb_project: Gradients-On-Demand
99
+ wandb_run: your_name
100
+ wandb_runid: 1d550d29-f74b-42e2-a40e-b5d8a39cd793
101
+ warmup_steps: 5
102
+ weight_decay: 0.001
103
+ xformers_attention: true
104
+
105
+ ```
106
+
107
+ </details><br>
108
+
109
+ # 9c573ede-35b8-4ec8-b345-fb106a9ddab0
110
+
111
+ This model is a fine-tuned version of [katuni4ka/tiny-random-falcon-40b](https://huggingface.co/katuni4ka/tiny-random-falcon-40b) on the None dataset.
112
+ It achieves the following results on the evaluation set:
113
+ - Loss: 11.0848
114
+
115
+ ## Model description
116
+
117
+ More information needed
118
+
119
+ ## Intended uses & limitations
120
+
121
+ More information needed
122
+
123
+ ## Training and evaluation data
124
+
125
+ More information needed
126
+
127
+ ## Training procedure
128
+
129
+ ### Training hyperparameters
130
+
131
+ The following hyperparameters were used during training:
132
+ - learning_rate: 5e-05
133
+ - train_batch_size: 2
134
+ - eval_batch_size: 2
135
+ - seed: 42
136
+ - gradient_accumulation_steps: 4
137
+ - total_train_batch_size: 8
138
+ - optimizer: Use OptimizerNames.ADAMW_TORCH 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
139
+ - lr_scheduler_type: cosine
140
+ - lr_scheduler_warmup_steps: 5
141
+ - training_steps: 30
142
+
143
+ ### Training results
144
+
145
+ | Training Loss | Epoch | Step | Validation Loss |
146
+ |:-------------:|:------:|:----:|:---------------:|
147
+ | No log | 0.0014 | 1 | 11.1217 |
148
+ | 44.4809 | 0.0070 | 5 | 11.1176 |
149
+ | 44.4474 | 0.0140 | 10 | 11.1064 |
150
+ | 44.3995 | 0.0211 | 15 | 11.0952 |
151
+ | 44.3698 | 0.0281 | 20 | 11.0883 |
152
+ | 44.3611 | 0.0351 | 25 | 11.0852 |
153
+ | 44.3438 | 0.0421 | 30 | 11.0848 |
154
+
155
+
156
+ ### Framework versions
157
+
158
+ - PEFT 0.13.2
159
+ - Transformers 4.46.0
160
+ - Pytorch 2.5.0+cu124
161
+ - Datasets 3.0.1
162
+ - Tokenizers 0.20.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "katuni4ka/tiny-random-falcon-40b",
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": 16,
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "dense_4h_to_h",
24
+ "dense",
25
+ "query_key_value",
26
+ "dense_h_to_4h"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d301341a2dfd43caa0e544064d68a50edec9bd2e7cb255ddf84dc22412194ff6
3
+ size 129182
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39ba62631d4391c652d11933bbe5d2a41dcbead068e45678c534d71e118615ff
3
+ size 125040
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "katuni4ka/tiny-random-falcon-40b",
4
+ "activation": "gelu",
5
+ "alibi": false,
6
+ "apply_residual_connection_post_layernorm": false,
7
+ "architectures": [
8
+ "FalconForCausalLM"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "bias": false,
12
+ "bos_token_id": null,
13
+ "eos_token_id": 11,
14
+ "ffn_hidden_size": 512,
15
+ "hidden_dropout": 0.0,
16
+ "hidden_size": 128,
17
+ "initializer_range": 0.02,
18
+ "layer_norm_epsilon": 1e-05,
19
+ "max_position_embeddings": 2048,
20
+ "model_type": "falcon",
21
+ "multi_query": true,
22
+ "new_decoder_architecture": true,
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 2,
25
+ "num_kv_heads": 8,
26
+ "num_ln_in_parallel_attn": 2,
27
+ "parallel_attn": true,
28
+ "quantization_config": {
29
+ "_load_in_4bit": false,
30
+ "_load_in_8bit": true,
31
+ "bnb_4bit_compute_dtype": "float32",
32
+ "bnb_4bit_quant_storage": "uint8",
33
+ "bnb_4bit_quant_type": "fp4",
34
+ "bnb_4bit_use_double_quant": false,
35
+ "llm_int8_enable_fp32_cpu_offload": false,
36
+ "llm_int8_has_fp16_weight": false,
37
+ "llm_int8_skip_modules": null,
38
+ "llm_int8_threshold": 6.0,
39
+ "load_in_4bit": false,
40
+ "load_in_8bit": true,
41
+ "quant_method": "bitsandbytes"
42
+ },
43
+ "rope_scaling": null,
44
+ "rope_theta": 10000.0,
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.46.0",
47
+ "use_cache": false,
48
+ "vocab_size": 65024
49
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ ">>TITLE<<",
4
+ ">>ABSTRACT<<",
5
+ ">>INTRODUCTION<<",
6
+ ">>SUMMARY<<",
7
+ ">>COMMENT<<",
8
+ ">>ANSWER<<",
9
+ ">>QUESTION<<",
10
+ ">>DOMAIN<<",
11
+ ">>PREFIX<<",
12
+ ">>SUFFIX<<",
13
+ ">>MIDDLE<<"
14
+ ],
15
+ "eos_token": {
16
+ "content": "<|endoftext|>",
17
+ "lstrip": false,
18
+ "normalized": false,
19
+ "rstrip": false,
20
+ "single_word": false
21
+ },
22
+ "pad_token": {
23
+ "content": "<|endoftext|>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false
28
+ }
29
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": ">>TITLE<<",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": ">>ABSTRACT<<",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": ">>INTRODUCTION<<",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": ">>SUMMARY<<",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": ">>COMMENT<<",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": ">>ANSWER<<",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": ">>QUESTION<<",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": ">>DOMAIN<<",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": ">>PREFIX<<",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": ">>SUFFIX<<",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": ">>MIDDLE<<",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<|endoftext|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ }
100
+ },
101
+ "additional_special_tokens": [
102
+ ">>TITLE<<",
103
+ ">>ABSTRACT<<",
104
+ ">>INTRODUCTION<<",
105
+ ">>SUMMARY<<",
106
+ ">>COMMENT<<",
107
+ ">>ANSWER<<",
108
+ ">>QUESTION<<",
109
+ ">>DOMAIN<<",
110
+ ">>PREFIX<<",
111
+ ">>SUFFIX<<",
112
+ ">>MIDDLE<<"
113
+ ],
114
+ "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 %}",
115
+ "clean_up_tokenization_spaces": false,
116
+ "eos_token": "<|endoftext|>",
117
+ "model_input_names": [
118
+ "input_ids",
119
+ "attention_mask"
120
+ ],
121
+ "model_max_length": 2048,
122
+ "pad_token": "<|endoftext|>",
123
+ "tokenizer_class": "PreTrainedTokenizerFast"
124
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6573cc6dda537c0f78b214730a5ae45173c93249951d88b0207363e791db10f8
3
+ size 6840