Fizzarolli commited on
Commit
1326dd6
·
verified ·
1 Parent(s): de9b16c

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: other
4
+ base_model: mistralai/Mistral-Small-Instruct-2409
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - Fizzarolli/inkmix-v2
9
+ model-index:
10
+ - name: ckpts
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ [<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)
18
+ <details><summary>See axolotl config</summary>
19
+
20
+ axolotl version: `0.6.0`
21
+ ```yaml
22
+ base_model: mistralai/Mistral-Small-Instruct-2409
23
+
24
+ load_in_8bit: true
25
+ load_in_4bit: false
26
+
27
+ plugins:
28
+ - axolotl.integrations.liger.LigerPlugin
29
+ liger_rope: true
30
+ liger_rms_norm: true
31
+ liger_glu_activation: true
32
+ liger_fused_linear_cross_entropy: true
33
+
34
+ #unsloth_lora_mlp: true
35
+ #unsloth_lora_qkv: true
36
+ #unsloth_lora_o: true
37
+
38
+ strict: false
39
+
40
+ adapter: lora
41
+ lora_r: 16
42
+ lora_alpha: 32
43
+ lora_dropout: 0.25
44
+ lora_target_modules:
45
+ - q_proj
46
+ - v_proj
47
+ - k_proj
48
+ - o_proj
49
+ lora_target_linear: true
50
+ peft_layers_to_transform:
51
+ loraplus_lr_ratio: 16
52
+
53
+ chat_template: jinja
54
+ chat_template_jinja: "{%- if messages[0][\"role\"] == \"fake\" %}\n {%- set system_message = messages[0][\"content\"] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n{%- set user_messages = loop_messages | selectattr(\"role\", \"equalto\", \"user\") | list %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if message[\"role\"] == \"user\" or message[\"role\"] == \"system\"%}\n {%- if tools is not none and (message == user_messages[-1]) %}\n {{- \"[AVAILABLE_TOOLS][\" }}\n {%- for tool in tools %}\n {%- set tool = tool.function %}\n {{- '{\"type\": \"function\", \"function\": {' }}\n {%- for key, val in tool.items() if key != \"return\" %}\n {%- if val is string %}\n {{- '\"' + key + '\": \"' + val + '\"' }}\n {%- else %}\n {{- '\"' + key + '\": ' + val|tojson }}\n {%- endif %}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \"}}\" }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- else %}\n {{- \"]\" }}\n {%- endif %}\n {%- endfor %}\n {{- \"[/AVAILABLE_TOOLS]\" }}\n {%- endif %}\n {%- if loop.last and system_message is defined %}\n {{- \"[INST]\" + system_message + \"\\n\\n\" + message[\"content\"] + \"[/INST]\" }}\n {%- else %}\n {{- \"[INST]\" + message[\"content\"] + \"[/INST]\" }}\n {%- endif %}\n {%- elif (message.tool_calls is defined and message.tool_calls is not none) %}\n {{- \"[TOOL_CALLS][\" }}\n {%- for tool_call in message.tool_calls %}\n {%- set out = tool_call.function|tojson %}\n {{- out[:-1] }}\n {%- if not tool_call.id is defined or tool_call.id|length != 9 %}\n {{- raise_exception(\"Tool call IDs should be alphanumeric strings with length 9!\") }}\n {%- endif %}\n {{- ', \"id\": \"' + tool_call.id + '\"}' }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- else %}\n {{- \"]\" + eos_token }}\n {%- endif %}\n {%- endfor %}\n {%- elif message[\"role\"] == \"assistant\" %}\n {{- message[\"content\"] + eos_token}}\n {%- elif message[\"role\"] == \"tool_results\" or message[\"role\"] == \"tool\" %}\n {%- if message.content is defined and message.content.content is defined %}\n {%- set content = message.content.content %}\n {%- else %}\n {%- set content = message.content %}\n {%- endif %}\n {{- '[TOOL_RESULTS]{\"content\": ' + content|string + \", \" }}\n {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}\n {{- raise_exception(\"Tool call IDs should be alphanumeric strings with length 9!\") }}\n {%- endif %}\n {{- '\"call_id\": \"' + message.tool_call_id + '\"}[/TOOL_RESULTS]' }}\n {%- else %}\n {{- raise_exception(\"Only user and assistant roles are supported, with the exception of an initial optional system message!\") }}\n {%- endif %}\n{%- endfor %}\n"
55
+ datasets:
56
+ - path: Fizzarolli/inkmix-v2
57
+ type: chat_template
58
+ chat_template: tokenizer_default
59
+ split: train
60
+ field_messages: conversations
61
+ message_field_role: from
62
+ message_field_content: value
63
+
64
+ dataset_prepared_path: last_run_prepared
65
+ #val_set_size: 0.02
66
+ output_dir: ./ckpts
67
+
68
+ sequence_len: 8192
69
+ sample_packing: true
70
+ pad_to_sequence_len: true
71
+
72
+ #wandb_project: teleut-7b-rp
73
+ #wandb_entity:
74
+ #wandb_watch:
75
+ #wandb_name:
76
+ #wandb_log_model: checkpoint
77
+
78
+ # mlflow configuration if you're using it
79
+ mlflow_tracking_uri: https://public-tracking.mlflow-e00zzfjq11ky6jcgtv.backbone-e00bgn6e63256prmhq.msp.eu-north1.nebius.cloud
80
+ mlflow_experiment_name: ms-12b-rp-inkmixv2
81
+ mlflow_run_name: v1
82
+ hf_mlflow_log_artifacts: true
83
+
84
+ gradient_accumulation_steps: 1
85
+ micro_batch_size: 8
86
+ num_epochs: 2
87
+ optimizer: paged_adamw_8bit
88
+ lr_scheduler: cosine
89
+ learning_rate: 6e-5
90
+
91
+ train_on_inputs: false
92
+ group_by_length: false
93
+ bf16: auto
94
+ fp16:
95
+ tf32: false
96
+
97
+ gradient_checkpointing: unsloth
98
+ gradient_checkpointing_kwargs:
99
+ use_reentrant: false
100
+ early_stopping_patience:
101
+ resume_from_checkpoint:
102
+ logging_steps: 1
103
+ xformers_attention:
104
+ flash_attention: true
105
+
106
+ #deepspeed: deepspeed_configs/zero3_bf16.json
107
+
108
+ warmup_steps: 25
109
+ #evals_per_epoch: 4
110
+ eval_table_size:
111
+ saves_per_epoch: 10
112
+ debug:
113
+ weight_decay: 0.01
114
+
115
+ ```
116
+
117
+ </details><br>
118
+
119
+ # ckpts
120
+
121
+ This model is a fine-tuned version of [mistralai/Mistral-Small-Instruct-2409](https://huggingface.co/mistralai/Mistral-Small-Instruct-2409) on the Fizzarolli/inkmix-v2 dataset.
122
+
123
+ ## Model description
124
+
125
+ More information needed
126
+
127
+ ## Intended uses & limitations
128
+
129
+ More information needed
130
+
131
+ ## Training and evaluation data
132
+
133
+ More information needed
134
+
135
+ ## Training procedure
136
+
137
+ ### Training hyperparameters
138
+
139
+ The following hyperparameters were used during training:
140
+ - learning_rate: 6e-05
141
+ - train_batch_size: 8
142
+ - eval_batch_size: 8
143
+ - seed: 42
144
+ - optimizer: Use paged_adamw_8bit with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
145
+ - lr_scheduler_type: cosine
146
+ - lr_scheduler_warmup_steps: 25
147
+ - num_epochs: 2
148
+
149
+ ### Training results
150
+
151
+
152
+
153
+ ### Framework versions
154
+
155
+ - PEFT 0.14.0
156
+ - Transformers 4.47.1
157
+ - Pytorch 2.5.1+cu124
158
+ - Datasets 3.1.0
159
+ - Tokenizers 0.21.0
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-Small-Instruct-2409",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": null,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 32,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.25,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "o_proj",
27
+ "k_proj",
28
+ "up_proj",
29
+ "v_proj",
30
+ "gate_proj",
31
+ "down_proj",
32
+ "q_proj"
33
+ ],
34
+ "task_type": "CAUSAL_LM",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a327885f947941ef89f995d77196e7966845f781a225c7025145bf0ce1da659
3
+ size 381965066
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "mistralai/Mistral-Small-Instruct-2409",
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": 6144,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 16384,
15
+ "max_position_embeddings": 32768,
16
+ "model_type": "mistral",
17
+ "num_attention_heads": 48,
18
+ "num_hidden_layers": 56,
19
+ "num_key_value_heads": 8,
20
+ "quantization_config": {
21
+ "_load_in_4bit": false,
22
+ "_load_in_8bit": true,
23
+ "bnb_4bit_compute_dtype": "float32",
24
+ "bnb_4bit_quant_storage": "uint8",
25
+ "bnb_4bit_quant_type": "fp4",
26
+ "bnb_4bit_use_double_quant": false,
27
+ "llm_int8_enable_fp32_cpu_offload": false,
28
+ "llm_int8_has_fp16_weight": false,
29
+ "llm_int8_skip_modules": null,
30
+ "llm_int8_threshold": 6.0,
31
+ "load_in_4bit": false,
32
+ "load_in_8bit": true,
33
+ "quant_method": "bitsandbytes"
34
+ },
35
+ "rms_norm_eps": 1e-05,
36
+ "rope_theta": 1000000.0,
37
+ "sliding_window": null,
38
+ "tie_word_embeddings": false,
39
+ "torch_dtype": "bfloat16",
40
+ "transformers_version": "4.47.1",
41
+ "use_cache": false,
42
+ "vocab_size": 32768
43
+ }
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": "</s>",
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:59f95e28944c062244741268596badc900df86c7f5ded05088d2da22a7379e06
3
+ size 587583
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff