thaffggg commited on
Commit
ff76b9a
1 Parent(s): 1e9629b

End of training

Browse files
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: tiiuae/falcon-7b
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: 0c7ceba6-b903-40fe-a128-5b8de04ce1a6
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: tiiuae/falcon-7b
23
+ bf16: auto
24
+ chat_template: llama3
25
+ dataset_prepared_path: null
26
+ datasets:
27
+ - data_files:
28
+ - df669837fd14f56d_train_data.json
29
+ ds_type: json
30
+ format: custom
31
+ path: /workspace/input_data/df669837fd14f56d_train_data.json
32
+ type:
33
+ field_input: paper_abstract
34
+ field_instruction: paper_title
35
+ field_output: review_contents
36
+ format: '{instruction} {input}'
37
+ no_input_format: '{instruction}'
38
+ system_format: '{system}'
39
+ system_prompt: ''
40
+ debug: null
41
+ deepspeed: null
42
+ early_stopping_patience: null
43
+ eval_max_new_tokens: 128
44
+ eval_table_size: null
45
+ evals_per_epoch: 1
46
+ flash_attention: false
47
+ fp16: null
48
+ fsdp: null
49
+ fsdp_config: null
50
+ gradient_accumulation_steps: 4
51
+ gradient_checkpointing: true
52
+ gradient_clipping: 1.0
53
+ group_by_length: false
54
+ hub_model_id: thaffggg/0c7ceba6-b903-40fe-a128-5b8de04ce1a6
55
+ hub_repo: null
56
+ hub_strategy: end
57
+ hub_token: null
58
+ learning_rate: 0.0001
59
+ load_in_4bit: true
60
+ load_in_8bit: true
61
+ local_rank: null
62
+ logging_steps: 1
63
+ lora_alpha: 32
64
+ lora_dropout: 0.1
65
+ lora_fan_in_fan_out: null
66
+ lora_model_dir: null
67
+ lora_r: 16
68
+ lora_target_linear: true
69
+ lr_scheduler: cosine
70
+ max_steps: 50
71
+ micro_batch_size: 1
72
+ mlflow_experiment_name: /tmp/df669837fd14f56d_train_data.json
73
+ model_type: AutoModelForCausalLM
74
+ num_epochs: 1
75
+ optimizer: adamw_bnb_8bit
76
+ output_dir: miner_id_24
77
+ pad_to_sequence_len: true
78
+ resume_from_checkpoint: null
79
+ s2_attention: null
80
+ sample_packing: false
81
+ saves_per_epoch: 1
82
+ sequence_len: 2048
83
+ special_tokens:
84
+ pad_token: <|endoftext|>
85
+ strict: false
86
+ tf32: false
87
+ tokenizer_type: AutoTokenizer
88
+ train_on_inputs: false
89
+ trust_remote_code: true
90
+ val_set_size: 0.05
91
+ wandb_entity: null
92
+ wandb_mode: online
93
+ wandb_name: 0c7ceba6-b903-40fe-a128-5b8de04ce1a6
94
+ wandb_project: Gradients-On-Demand
95
+ wandb_run: your_name
96
+ wandb_runid: 0c7ceba6-b903-40fe-a128-5b8de04ce1a6
97
+ warmup_steps: 10
98
+ weight_decay: 0.01
99
+ xformers_attention: true
100
+
101
+ ```
102
+
103
+ </details><br>
104
+
105
+ # 0c7ceba6-b903-40fe-a128-5b8de04ce1a6
106
+
107
+ This model is a fine-tuned version of [tiiuae/falcon-7b](https://huggingface.co/tiiuae/falcon-7b) on the None dataset.
108
+ It achieves the following results on the evaluation set:
109
+ - Loss: 2.5030
110
+
111
+ ## Model description
112
+
113
+ More information needed
114
+
115
+ ## Intended uses & limitations
116
+
117
+ More information needed
118
+
119
+ ## Training and evaluation data
120
+
121
+ More information needed
122
+
123
+ ## Training procedure
124
+
125
+ ### Training hyperparameters
126
+
127
+ The following hyperparameters were used during training:
128
+ - learning_rate: 0.0001
129
+ - train_batch_size: 1
130
+ - eval_batch_size: 1
131
+ - seed: 42
132
+ - gradient_accumulation_steps: 4
133
+ - total_train_batch_size: 4
134
+ - optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
135
+ - lr_scheduler_type: cosine
136
+ - lr_scheduler_warmup_steps: 10
137
+ - training_steps: 50
138
+
139
+ ### Training results
140
+
141
+ | Training Loss | Epoch | Step | Validation Loss |
142
+ |:-------------:|:------:|:----:|:---------------:|
143
+ | 10.1413 | 0.0142 | 50 | 2.5030 |
144
+
145
+
146
+ ### Framework versions
147
+
148
+ - PEFT 0.13.2
149
+ - Transformers 4.46.0
150
+ - Pytorch 2.5.0+cu124
151
+ - Datasets 3.0.1
152
+ - 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": "tiiuae/falcon-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.1,
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
+ "dense_h_to_4h",
24
+ "dense",
25
+ "query_key_value",
26
+ "dense_4h_to_h"
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:1b8499dc7ba8c72a16346aa9bf5e8328f2f5b665b69c473635eed22fd841266e
3
+ size 130642186
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:534219b280ef82f28a80b4d4e336a1f3d3c6eae11f340c17ba4b611a27b94143
3
+ size 130583912
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "tiiuae/falcon-7b",
4
+ "alibi": false,
5
+ "apply_residual_connection_post_layernorm": false,
6
+ "architectures": [
7
+ "FalconForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "auto_map": {
11
+ "AutoConfig": "tiiuae/falcon-7b--configuration_falcon.FalconConfig",
12
+ "AutoModel": "tiiuae/falcon-7b--modeling_falcon.FalconModel",
13
+ "AutoModelForCausalLM": "tiiuae/falcon-7b--modeling_falcon.FalconForCausalLM",
14
+ "AutoModelForQuestionAnswering": "tiiuae/falcon-7b--modeling_falcon.FalconForQuestionAnswering",
15
+ "AutoModelForSequenceClassification": "tiiuae/falcon-7b--modeling_falcon.FalconForSequenceClassification",
16
+ "AutoModelForTokenClassification": "tiiuae/falcon-7b--modeling_falcon.FalconForTokenClassification"
17
+ },
18
+ "bias": false,
19
+ "bos_token_id": null,
20
+ "eos_token_id": 11,
21
+ "hidden_dropout": 0.0,
22
+ "hidden_size": 4544,
23
+ "initializer_range": 0.02,
24
+ "layer_norm_epsilon": 1e-05,
25
+ "model_type": "falcon",
26
+ "multi_query": true,
27
+ "new_decoder_architecture": false,
28
+ "num_attention_heads": 71,
29
+ "num_hidden_layers": 32,
30
+ "num_kv_heads": 71,
31
+ "parallel_attn": true,
32
+ "quantization_config": {
33
+ "_load_in_4bit": false,
34
+ "_load_in_8bit": true,
35
+ "bnb_4bit_compute_dtype": "float32",
36
+ "bnb_4bit_quant_storage": "uint8",
37
+ "bnb_4bit_quant_type": "fp4",
38
+ "bnb_4bit_use_double_quant": false,
39
+ "llm_int8_enable_fp32_cpu_offload": false,
40
+ "llm_int8_has_fp16_weight": false,
41
+ "llm_int8_skip_modules": null,
42
+ "llm_int8_threshold": 6.0,
43
+ "load_in_4bit": false,
44
+ "load_in_8bit": true,
45
+ "quant_method": "bitsandbytes"
46
+ },
47
+ "torch_dtype": "bfloat16",
48
+ "transformers_version": "4.46.0",
49
+ "use_cache": false,
50
+ "vocab_size": 65024
51
+ }
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:5098e1cd97b06bb54b059ac52e9c20f86561018437a02c9fdcb9f2525dc45e01
3
+ size 6776