nbeerbower commited on
Commit
7e39d01
·
verified ·
1 Parent(s): 64884aa

Add model card with training configuration

Browse files
Files changed (1) hide show
  1. README.md +168 -0
README.md ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: image-text-to-text
4
+ tags:
5
+ - merlina
6
+ - grimoire
7
+ - image-text-to-text
8
+ - vision-language-model
9
+ - sft
10
+ datasets:
11
+ - yotisstudios/Warrior-SFT-v2
12
+ base_model:
13
+ - Lazarus-Ai/ReAligned-Qwen3.5-4B
14
+ ---
15
+
16
+ # Warrior-v2-Qwen3.5-4B
17
+
18
+ ## Training Configuration
19
+
20
+ | Parameter | Value |
21
+ |-----------|-------|
22
+ | Training Mode | SFT |
23
+ | Base Model | `Lazarus-Ai/ReAligned-Qwen3.5-4B` |
24
+ | Learning Rate | 0.0002 |
25
+ | Epochs | 2 |
26
+ | Batch Size | 1 |
27
+ | Gradient Accumulation | 16 |
28
+ | Effective Batch Size | 16 |
29
+ | Max Sequence Length | 8192 |
30
+ | Optimizer | paged_adamw_8bit |
31
+ | LR Scheduler | cosine |
32
+ | Warmup Ratio | 0.05 |
33
+ | Weight Decay | 0.01 |
34
+ | Max Grad Norm | 0.3 |
35
+ | Seed | 42 |
36
+ | LoRA Rank (r) | 64 |
37
+ | LoRA Alpha | 128 |
38
+ | LoRA Dropout | 0.05 |
39
+ | Target Modules | up_proj, down_proj, gate_proj, k_proj, q_proj, v_proj, o_proj |
40
+ | Quantization | 4-bit (NF4) |
41
+ | GPU | NVIDIA GB10 |
42
+
43
+ ## Reproduce this training run
44
+
45
+ This model was trained with [Merlina](https://github.com/Schneewolf-Labs/Merlina). Credentials are not included — Merlina will use your own `HF_TOKEN` and `WANDB_API_KEY` from `.env` or the form.
46
+
47
+ Paste this code into Merlina's *Load Configuration → From Code* to rebuild the exact training setup:
48
+
49
+ ```text
50
+ merlina-config-v1:H4sIAB3PgGoC_61VTY_jNgz9K4HOScbxZgczuU0L9NKZw3a36KEoBMambTWSpdVHstnF_PeSspVk0BYLFL3RFE09Pj5S34Q0GKGFCGL3TYxgUOzEb-C9sn51rFcfTji-W79fbX8QS9FiaLxyUdmRoj55UKMa-0Vjx071yQMfLMIAHttF561ZwOIFvVYjrCIHk9vYFvWackXog9j9_sdShGZAQ9cLM8XexTnxakosSog8og_57s2yBF99ol7X60q8LsUeAsp8EXmf4Sv4FFZP6u4XfNKqJxRvq7IpuhTld2pPlFNbTzijT7gUbEsvdvfb2QbtBjrd1A-zo_XWUW6xq9bVey7Y9xgZV9LIpYvkpPP2TybWnsZi9xCx2IdifC7GsRh2Moi_OaOMVgY44kRqRhAhHGQ8O67rx6dfPz49y-cX-lcjeCZYUssw46uqeinGZCQ62wyErmYaYzPIoL5iJrz30Coco4SmSSbp3G0ZIjoK39wTDvgiNY59HMTuYfNYTx5CaVy8HGyqepshoy7IIEXLgpi7njtH7tBF8u6RlVmtCYCGPf0UjLVxoLiMm-kyJkcQxSzjgJGVHGzyDV6tctmQ-p5-7oAOl8JTuVK15D_bqEKIqVU23BUNfPzpE-mA9ee0orQTRv6OHsFkEB3ogDce-YY2IrYiRULbKqYLCH-GM0sfjxfP_w2VMv8HoJ31BjKBk1WwRHvAkSI95cQR9ppQUhMOt5m5j7LFiE28OeRpeS0dn2fs-zNJk0-DTdOCIUBP4i7ApuFrsU1UZ5PlO1-ffUiCZFH3Z7pmll4z2IDctYghzvWSdEhR4UzyNUWis-46pbVEcpz_RZRUTUCkTmxnifNkyJEAct53S3ECb2i28z4s0z91ehqWal1P-2S7V5eS-PsEY7u_FORSGHioh3T10dbrpz0k90icoCQeLLQly9BxOFWkjrfckJupD4619FZB3NAvzhLXfZ-6yx_8IT8nGCcJ5H31YSt_li-8cg6ILsfLzm3ur9oaUteRNC5zOIE6oeqHSNJo4Fyo117yUufN5YvIGhvojRA3q4YimoOzaowXLfFqy3NxWT20C-lJMqzOksmRZlpJz5o5yQcmmUcQjORtsmEIjzeOOjsei4uSKp0fGVxVD9lJIxitlx556R0x33yV_eU8NEDFO_BEdaRR-XvErAySVPyH00zQvJNX1frN3Y1WjqbKYxispnZvePdBjKNUxmk0xBbM7_K8T_ODpXrGMfFGaWjeG9K60ldpZGHmRQ7-Cor2e1Syd-l2nnLi178A96M-AzMIAAA=
51
+ ```
52
+
53
+ <details>
54
+ <summary>Prefer JSON? The same config, expanded</summary>
55
+
56
+ Save this to `data/configs/<name>.json`, or import it via the *Load Configuration* dialog.
57
+
58
+ ```json
59
+ {
60
+ "_metadata": {
61
+ "name": "Warrior-v2-Qwen3.5-4B",
62
+ "description": "Training configuration shared from a Merlina-trained model.",
63
+ "tags": [],
64
+ "schema": "merlina/training-config",
65
+ "schema_version": 1,
66
+ "merlina_version": "2.2.0"
67
+ },
68
+ "base_model": "Lazarus-Ai/ReAligned-Qwen3.5-4B",
69
+ "output_name": "Warrior-v2-Qwen3.5-4B",
70
+ "use_lora": true,
71
+ "lora_r": 64,
72
+ "lora_alpha": 128,
73
+ "lora_dropout": 0.05,
74
+ "target_modules": [
75
+ "up_proj",
76
+ "down_proj",
77
+ "gate_proj",
78
+ "k_proj",
79
+ "q_proj",
80
+ "v_proj",
81
+ "o_proj"
82
+ ],
83
+ "modules_to_save": [],
84
+ "lora_task_type": "CAUSAL_LM",
85
+ "learning_rate": 0.0002,
86
+ "num_epochs": 2,
87
+ "batch_size": 1,
88
+ "gradient_accumulation_steps": 16,
89
+ "max_length": 8192,
90
+ "max_prompt_length": 1024,
91
+ "model_type": "auto",
92
+ "training_mode": "sft",
93
+ "beta": 0.1,
94
+ "label_smoothing": 0.0,
95
+ "gamma": 0.5,
96
+ "dataset": {
97
+ "source": {
98
+ "source_type": "huggingface",
99
+ "repo_id": "yotisstudios/Warrior-SFT-v2",
100
+ "split": "train",
101
+ "streaming": false,
102
+ "streaming_batch_size": 10000
103
+ },
104
+ "additional_sources": [],
105
+ "eval_source": {
106
+ "source_type": "huggingface",
107
+ "repo_id": "yotisstudios/Warrior-SFT-v2",
108
+ "split": "val",
109
+ "streaming": false,
110
+ "streaming_batch_size": 10000
111
+ },
112
+ "format": {
113
+ "format_type": "tokenizer",
114
+ "enable_thinking": false,
115
+ "auto_detect_thinking": true
116
+ },
117
+ "model_name": "Lazarus-Ai/ReAligned-Qwen3.5-4B",
118
+ "convert_messages_format": true,
119
+ "deduplicate": false,
120
+ "dedupe_strategy": "prompt_chosen",
121
+ "test_size": 0.01,
122
+ "system_prompt_mode": "fill_empty",
123
+ "training_mode": "sft"
124
+ },
125
+ "seed": 42,
126
+ "max_grad_norm": 0.3,
127
+ "warmup_ratio": 0.05,
128
+ "eval_steps": 0.2,
129
+ "use_4bit": true,
130
+ "use_wandb": false,
131
+ "push_to_hub": false,
132
+ "merge_lora_before_upload": true,
133
+ "hf_hub_private": false,
134
+ "hf_namespace": "yotisstudios",
135
+ "export_gguf": false,
136
+ "gguf_quant_types": [
137
+ "Q4_K_M"
138
+ ],
139
+ "keep_gguf_fp16": false,
140
+ "shuffle_dataset": true,
141
+ "weight_decay": 0.01,
142
+ "lr_scheduler_type": "cosine",
143
+ "gradient_checkpointing": true,
144
+ "logging_steps": 1,
145
+ "optimizer_type": "paged_adamw_8bit",
146
+ "adam_beta1": 0.9,
147
+ "adam_beta2": 0.999,
148
+ "adam_epsilon": 1e-08,
149
+ "adafactor_relative_step": false,
150
+ "adafactor_scale_parameter": false,
151
+ "adafactor_warmup_init": false,
152
+ "adafactor_decay_rate": -0.8,
153
+ "adafactor_clip_threshold": 1.0,
154
+ "attn_implementation": "auto",
155
+ "use_liger": true,
156
+ "torch_compile": false,
157
+ "eval_on_start": false,
158
+ "multi_gpu_strategy": "auto"
159
+ }
160
+ ```
161
+
162
+ </details>
163
+
164
+ ---
165
+
166
+ ![Trained with Merlina](https://raw.githubusercontent.com/Schneewolf-Labs/Merlina/refs/heads/main/frontend/madewithmerlina_smol.png)
167
+
168
+ [Merlina on GitHub](https://github.com/Schneewolf-Labs/Merlina)