cimol commited on
Commit
2affbe5
·
verified ·
1 Parent(s): 49a250d

Model save

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: Qwen/Qwen2-0.5B
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: 3a48d94d-6406-4b11-a8fb-f42d50273305
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: Qwen/Qwen2-0.5B
23
+ bf16: true
24
+ chat_template: llama3
25
+ data_processes: 54
26
+ dataset_prepared_path: null
27
+ datasets:
28
+ - data_files:
29
+ - b973d55f42cfe085_train_data.json
30
+ ds_type: json
31
+ format: custom
32
+ path: /workspace/input_data/b973d55f42cfe085_train_data.json
33
+ type:
34
+ field_input: prediction_agent
35
+ field_instruction: id
36
+ field_output: text
37
+ format: '{instruction} {input}'
38
+ no_input_format: '{instruction}'
39
+ system_format: '{system}'
40
+ system_prompt: ''
41
+ debug: null
42
+ deepspeed: null
43
+ device_map: auto
44
+ distributed_training:
45
+ backend: nccl
46
+ multi_gpu: true
47
+ num_gpus: 2
48
+ do_eval: true
49
+ early_stopping_patience: 4
50
+ eval_batch_size: 16
51
+ eval_max_new_tokens: 128
52
+ eval_steps: 150
53
+ eval_table_size: null
54
+ evals_per_epoch: null
55
+ flash_attention: true
56
+ fp16: false
57
+ fsdp:
58
+ - full_shard
59
+ fsdp_config:
60
+ backward_prefetch: BACKWARD_PRE
61
+ cpu_offload: false
62
+ forward_prefetch: false
63
+ mixed_precision: bf16
64
+ sharding_strategy: FULL_SHARD
65
+ use_orig_params: true
66
+ gradient_accumulation_steps: 1
67
+ gradient_checkpointing: true
68
+ group_by_length: true
69
+ hub_ignore_patterns:
70
+ - README.md
71
+ - config.json
72
+ hub_model_id: cimol/3a48d94d-6406-4b11-a8fb-f42d50273305
73
+ hub_repo: null
74
+ hub_strategy: end
75
+ hub_token: null
76
+ learning_rate: 0.0001
77
+ load_in_4bit: false
78
+ load_in_8bit: false
79
+ local_rank: null
80
+ logging_steps: 10
81
+ lora_alpha: 128
82
+ lora_dropout: 0.1
83
+ lora_fan_in_fan_out: null
84
+ lora_model_dir: null
85
+ lora_r: 64
86
+ lora_target_linear: true
87
+ lr_scheduler: polynomial
88
+ lr_scheduler_warmup_steps: 75
89
+ max_grad_norm: 0.5
90
+ max_memory:
91
+ 0: 75GB
92
+ 1: 75GB
93
+ max_steps: 1950
94
+ micro_batch_size: 16
95
+ mlflow_experiment_name: /tmp/b973d55f42cfe085_train_data.json
96
+ model_type: AutoModelForCausalLM
97
+ num_epochs: 4
98
+ optim_args:
99
+ adam_beta1: 0.9
100
+ adam_beta2: 0.95
101
+ adam_epsilon: 1e-8
102
+ optimizer: adamw_torch
103
+ output_dir: miner_id_24
104
+ pad_to_sequence_len: true
105
+ resume_from_checkpoint: null
106
+ s2_attention: null
107
+ sample_packing: false
108
+ save_steps: 300
109
+ saves_per_epoch: null
110
+ seed: 17333
111
+ sequence_len: 1024
112
+ strict: false
113
+ tf32: true
114
+ tokenizer_type: AutoTokenizer
115
+ total_train_batch_size: 32
116
+ train_batch_size: 32
117
+ train_on_inputs: false
118
+ trust_remote_code: true
119
+ val_set_size: 0.05
120
+ wandb_entity: null
121
+ wandb_mode: online
122
+ wandb_name: 0a4e6580-4386-4e34-a04e-7f6adebdf9f1
123
+ wandb_project: Gradients-On-Demand
124
+ wandb_run: your_name
125
+ wandb_runid: 0a4e6580-4386-4e34-a04e-7f6adebdf9f1
126
+ warmup_steps: 150
127
+ weight_decay: 0.01
128
+ xformers_attention: null
129
+
130
+ ```
131
+
132
+ </details><br>
133
+
134
+ # 3a48d94d-6406-4b11-a8fb-f42d50273305
135
+
136
+ This model is a fine-tuned version of [Qwen/Qwen2-0.5B](https://huggingface.co/Qwen/Qwen2-0.5B) on the None dataset.
137
+ It achieves the following results on the evaluation set:
138
+ - Loss: 2.2988
139
+
140
+ ## Model description
141
+
142
+ More information needed
143
+
144
+ ## Intended uses & limitations
145
+
146
+ More information needed
147
+
148
+ ## Training and evaluation data
149
+
150
+ More information needed
151
+
152
+ ## Training procedure
153
+
154
+ ### Training hyperparameters
155
+
156
+ The following hyperparameters were used during training:
157
+ - learning_rate: 0.0001
158
+ - train_batch_size: 16
159
+ - eval_batch_size: 16
160
+ - seed: 17333
161
+ - distributed_type: multi-GPU
162
+ - num_devices: 2
163
+ - total_train_batch_size: 32
164
+ - total_eval_batch_size: 32
165
+ - 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-8
166
+ - lr_scheduler_type: polynomial
167
+ - lr_scheduler_warmup_steps: 150
168
+ - training_steps: 1950
169
+
170
+ ### Training results
171
+
172
+ | Training Loss | Epoch | Step | Validation Loss |
173
+ |:-------------:|:------:|:----:|:---------------:|
174
+ | No log | 0.0016 | 1 | 2.6957 |
175
+ | 2.2442 | 0.2381 | 150 | 2.4509 |
176
+ | 2.2058 | 0.4762 | 300 | 2.3882 |
177
+ | 2.1434 | 0.7143 | 450 | 2.3595 |
178
+ | 2.0915 | 0.9524 | 600 | 2.3382 |
179
+ | 2.2356 | 1.1905 | 750 | 2.3310 |
180
+ | 2.2304 | 1.4286 | 900 | 2.3187 |
181
+ | 2.167 | 1.6667 | 1050 | 2.3100 |
182
+ | 2.1963 | 1.9048 | 1200 | 2.2987 |
183
+ | 2.1883 | 2.1429 | 1350 | 2.3045 |
184
+ | 2.2211 | 2.3810 | 1500 | 2.3047 |
185
+ | 2.217 | 2.6190 | 1650 | 2.2979 |
186
+ | 2.2194 | 2.8571 | 1800 | 2.2953 |
187
+ | 2.2695 | 3.0952 | 1950 | 2.2988 |
188
+
189
+
190
+ ### Framework versions
191
+
192
+ - PEFT 0.13.2
193
+ - Transformers 4.46.0
194
+ - Pytorch 2.5.0+cu124
195
+ - Datasets 3.0.1
196
+ - 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": "Qwen/Qwen2-0.5B",
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.1,
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
+ "q_proj",
24
+ "o_proj",
25
+ "k_proj",
26
+ "v_proj",
27
+ "up_proj",
28
+ "down_proj",
29
+ "gate_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:061eb2227e17fdcbaedaaa4e8d2643da7775abcd7828d0490bc9b74de8270ed9
3
+ size 140815952
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "Qwen/Qwen2-0.5B",
4
+ "architectures": [
5
+ "Qwen2ForCausalLM"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "eos_token_id": 151643,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 896,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 4864,
13
+ "max_position_embeddings": 131072,
14
+ "max_window_layers": 24,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 14,
17
+ "num_hidden_layers": 24,
18
+ "num_key_value_heads": 2,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_scaling": null,
21
+ "rope_theta": 1000000.0,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": true,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.46.0",
26
+ "use_cache": false,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151936
29
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|endoftext|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcfe42da0a4497e8b2b172c1f9f4ec423a46dc12907f4349c55025f670422ba9
3
+ size 11418266
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "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 %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|endoftext|>",
37
+ "errors": "replace",
38
+ "model_max_length": 32768,
39
+ "pad_token": "<|endoftext|>",
40
+ "split_special_tokens": false,
41
+ "tokenizer_class": "Qwen2Tokenizer",
42
+ "unk_token": null
43
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1fdec8aff630bba200672586e9292b7988673140f4c784d0c8f42f4b173d53b
3
+ size 7032
vocab.json ADDED
The diff for this file is too large to render. See raw diff