cimol commited on
Commit
6f2a692
·
verified ·
1 Parent(s): fe84937

Model save

Browse files
README.md ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: NousResearch/Genstruct-7B
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: bb8db7d9-f5f8-49e9-9bc8-c9398d45aae8
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: NousResearch/Genstruct-7B
23
+ bf16: true
24
+ chat_template: llama3
25
+ data_processes: 54
26
+ dataset_prepared_path: null
27
+ datasets:
28
+ - data_files:
29
+ - c99bcfaf72b4ce96_train_data.json
30
+ ds_type: json
31
+ format: custom
32
+ path: /workspace/input_data/c99bcfaf72b4ce96_train_data.json
33
+ type:
34
+ field_input: dense_caption
35
+ field_instruction: source
36
+ field_output: short_caption
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
+ multi_gpu: true
46
+ num_gpus: 2
47
+ do_eval: true
48
+ early_stopping_patience: 5
49
+ eval_batch_size: 8
50
+ eval_max_new_tokens: 128
51
+ eval_steps: 150
52
+ eval_table_size: null
53
+ evals_per_epoch: null
54
+ flash_attention: true
55
+ fp16: false
56
+ fsdp:
57
+ - full_shard
58
+ fsdp_config:
59
+ activation_checkpointing: false
60
+ backward_prefetch: BACKWARD_POST
61
+ forward_prefetch: FORWARD_POST
62
+ fsdp_min_num_params: 1000000000
63
+ limit_all_gathers: true
64
+ mixed_precision: bf16
65
+ sharding_strategy: FULL_SHARD
66
+ gradient_accumulation_steps: 2
67
+ gradient_checkpointing: true
68
+ group_by_length: true
69
+ hub_ignore_patterns:
70
+ - README.md
71
+ - config.json
72
+ hub_model_id: cimol/bb8db7d9-f5f8-49e9-9bc8-c9398d45aae8
73
+ hub_repo: null
74
+ hub_strategy: end
75
+ hub_token: null
76
+ learning_rate: 0.00015
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.3
83
+ lora_fan_in_fan_out: null
84
+ lora_model_dir: null
85
+ lora_r: 64
86
+ lora_target_linear: true
87
+ lr_scheduler: cosine
88
+ lr_scheduler_warmup_steps: 100
89
+ max_grad_norm: 0.5
90
+ max_memory:
91
+ 0: 80GB
92
+ 1: 80GB
93
+ max_steps: 300
94
+ micro_batch_size: 8
95
+ mlflow_experiment_name: /tmp/c99bcfaf72b4ce96_train_data.json
96
+ model_type: AutoModelForCausalLM
97
+ num_epochs: 3
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: 150
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: 16
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: 5fe4e4a5-962b-4cf1-ad5b-1719042dd13b
123
+ wandb_project: Gradients-On-Demand
124
+ wandb_run: your_name
125
+ wandb_runid: 5fe4e4a5-962b-4cf1-ad5b-1719042dd13b
126
+ warmup_steps: 100
127
+ weight_decay: 0.005
128
+ xformers_attention: null
129
+
130
+ ```
131
+
132
+ </details><br>
133
+
134
+ # bb8db7d9-f5f8-49e9-9bc8-c9398d45aae8
135
+
136
+ This model is a fine-tuned version of [NousResearch/Genstruct-7B](https://huggingface.co/NousResearch/Genstruct-7B) on the None dataset.
137
+ It achieves the following results on the evaluation set:
138
+ - Loss: 0.3091
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.00015
158
+ - train_batch_size: 8
159
+ - eval_batch_size: 8
160
+ - seed: 17333
161
+ - distributed_type: multi-GPU
162
+ - num_devices: 2
163
+ - gradient_accumulation_steps: 2
164
+ - total_train_batch_size: 32
165
+ - total_eval_batch_size: 16
166
+ - 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
167
+ - lr_scheduler_type: cosine
168
+ - lr_scheduler_warmup_steps: 100
169
+ - training_steps: 300
170
+
171
+ ### Training results
172
+
173
+ | Training Loss | Epoch | Step | Validation Loss |
174
+ |:-------------:|:------:|:----:|:---------------:|
175
+ | No log | 0.0001 | 1 | 1.6394 |
176
+ | 0.8485 | 0.0106 | 150 | 0.4222 |
177
+ | 0.6204 | 0.0213 | 300 | 0.3091 |
178
+
179
+
180
+ ### Framework versions
181
+
182
+ - PEFT 0.13.2
183
+ - Transformers 4.46.0
184
+ - Pytorch 2.5.0+cu124
185
+ - Datasets 3.0.1
186
+ - 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/Genstruct-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": 128,
14
+ "lora_dropout": 0.3,
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
+ "v_proj",
24
+ "k_proj",
25
+ "up_proj",
26
+ "o_proj",
27
+ "down_proj",
28
+ "gate_proj",
29
+ "q_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:555196af1aae420833eccb75cc7c24d321663528740796fdba5dab54d9ae9f9e
3
+ size 671149168
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[PAD]": 32000
3
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "NousResearch/Genstruct-7B",
4
+ "architectures": [
5
+ "MistralForCausalLM"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 14336,
15
+ "max_position_embeddings": 32768,
16
+ "model_type": "mistral",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 32,
19
+ "num_key_value_heads": 8,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_theta": 10000.0,
22
+ "sliding_window": 4096,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.46.0",
26
+ "use_cache": false,
27
+ "vocab_size": 32001
28
+ }
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": "[PAD]",
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "32000": {
31
+ "content": "[PAD]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ }
38
+ },
39
+ "additional_special_tokens": [],
40
+ "bos_token": "<s>",
41
+ "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 %}",
42
+ "clean_up_tokenization_spaces": false,
43
+ "eos_token": "</s>",
44
+ "legacy": true,
45
+ "model_max_length": 1024,
46
+ "pad_token": "[PAD]",
47
+ "padding_side": "left",
48
+ "sp_model_kwargs": {},
49
+ "spaces_between_special_tokens": false,
50
+ "tokenizer_class": "LlamaTokenizer",
51
+ "unk_token": "<unk>",
52
+ "use_default_system_prompt": true
53
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01fa7469655c0c0f2a11e168911752d9c08b77dbdff42638c73ace776fc9fb9c
3
+ size 7032