1jamesthompson1 commited on
Commit
89868f7
·
verified ·
1 Parent(s): 8dff6b0

Upload folder using huggingface_hub

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,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3.5-9B
3
+ library_name: peft
4
+ model_name: cluster_1
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen3.5-9B
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - sampled_response
12
+ - cluster_1
13
+ license: cc-by-sa-4.0
14
+ pipeline_tag: text-generation
15
+ datasets:
16
+ - 1jamesthompson1/wvs-nz-value-alignment
17
+ ---
18
+
19
+
20
+
21
+
22
+
23
+ # Qwen3.5-9B LoRA — Sampled Response, Cluster 1
24
+
25
+ This model is a LoRA fine-tune of [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) as part of the
26
+ [AIML589 project](https://github.com/1jamesthompson1/AIML589).
27
+
28
+ This adapter is licensed under CC BY-SA 4.0.
29
+
30
+ ## Dataset
31
+
32
+ Fine-tuned on the **sampled_response** config of the
33
+ [wvs-nz-value-alignment](https://huggingface.co/datasets/1jamesthompson1/wvs-nz-value-alignment)
34
+ dataset, **cluster_1** subpopulation.
35
+
36
+
37
+ Part of the [wvs-nz-value-alignment](https://huggingface.co/collections/wvs-nz-value-alignment) collection.
38
+
39
+
40
+ **GPU:** NVIDIA RTX 6000 Ada Generation · **Training time:** 18m 8s
41
+
42
+
43
+ ## Training hyperparameters
44
+
45
+ | Parameter | Value |
46
+ |-----------|-------|
47
+ | LoRA rank | 16 |
48
+ | LoRA alpha | 32 |
49
+ | LoRA dropout | 0.05 |
50
+ | DoRA | False |
51
+ | Learning rate | 0.0002 |
52
+ | Batch size | 4 |
53
+ | Gradient accumulation | 4 |
54
+ | Epochs | 3 |
55
+ | Max seq length | 1024 |
56
+ | Warmup ratio | 0.1 |
57
+ | Dtype | bf16 |
58
+
59
+ ## Training log
60
+
61
+
62
+ ```
63
+ {"loss": 4.2828514099121096, "grad_norm": 3.3195607662200928, "learning_rate": 7.82608695652174e-05, "entropy": 1.1838731363415718, "mean_token_accuracy": 0.452268467284739, "num_tokens": 24645.0, "epoch": 0.13245033112582782, "step": 10}
64
+ {"eval_loss": 0.5712648034095764, "eval_runtime": 8.7607, "eval_samples_per_second": 17.122, "eval_steps_per_second": 4.338, "eval_entropy": 0.5471524494258981, "eval_mean_token_accuracy": 0.8050595286645388, "eval_num_tokens": 24645.0, "epoch": 0.13245033112582782, "step": 10}
65
+ {"loss": 0.46926422119140626, "grad_norm": 3.0499935150146484, "learning_rate": 0.00016521739130434784, "entropy": 0.4832126975059509, "mean_token_accuracy": 0.8076777458190918, "num_tokens": 48985.0, "epoch": 0.26490066225165565, "step": 20}
66
+ {"eval_loss": 0.5358471870422363, "eval_runtime": 8.8684, "eval_samples_per_second": 16.914, "eval_steps_per_second": 4.285, "eval_entropy": 0.4200292041427211, "eval_mean_token_accuracy": 0.7469924860878995, "eval_num_tokens": 48985.0, "epoch": 0.26490066225165565, "step": 20}
67
+ {"loss": 0.39472386837005613, "grad_norm": 2.067092180252075, "learning_rate": 0.00019414634146341464, "entropy": 0.3605545647442341, "mean_token_accuracy": 0.8380664870142936, "num_tokens": 73226.0, "epoch": 0.3973509933774834, "step": 30}
68
+ {"eval_loss": 0.5321611166000366, "eval_runtime": 8.8949, "eval_samples_per_second": 16.864, "eval_steps_per_second": 4.272, "eval_entropy": 0.36939919249791847, "eval_mean_token_accuracy": 0.8029448617445795, "eval_num_tokens": 73226.0, "epoch": 0.3973509933774834, "step": 30}
69
+ {"loss": 0.39537787437438965, "grad_norm": 1.270966649055481, "learning_rate": 0.00018439024390243903, "entropy": 0.3851592864841223, "mean_token_accuracy": 0.8292971581220627, "num_tokens": 97170.0, "epoch": 0.5298013245033113, "step": 40}
70
+ {"eval_loss": 0.512241542339325, "eval_runtime": 8.856, "eval_samples_per_second": 16.938, "eval_steps_per_second": 4.291, "eval_entropy": 0.3763781021300115, "eval_mean_token_accuracy": 0.7811560207291653, "eval_num_tokens": 97170.0, "epoch": 0.5298013245033113, "step": 40}
71
+ {"loss": 0.3449979066848755, "grad_norm": 1.178625226020813, "learning_rate": 0.00017463414634146342, "entropy": 0.3603811550885439, "mean_token_accuracy": 0.8657324358820915, "num_tokens": 121386.0, "epoch": 0.6622516556291391, "step": 50}
72
+ {"eval_loss": 0.6070794463157654, "eval_runtime": 8.9125, "eval_samples_per_second": 16.83, "eval_steps_per_second": 4.264, "eval_entropy": 0.36585210116678163, "eval_mean_token_accuracy": 0.7500313332206324, "eval_num_tokens": 121386.0, "epoch": 0.6622516556291391, "step": 50}
73
+ {"loss": 0.30911884307861326, "grad_norm": 2.8266186714172363, "learning_rate": 0.00016487804878048782, "entropy": 0.2615261286497116, "mean_token_accuracy": 0.8826999247074128, "num_tokens": 145580.0, "epoch": 0.7947019867549668, "step": 60}
74
+ {"eval_loss": 0.7182475924491882, "eval_runtime": 8.8882, "eval_samples_per_second": 16.876, "eval_steps_per_second": 4.275, "eval_entropy": 0.2628652969081151, "eval_mean_token_accuracy": 0.7899749420191112, "eval_num_tokens": 145580.0, "epoch": 0.7947019867549668, "step": 60}
75
+ {"loss": 0.24180982112884522, "grad_norm": 1.6042029857635498, "learning_rate": 0.0001551219512195122, "entropy": 0.2673916194587946, "mean_token_accuracy": 0.911859568953514, "num_tokens": 170643.0, "epoch": 0.9271523178807947, "step": 70}
76
+ {"eval_loss": 0.821165919303894, "eval_runtime": 8.8971, "eval_samples_per_second": 16.859, "eval_steps_per_second": 4.271, "eval_entropy": 0.27867767418195544, "eval_mean_token_accuracy": 0.7433740669175198, "eval_num_tokens": 170643.0, "epoch": 0.9271523178807947, "step": 70}
77
+ {"loss": 0.22081174850463867, "grad_norm": 2.7884373664855957, "learning_rate": 0.0001453658536585366, "entropy": 0.2026200779762707, "mean_token_accuracy": 0.9230157701592696, "num_tokens": 193746.0, "epoch": 1.0529801324503312, "step": 80}
78
+ {"eval_loss": 0.8150429725646973, "eval_runtime": 8.9086, "eval_samples_per_second": 16.838, "eval_steps_per_second": 4.266, "eval_entropy": 0.22414806843000024, "eval_mean_token_accuracy": 0.8047775735980586, "eval_num_tokens": 193746.0, "epoch": 1.0529801324503312, "step": 80}
79
+ {"loss": 0.14040154218673706, "grad_norm": 1.3541489839553833, "learning_rate": 0.000135609756097561, "entropy": 0.16504043247550726, "mean_token_accuracy": 0.9462000757455826, "num_tokens": 218576.0, "epoch": 1.185430463576159, "step": 90}
80
+ {"eval_loss": 0.8339773416519165, "eval_runtime": 8.973, "eval_samples_per_second": 16.717, "eval_steps_per_second": 4.235, "eval_entropy": 0.2065272086060998, "eval_mean_token_accuracy": 0.7746240653489765, "eval_num_tokens": 218576.0, "epoch": 1.185430463576159, "step": 90}
81
+ {"loss": 0.12467809915542602, "grad_norm": 4.511893272399902, "learning_rate": 0.00012585365853658536, "entropy": 0.10107915503322147, "mean_token_accuracy": 0.9587799295783043, "num_tokens": 243344.0, "epoch": 1.3178807947019868, "step": 100}
82
+ {"eval_loss": 0.7112035155296326, "eval_runtime": 8.9282, "eval_samples_per_second": 16.801, "eval_steps_per_second": 4.256, "eval_entropy": 0.15474749381016745, "eval_mean_token_accuracy": 0.8157424864016081, "eval_num_tokens": 243344.0, "epoch": 1.3178807947019868, "step": 100}
83
+ {"loss": 0.12197786569595337, "grad_norm": 1.6361427307128906, "learning_rate": 0.00011609756097560975, "entropy": 0.07562960358336568, "mean_token_accuracy": 0.9517370820045471, "num_tokens": 267786.0, "epoch": 1.4503311258278146, "step": 110}
84
+ {"eval_loss": 1.0470056533813477, "eval_runtime": 8.9724, "eval_samples_per_second": 16.718, "eval_steps_per_second": 4.235, "eval_entropy": 0.14818870221681305, "eval_mean_token_accuracy": 0.7478383512873399, "eval_num_tokens": 267786.0, "epoch": 1.4503311258278146, "step": 110}
85
+ {"loss": 0.10809319019317627, "grad_norm": 1.6775206327438354, "learning_rate": 0.00010634146341463416, "entropy": 0.08924289270071313, "mean_token_accuracy": 0.9604727029800415, "num_tokens": 292317.0, "epoch": 1.5827814569536423, "step": 120}
86
+ {"eval_loss": 1.0492334365844727, "eval_runtime": 8.8734, "eval_samples_per_second": 16.904, "eval_steps_per_second": 4.282, "eval_entropy": 0.14410611607232376, "eval_mean_token_accuracy": 0.8007205567861858, "eval_num_tokens": 292317.0, "epoch": 1.5827814569536423, "step": 120}
87
+ {"loss": 0.03908039927482605, "grad_norm": 2.2686848640441895, "learning_rate": 9.658536585365854e-05, "entropy": 0.06353283888893202, "mean_token_accuracy": 0.9815119966864586, "num_tokens": 316521.0, "epoch": 1.7152317880794703, "step": 130}
88
+ {"eval_loss": 1.4305915832519531, "eval_runtime": 8.8602, "eval_samples_per_second": 16.93, "eval_steps_per_second": 4.289, "eval_entropy": 0.0935905459689246, "eval_mean_token_accuracy": 0.7892387258379083, "eval_num_tokens": 316521.0, "epoch": 1.7152317880794703, "step": 130}
89
+ {"loss": 0.04100652039051056, "grad_norm": 5.218770980834961, "learning_rate": 8.682926829268293e-05, "entropy": 0.03381892999459524, "mean_token_accuracy": 0.984375512599945, "num_tokens": 340919.0, "epoch": 1.847682119205298, "step": 140}
90
+ {"eval_loss": 1.5555816888809204, "eval_runtime": 8.7739, "eval_samples_per_second": 17.096, "eval_steps_per_second": 4.331, "eval_entropy": 0.07794101885673099, "eval_mean_token_accuracy": 0.8050282001495361, "eval_num_tokens": 340919.0, "epoch": 1.847682119205298, "step": 140}
91
+ {"loss": 0.03830587565898895, "grad_norm": 0.13190802931785583, "learning_rate": 7.707317073170732e-05, "entropy": 0.026670162624213845, "mean_token_accuracy": 0.9837620735168457, "num_tokens": 364991.0, "epoch": 1.980132450331126, "step": 150}
92
+ {"eval_loss": 1.2507771253585815, "eval_runtime": 8.8746, "eval_samples_per_second": 16.902, "eval_steps_per_second": 4.282, "eval_entropy": 0.0817602070930757, "eval_mean_token_accuracy": 0.7987468728893682, "eval_num_tokens": 364991.0, "epoch": 1.980132450331126, "step": 150}
93
+ {"loss": 0.07177287340164185, "grad_norm": 2.2161507606506348, "learning_rate": 6.731707317073171e-05, "entropy": 0.01958650479240245, "mean_token_accuracy": 0.9884510479475322, "num_tokens": 387642.0, "epoch": 2.1059602649006623, "step": 160}
94
+ {"eval_loss": 1.3437883853912354, "eval_runtime": 8.8478, "eval_samples_per_second": 16.953, "eval_steps_per_second": 4.295, "eval_entropy": 0.06764962662648606, "eval_mean_token_accuracy": 0.7787750677058571, "eval_num_tokens": 387642.0, "epoch": 2.1059602649006623, "step": 160}
95
+ {"loss": 0.009113987535238266, "grad_norm": 0.039817001670598984, "learning_rate": 5.756097560975609e-05, "entropy": 0.01661088205728447, "mean_token_accuracy": 0.9937208637595176, "num_tokens": 412538.0, "epoch": 2.23841059602649, "step": 170}
96
+ {"eval_loss": 1.5150843858718872, "eval_runtime": 8.7479, "eval_samples_per_second": 17.147, "eval_steps_per_second": 4.344, "eval_entropy": 0.06736165528357226, "eval_mean_token_accuracy": 0.7647556442963449, "eval_num_tokens": 412538.0, "epoch": 2.23841059602649, "step": 170}
97
+ {"loss": 0.003525285795331001, "grad_norm": 0.00853405799716711, "learning_rate": 4.7804878048780485e-05, "entropy": 0.00830267872515833, "mean_token_accuracy": 0.9980769231915474, "num_tokens": 437055.0, "epoch": 2.370860927152318, "step": 180}
98
+ {"eval_loss": 1.644209384918213, "eval_runtime": 8.7784, "eval_samples_per_second": 17.087, "eval_steps_per_second": 4.329, "eval_entropy": 0.06734515197259545, "eval_mean_token_accuracy": 0.7691416097314734, "eval_num_tokens": 437055.0, "epoch": 2.370860927152318, "step": 180}
99
+ {"loss": 0.001157384179532528, "grad_norm": 0.09711030125617981, "learning_rate": 3.804878048780488e-05, "entropy": 0.004432732032000786, "mean_token_accuracy": 1.0, "num_tokens": 461493.0, "epoch": 2.5033112582781456, "step": 190}
100
+ {"eval_loss": 1.7609623670578003, "eval_runtime": 8.7515, "eval_samples_per_second": 17.14, "eval_steps_per_second": 4.342, "eval_entropy": 0.06280427154553381, "eval_mean_token_accuracy": 0.7669486277981808, "eval_num_tokens": 461493.0, "epoch": 2.5033112582781456, "step": 190}
101
+ {"loss": 0.0030027683824300766, "grad_norm": 0.012400347739458084, "learning_rate": 2.8292682926829267e-05, "entropy": 0.004392967079911614, "mean_token_accuracy": 0.997916667163372, "num_tokens": 485528.0, "epoch": 2.6357615894039736, "step": 200}
102
+ {"eval_loss": 1.8287278413772583, "eval_runtime": 8.7245, "eval_samples_per_second": 17.193, "eval_steps_per_second": 4.356, "eval_entropy": 0.06022026199015703, "eval_mean_token_accuracy": 0.7735275751666019, "eval_num_tokens": 485528.0, "epoch": 2.6357615894039736, "step": 200}
103
+ {"loss": 0.0011992882937192917, "grad_norm": 0.004404825158417225, "learning_rate": 1.853658536585366e-05, "entropy": 0.0030429765494773163, "mean_token_accuracy": 1.0, "num_tokens": 510081.0, "epoch": 2.7682119205298013, "step": 210}
104
+ {"eval_loss": 1.8526947498321533, "eval_runtime": 8.6297, "eval_samples_per_second": 17.382, "eval_steps_per_second": 4.403, "eval_entropy": 0.057951420073789596, "eval_mean_token_accuracy": 0.7669486277981808, "eval_num_tokens": 510081.0, "epoch": 2.7682119205298013, "step": 210}
105
+ {"loss": 0.007075458765029907, "grad_norm": 0.029240623116493225, "learning_rate": 8.780487804878048e-06, "entropy": 0.006888014055220992, "mean_token_accuracy": 0.9928314402699471, "num_tokens": 534422.0, "epoch": 2.9006622516556293, "step": 220}
106
+ {"eval_loss": 1.8728781938552856, "eval_runtime": 8.6887, "eval_samples_per_second": 17.264, "eval_steps_per_second": 4.374, "eval_entropy": 0.05773907397892081, "eval_mean_token_accuracy": 0.7735275751666019, "eval_num_tokens": 534422.0, "epoch": 2.9006622516556293, "step": 220}
107
+ {"eval_loss": 1.882822871208191, "eval_runtime": 8.6056, "eval_samples_per_second": 17.43, "eval_steps_per_second": 4.416, "eval_entropy": 0.05690596842377042, "eval_mean_token_accuracy": 0.7669486277981808, "eval_num_tokens": 552555.0, "epoch": 3.0, "step": 228}
108
+ {"train_runtime": 1087.8226, "train_samples_per_second": 3.326, "train_steps_per_second": 0.21, "total_flos": 3.178031783683891e+16, "train_loss": 0.3232832907233387, "epoch": 3.0, "step": 228}
109
+ ```
110
+
111
+
112
+ ## Environment
113
+
114
+ | Package | Version |
115
+ |---------|---------|
116
+ | torch | 2.13.0 |
117
+ | transformers | 5.14.1 |
118
+ | trl | 1.9.2 |
119
+ | datasets | 5.0.1 |
120
+ | accelerate | 1.14.0 |
121
+ | python-dotenv | 1.2.2 |
122
+ | peft | 0.20.0 |
123
+ | bitsandbytes | 0.50.0 |
124
+ | huggingface-hub | ? |
125
+ | jinja2 | ? |
126
+ | torchvision | 0.28.0 |
127
+ | pillow | 12.3.0 |
128
+
129
+
130
+ ## Intended use
131
+
132
+ This adapter is intended for **research purposes only** as part of the
133
+ [AIML589 project](https://github.com/1jamesthompson1/AIML589), which
134
+ investigates value alignment of LLMs with New Zealand population
135
+ distributions from the World Values Survey.
136
+
137
+ ### Out-of-scope
138
+
139
+ This model has not been safety-tuned for general-purpose deployment.
140
+ It should not be used in production systems, for making decisions about
141
+ people, or in contexts where reliability and safety are critical.
142
+
143
+ ## Limitations and biases
144
+
145
+ - Fine-tuned on a single WVS wave (Wave 7) for New Zealand only.
146
+ - The training data reflects the values of those who responded to the
147
+ survey and may not represent all New Zealanders.
148
+ - LoRA adapters are subject to the limitations and biases of the base
149
+ model ([Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B)).
adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3.5-9B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "monteclora_config": null,
27
+ "peft_type": "LORA",
28
+ "peft_version": "0.20.0",
29
+ "qalora_group_size": 16,
30
+ "r": 16,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "up_proj",
35
+ "k_proj",
36
+ "o_proj",
37
+ "v_proj",
38
+ "gate_proj",
39
+ "q_proj",
40
+ "down_proj"
41
+ ],
42
+ "target_parameters": null,
43
+ "task_type": "CAUSAL_LM",
44
+ "trainable_token_indices": null,
45
+ "use_bdlora": null,
46
+ "use_dora": false,
47
+ "use_qalora": false,
48
+ "use_rslora": false,
49
+ "velora_config": null
50
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60200bf98cf5290229c415d7e0379bdcdbe4220e3c750be1c4a052309a6a6762
3
+ size 116425880
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
environment.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Jinja2": "3.1.6",
3
+ "MarkupSafe": "3.0.3",
4
+ "PyYAML": "6.0.3",
5
+ "Pygments": "2.20.0",
6
+ "accelerate": "1.14.0",
7
+ "aiohappyeyeballs": "2.7.1",
8
+ "aiohttp": "3.14.3",
9
+ "aiosignal": "1.4.0",
10
+ "annotated-doc": "0.0.5",
11
+ "anyio": "4.14.2",
12
+ "attrs": "26.1.0",
13
+ "bitsandbytes": "0.50.0",
14
+ "certifi": "2026.7.22",
15
+ "charset-normalizer": "3.4.9",
16
+ "click": "8.4.2",
17
+ "cuda-bindings": "13.3.1",
18
+ "cuda-pathfinder": "1.6.0",
19
+ "cuda-toolkit": "13.0.3.0",
20
+ "datasets": "5.0.1",
21
+ "dill": "0.4.1",
22
+ "filelock": "3.32.0",
23
+ "frozenlist": "1.8.0",
24
+ "fsspec": "2026.6.0",
25
+ "h11": "0.16.0",
26
+ "hf-xet": "1.5.2",
27
+ "httpcore": "1.0.9",
28
+ "httpx": "0.28.1",
29
+ "huggingface_hub": "1.25.1",
30
+ "idna": "3.18",
31
+ "markdown-it-py": "4.2.0",
32
+ "mdurl": "0.1.2",
33
+ "mpmath": "1.3.0",
34
+ "multidict": "6.7.1",
35
+ "multiprocess": "0.70.19",
36
+ "networkx": "3.6.1",
37
+ "numpy": "2.5.1",
38
+ "nvidia-cublas": "13.1.1.3",
39
+ "nvidia-cuda-cupti": "13.0.85",
40
+ "nvidia-cuda-nvrtc": "13.0.88",
41
+ "nvidia-cuda-runtime": "13.0.96",
42
+ "nvidia-cudnn-cu13": "9.20.0.48",
43
+ "nvidia-cufft": "12.0.0.61",
44
+ "nvidia-cufile": "1.15.1.6",
45
+ "nvidia-curand": "10.4.0.35",
46
+ "nvidia-cusolver": "12.0.4.66",
47
+ "nvidia-cusparse": "12.6.3.3",
48
+ "nvidia-cusparselt-cu13": "0.8.1",
49
+ "nvidia-nccl-cu13": "2.29.7",
50
+ "nvidia-nvjitlink": "13.3.33",
51
+ "nvidia-nvshmem-cu13": "3.4.5",
52
+ "nvidia-nvtx": "13.0.85",
53
+ "packaging": "26.2",
54
+ "pandas": "3.0.5",
55
+ "peft": "0.20.0",
56
+ "pillow": "12.3.0",
57
+ "propcache": "0.5.2",
58
+ "psutil": "7.2.2",
59
+ "pyarrow": "25.0.0",
60
+ "python-dateutil": "2.9.0.post0",
61
+ "python-dotenv": "1.2.2",
62
+ "regex": "2026.7.19",
63
+ "requests": "2.34.2",
64
+ "rich": "15.0.0",
65
+ "safetensors": "0.8.0",
66
+ "setuptools": "83.0.0",
67
+ "shellingham": "1.5.4",
68
+ "six": "1.17.0",
69
+ "sympy": "1.14.0",
70
+ "tokenizers": "0.22.2",
71
+ "torch": "2.13.0",
72
+ "torchvision": "0.28.0",
73
+ "tqdm": "4.70.0",
74
+ "transformers": "5.14.1",
75
+ "triton": "3.7.1",
76
+ "trl": "1.9.2",
77
+ "typer": "0.27.0",
78
+ "typing_extensions": "4.16.0",
79
+ "urllib3": "2.7.0",
80
+ "xxhash": "3.8.1",
81
+ "yarl": "1.24.5"
82
+ }
finetune_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "Qwen/Qwen3.5-9B",
3
+ "model_sha": "c202236235762e1c871ad0ccb60c8ee5ba337b9a",
4
+ "dataset": "sampled_response",
5
+ "dataset_sha": "38f42265e06d60afd0a5d2d45808202e60e95103",
6
+ "subpopulation": "cluster_1",
7
+ "gpu": "NVIDIA RTX 6000 Ada Generation",
8
+ "library_name": "peft",
9
+ "pipeline_tag": "text-generation",
10
+ "timestamp": "2026-08-05T16:17:06.134064",
11
+ "hyperparameters": {
12
+ "lora_r": 16,
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "dora": false,
16
+ "quantization": null,
17
+ "lr": 0.0002,
18
+ "num_epochs": 3,
19
+ "batch_size": 4,
20
+ "gradient_accumulation_steps": 4,
21
+ "max_seq_length": 1024,
22
+ "warmup_ratio": 0.1,
23
+ "dtype": "bf16"
24
+ }
25
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": false,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "Qwen2Tokenizer",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }
training.log ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ logging to output/sampled_response/cluster_1/training.log
2
+ [sft] loading tokenizer...
3
+ [sft] loading model...
4
+ [sft] tokenizing 1206 examples...
5
+ [sft] tokenizing validation split for eval...
6
+ [data] loaded 150 validation examples (config=sampled_response, subpop=cluster_1)
7
+ [sft] eval split: 150 examples
8
+ [sft] starting training...
9
+ [sft] saving...
10
+ saved to output/sampled_response/cluster_1
11
+ gpu: NVIDIA RTX 6000 Ada Generation time: 1088s
12
+ training log -> output/sampled_response/cluster_1/training_log.json
13
+ run metadata -> output/sampled_response/cluster_1/finetune_config.json
14
+ environment -> output/sampled_response/cluster_1/environment.json
15
+ README -> output/sampled_response/cluster_1/README.md
16
+ [upload] uploading output/sampled_response/cluster_1 to https://huggingface.co/1jamesthompson1/Qwen3.5-9B-nz-wvs-sampled_response-cluster_1...
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:267e9d55cd978f8b4f4cf7d686302a32267c4b2ed4007e83fb81e831a5529b3a
3
+ size 5713
training_log.json ADDED
@@ -0,0 +1,484 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "loss": 4.2828514099121096,
4
+ "grad_norm": 3.3195607662200928,
5
+ "learning_rate": 7.82608695652174e-05,
6
+ "entropy": 1.1838731363415718,
7
+ "mean_token_accuracy": 0.452268467284739,
8
+ "num_tokens": 24645.0,
9
+ "epoch": 0.13245033112582782,
10
+ "step": 10
11
+ },
12
+ {
13
+ "eval_loss": 0.5712648034095764,
14
+ "eval_runtime": 8.7607,
15
+ "eval_samples_per_second": 17.122,
16
+ "eval_steps_per_second": 4.338,
17
+ "eval_entropy": 0.5471524494258981,
18
+ "eval_mean_token_accuracy": 0.8050595286645388,
19
+ "eval_num_tokens": 24645.0,
20
+ "epoch": 0.13245033112582782,
21
+ "step": 10
22
+ },
23
+ {
24
+ "loss": 0.46926422119140626,
25
+ "grad_norm": 3.0499935150146484,
26
+ "learning_rate": 0.00016521739130434784,
27
+ "entropy": 0.4832126975059509,
28
+ "mean_token_accuracy": 0.8076777458190918,
29
+ "num_tokens": 48985.0,
30
+ "epoch": 0.26490066225165565,
31
+ "step": 20
32
+ },
33
+ {
34
+ "eval_loss": 0.5358471870422363,
35
+ "eval_runtime": 8.8684,
36
+ "eval_samples_per_second": 16.914,
37
+ "eval_steps_per_second": 4.285,
38
+ "eval_entropy": 0.4200292041427211,
39
+ "eval_mean_token_accuracy": 0.7469924860878995,
40
+ "eval_num_tokens": 48985.0,
41
+ "epoch": 0.26490066225165565,
42
+ "step": 20
43
+ },
44
+ {
45
+ "loss": 0.39472386837005613,
46
+ "grad_norm": 2.067092180252075,
47
+ "learning_rate": 0.00019414634146341464,
48
+ "entropy": 0.3605545647442341,
49
+ "mean_token_accuracy": 0.8380664870142936,
50
+ "num_tokens": 73226.0,
51
+ "epoch": 0.3973509933774834,
52
+ "step": 30
53
+ },
54
+ {
55
+ "eval_loss": 0.5321611166000366,
56
+ "eval_runtime": 8.8949,
57
+ "eval_samples_per_second": 16.864,
58
+ "eval_steps_per_second": 4.272,
59
+ "eval_entropy": 0.36939919249791847,
60
+ "eval_mean_token_accuracy": 0.8029448617445795,
61
+ "eval_num_tokens": 73226.0,
62
+ "epoch": 0.3973509933774834,
63
+ "step": 30
64
+ },
65
+ {
66
+ "loss": 0.39537787437438965,
67
+ "grad_norm": 1.270966649055481,
68
+ "learning_rate": 0.00018439024390243903,
69
+ "entropy": 0.3851592864841223,
70
+ "mean_token_accuracy": 0.8292971581220627,
71
+ "num_tokens": 97170.0,
72
+ "epoch": 0.5298013245033113,
73
+ "step": 40
74
+ },
75
+ {
76
+ "eval_loss": 0.512241542339325,
77
+ "eval_runtime": 8.856,
78
+ "eval_samples_per_second": 16.938,
79
+ "eval_steps_per_second": 4.291,
80
+ "eval_entropy": 0.3763781021300115,
81
+ "eval_mean_token_accuracy": 0.7811560207291653,
82
+ "eval_num_tokens": 97170.0,
83
+ "epoch": 0.5298013245033113,
84
+ "step": 40
85
+ },
86
+ {
87
+ "loss": 0.3449979066848755,
88
+ "grad_norm": 1.178625226020813,
89
+ "learning_rate": 0.00017463414634146342,
90
+ "entropy": 0.3603811550885439,
91
+ "mean_token_accuracy": 0.8657324358820915,
92
+ "num_tokens": 121386.0,
93
+ "epoch": 0.6622516556291391,
94
+ "step": 50
95
+ },
96
+ {
97
+ "eval_loss": 0.6070794463157654,
98
+ "eval_runtime": 8.9125,
99
+ "eval_samples_per_second": 16.83,
100
+ "eval_steps_per_second": 4.264,
101
+ "eval_entropy": 0.36585210116678163,
102
+ "eval_mean_token_accuracy": 0.7500313332206324,
103
+ "eval_num_tokens": 121386.0,
104
+ "epoch": 0.6622516556291391,
105
+ "step": 50
106
+ },
107
+ {
108
+ "loss": 0.30911884307861326,
109
+ "grad_norm": 2.8266186714172363,
110
+ "learning_rate": 0.00016487804878048782,
111
+ "entropy": 0.2615261286497116,
112
+ "mean_token_accuracy": 0.8826999247074128,
113
+ "num_tokens": 145580.0,
114
+ "epoch": 0.7947019867549668,
115
+ "step": 60
116
+ },
117
+ {
118
+ "eval_loss": 0.7182475924491882,
119
+ "eval_runtime": 8.8882,
120
+ "eval_samples_per_second": 16.876,
121
+ "eval_steps_per_second": 4.275,
122
+ "eval_entropy": 0.2628652969081151,
123
+ "eval_mean_token_accuracy": 0.7899749420191112,
124
+ "eval_num_tokens": 145580.0,
125
+ "epoch": 0.7947019867549668,
126
+ "step": 60
127
+ },
128
+ {
129
+ "loss": 0.24180982112884522,
130
+ "grad_norm": 1.6042029857635498,
131
+ "learning_rate": 0.0001551219512195122,
132
+ "entropy": 0.2673916194587946,
133
+ "mean_token_accuracy": 0.911859568953514,
134
+ "num_tokens": 170643.0,
135
+ "epoch": 0.9271523178807947,
136
+ "step": 70
137
+ },
138
+ {
139
+ "eval_loss": 0.821165919303894,
140
+ "eval_runtime": 8.8971,
141
+ "eval_samples_per_second": 16.859,
142
+ "eval_steps_per_second": 4.271,
143
+ "eval_entropy": 0.27867767418195544,
144
+ "eval_mean_token_accuracy": 0.7433740669175198,
145
+ "eval_num_tokens": 170643.0,
146
+ "epoch": 0.9271523178807947,
147
+ "step": 70
148
+ },
149
+ {
150
+ "loss": 0.22081174850463867,
151
+ "grad_norm": 2.7884373664855957,
152
+ "learning_rate": 0.0001453658536585366,
153
+ "entropy": 0.2026200779762707,
154
+ "mean_token_accuracy": 0.9230157701592696,
155
+ "num_tokens": 193746.0,
156
+ "epoch": 1.0529801324503312,
157
+ "step": 80
158
+ },
159
+ {
160
+ "eval_loss": 0.8150429725646973,
161
+ "eval_runtime": 8.9086,
162
+ "eval_samples_per_second": 16.838,
163
+ "eval_steps_per_second": 4.266,
164
+ "eval_entropy": 0.22414806843000024,
165
+ "eval_mean_token_accuracy": 0.8047775735980586,
166
+ "eval_num_tokens": 193746.0,
167
+ "epoch": 1.0529801324503312,
168
+ "step": 80
169
+ },
170
+ {
171
+ "loss": 0.14040154218673706,
172
+ "grad_norm": 1.3541489839553833,
173
+ "learning_rate": 0.000135609756097561,
174
+ "entropy": 0.16504043247550726,
175
+ "mean_token_accuracy": 0.9462000757455826,
176
+ "num_tokens": 218576.0,
177
+ "epoch": 1.185430463576159,
178
+ "step": 90
179
+ },
180
+ {
181
+ "eval_loss": 0.8339773416519165,
182
+ "eval_runtime": 8.973,
183
+ "eval_samples_per_second": 16.717,
184
+ "eval_steps_per_second": 4.235,
185
+ "eval_entropy": 0.2065272086060998,
186
+ "eval_mean_token_accuracy": 0.7746240653489765,
187
+ "eval_num_tokens": 218576.0,
188
+ "epoch": 1.185430463576159,
189
+ "step": 90
190
+ },
191
+ {
192
+ "loss": 0.12467809915542602,
193
+ "grad_norm": 4.511893272399902,
194
+ "learning_rate": 0.00012585365853658536,
195
+ "entropy": 0.10107915503322147,
196
+ "mean_token_accuracy": 0.9587799295783043,
197
+ "num_tokens": 243344.0,
198
+ "epoch": 1.3178807947019868,
199
+ "step": 100
200
+ },
201
+ {
202
+ "eval_loss": 0.7112035155296326,
203
+ "eval_runtime": 8.9282,
204
+ "eval_samples_per_second": 16.801,
205
+ "eval_steps_per_second": 4.256,
206
+ "eval_entropy": 0.15474749381016745,
207
+ "eval_mean_token_accuracy": 0.8157424864016081,
208
+ "eval_num_tokens": 243344.0,
209
+ "epoch": 1.3178807947019868,
210
+ "step": 100
211
+ },
212
+ {
213
+ "loss": 0.12197786569595337,
214
+ "grad_norm": 1.6361427307128906,
215
+ "learning_rate": 0.00011609756097560975,
216
+ "entropy": 0.07562960358336568,
217
+ "mean_token_accuracy": 0.9517370820045471,
218
+ "num_tokens": 267786.0,
219
+ "epoch": 1.4503311258278146,
220
+ "step": 110
221
+ },
222
+ {
223
+ "eval_loss": 1.0470056533813477,
224
+ "eval_runtime": 8.9724,
225
+ "eval_samples_per_second": 16.718,
226
+ "eval_steps_per_second": 4.235,
227
+ "eval_entropy": 0.14818870221681305,
228
+ "eval_mean_token_accuracy": 0.7478383512873399,
229
+ "eval_num_tokens": 267786.0,
230
+ "epoch": 1.4503311258278146,
231
+ "step": 110
232
+ },
233
+ {
234
+ "loss": 0.10809319019317627,
235
+ "grad_norm": 1.6775206327438354,
236
+ "learning_rate": 0.00010634146341463416,
237
+ "entropy": 0.08924289270071313,
238
+ "mean_token_accuracy": 0.9604727029800415,
239
+ "num_tokens": 292317.0,
240
+ "epoch": 1.5827814569536423,
241
+ "step": 120
242
+ },
243
+ {
244
+ "eval_loss": 1.0492334365844727,
245
+ "eval_runtime": 8.8734,
246
+ "eval_samples_per_second": 16.904,
247
+ "eval_steps_per_second": 4.282,
248
+ "eval_entropy": 0.14410611607232376,
249
+ "eval_mean_token_accuracy": 0.8007205567861858,
250
+ "eval_num_tokens": 292317.0,
251
+ "epoch": 1.5827814569536423,
252
+ "step": 120
253
+ },
254
+ {
255
+ "loss": 0.03908039927482605,
256
+ "grad_norm": 2.2686848640441895,
257
+ "learning_rate": 9.658536585365854e-05,
258
+ "entropy": 0.06353283888893202,
259
+ "mean_token_accuracy": 0.9815119966864586,
260
+ "num_tokens": 316521.0,
261
+ "epoch": 1.7152317880794703,
262
+ "step": 130
263
+ },
264
+ {
265
+ "eval_loss": 1.4305915832519531,
266
+ "eval_runtime": 8.8602,
267
+ "eval_samples_per_second": 16.93,
268
+ "eval_steps_per_second": 4.289,
269
+ "eval_entropy": 0.0935905459689246,
270
+ "eval_mean_token_accuracy": 0.7892387258379083,
271
+ "eval_num_tokens": 316521.0,
272
+ "epoch": 1.7152317880794703,
273
+ "step": 130
274
+ },
275
+ {
276
+ "loss": 0.04100652039051056,
277
+ "grad_norm": 5.218770980834961,
278
+ "learning_rate": 8.682926829268293e-05,
279
+ "entropy": 0.03381892999459524,
280
+ "mean_token_accuracy": 0.984375512599945,
281
+ "num_tokens": 340919.0,
282
+ "epoch": 1.847682119205298,
283
+ "step": 140
284
+ },
285
+ {
286
+ "eval_loss": 1.5555816888809204,
287
+ "eval_runtime": 8.7739,
288
+ "eval_samples_per_second": 17.096,
289
+ "eval_steps_per_second": 4.331,
290
+ "eval_entropy": 0.07794101885673099,
291
+ "eval_mean_token_accuracy": 0.8050282001495361,
292
+ "eval_num_tokens": 340919.0,
293
+ "epoch": 1.847682119205298,
294
+ "step": 140
295
+ },
296
+ {
297
+ "loss": 0.03830587565898895,
298
+ "grad_norm": 0.13190802931785583,
299
+ "learning_rate": 7.707317073170732e-05,
300
+ "entropy": 0.026670162624213845,
301
+ "mean_token_accuracy": 0.9837620735168457,
302
+ "num_tokens": 364991.0,
303
+ "epoch": 1.980132450331126,
304
+ "step": 150
305
+ },
306
+ {
307
+ "eval_loss": 1.2507771253585815,
308
+ "eval_runtime": 8.8746,
309
+ "eval_samples_per_second": 16.902,
310
+ "eval_steps_per_second": 4.282,
311
+ "eval_entropy": 0.0817602070930757,
312
+ "eval_mean_token_accuracy": 0.7987468728893682,
313
+ "eval_num_tokens": 364991.0,
314
+ "epoch": 1.980132450331126,
315
+ "step": 150
316
+ },
317
+ {
318
+ "loss": 0.07177287340164185,
319
+ "grad_norm": 2.2161507606506348,
320
+ "learning_rate": 6.731707317073171e-05,
321
+ "entropy": 0.01958650479240245,
322
+ "mean_token_accuracy": 0.9884510479475322,
323
+ "num_tokens": 387642.0,
324
+ "epoch": 2.1059602649006623,
325
+ "step": 160
326
+ },
327
+ {
328
+ "eval_loss": 1.3437883853912354,
329
+ "eval_runtime": 8.8478,
330
+ "eval_samples_per_second": 16.953,
331
+ "eval_steps_per_second": 4.295,
332
+ "eval_entropy": 0.06764962662648606,
333
+ "eval_mean_token_accuracy": 0.7787750677058571,
334
+ "eval_num_tokens": 387642.0,
335
+ "epoch": 2.1059602649006623,
336
+ "step": 160
337
+ },
338
+ {
339
+ "loss": 0.009113987535238266,
340
+ "grad_norm": 0.039817001670598984,
341
+ "learning_rate": 5.756097560975609e-05,
342
+ "entropy": 0.01661088205728447,
343
+ "mean_token_accuracy": 0.9937208637595176,
344
+ "num_tokens": 412538.0,
345
+ "epoch": 2.23841059602649,
346
+ "step": 170
347
+ },
348
+ {
349
+ "eval_loss": 1.5150843858718872,
350
+ "eval_runtime": 8.7479,
351
+ "eval_samples_per_second": 17.147,
352
+ "eval_steps_per_second": 4.344,
353
+ "eval_entropy": 0.06736165528357226,
354
+ "eval_mean_token_accuracy": 0.7647556442963449,
355
+ "eval_num_tokens": 412538.0,
356
+ "epoch": 2.23841059602649,
357
+ "step": 170
358
+ },
359
+ {
360
+ "loss": 0.003525285795331001,
361
+ "grad_norm": 0.00853405799716711,
362
+ "learning_rate": 4.7804878048780485e-05,
363
+ "entropy": 0.00830267872515833,
364
+ "mean_token_accuracy": 0.9980769231915474,
365
+ "num_tokens": 437055.0,
366
+ "epoch": 2.370860927152318,
367
+ "step": 180
368
+ },
369
+ {
370
+ "eval_loss": 1.644209384918213,
371
+ "eval_runtime": 8.7784,
372
+ "eval_samples_per_second": 17.087,
373
+ "eval_steps_per_second": 4.329,
374
+ "eval_entropy": 0.06734515197259545,
375
+ "eval_mean_token_accuracy": 0.7691416097314734,
376
+ "eval_num_tokens": 437055.0,
377
+ "epoch": 2.370860927152318,
378
+ "step": 180
379
+ },
380
+ {
381
+ "loss": 0.001157384179532528,
382
+ "grad_norm": 0.09711030125617981,
383
+ "learning_rate": 3.804878048780488e-05,
384
+ "entropy": 0.004432732032000786,
385
+ "mean_token_accuracy": 1.0,
386
+ "num_tokens": 461493.0,
387
+ "epoch": 2.5033112582781456,
388
+ "step": 190
389
+ },
390
+ {
391
+ "eval_loss": 1.7609623670578003,
392
+ "eval_runtime": 8.7515,
393
+ "eval_samples_per_second": 17.14,
394
+ "eval_steps_per_second": 4.342,
395
+ "eval_entropy": 0.06280427154553381,
396
+ "eval_mean_token_accuracy": 0.7669486277981808,
397
+ "eval_num_tokens": 461493.0,
398
+ "epoch": 2.5033112582781456,
399
+ "step": 190
400
+ },
401
+ {
402
+ "loss": 0.0030027683824300766,
403
+ "grad_norm": 0.012400347739458084,
404
+ "learning_rate": 2.8292682926829267e-05,
405
+ "entropy": 0.004392967079911614,
406
+ "mean_token_accuracy": 0.997916667163372,
407
+ "num_tokens": 485528.0,
408
+ "epoch": 2.6357615894039736,
409
+ "step": 200
410
+ },
411
+ {
412
+ "eval_loss": 1.8287278413772583,
413
+ "eval_runtime": 8.7245,
414
+ "eval_samples_per_second": 17.193,
415
+ "eval_steps_per_second": 4.356,
416
+ "eval_entropy": 0.06022026199015703,
417
+ "eval_mean_token_accuracy": 0.7735275751666019,
418
+ "eval_num_tokens": 485528.0,
419
+ "epoch": 2.6357615894039736,
420
+ "step": 200
421
+ },
422
+ {
423
+ "loss": 0.0011992882937192917,
424
+ "grad_norm": 0.004404825158417225,
425
+ "learning_rate": 1.853658536585366e-05,
426
+ "entropy": 0.0030429765494773163,
427
+ "mean_token_accuracy": 1.0,
428
+ "num_tokens": 510081.0,
429
+ "epoch": 2.7682119205298013,
430
+ "step": 210
431
+ },
432
+ {
433
+ "eval_loss": 1.8526947498321533,
434
+ "eval_runtime": 8.6297,
435
+ "eval_samples_per_second": 17.382,
436
+ "eval_steps_per_second": 4.403,
437
+ "eval_entropy": 0.057951420073789596,
438
+ "eval_mean_token_accuracy": 0.7669486277981808,
439
+ "eval_num_tokens": 510081.0,
440
+ "epoch": 2.7682119205298013,
441
+ "step": 210
442
+ },
443
+ {
444
+ "loss": 0.007075458765029907,
445
+ "grad_norm": 0.029240623116493225,
446
+ "learning_rate": 8.780487804878048e-06,
447
+ "entropy": 0.006888014055220992,
448
+ "mean_token_accuracy": 0.9928314402699471,
449
+ "num_tokens": 534422.0,
450
+ "epoch": 2.9006622516556293,
451
+ "step": 220
452
+ },
453
+ {
454
+ "eval_loss": 1.8728781938552856,
455
+ "eval_runtime": 8.6887,
456
+ "eval_samples_per_second": 17.264,
457
+ "eval_steps_per_second": 4.374,
458
+ "eval_entropy": 0.05773907397892081,
459
+ "eval_mean_token_accuracy": 0.7735275751666019,
460
+ "eval_num_tokens": 534422.0,
461
+ "epoch": 2.9006622516556293,
462
+ "step": 220
463
+ },
464
+ {
465
+ "eval_loss": 1.882822871208191,
466
+ "eval_runtime": 8.6056,
467
+ "eval_samples_per_second": 17.43,
468
+ "eval_steps_per_second": 4.416,
469
+ "eval_entropy": 0.05690596842377042,
470
+ "eval_mean_token_accuracy": 0.7669486277981808,
471
+ "eval_num_tokens": 552555.0,
472
+ "epoch": 3.0,
473
+ "step": 228
474
+ },
475
+ {
476
+ "train_runtime": 1087.8226,
477
+ "train_samples_per_second": 3.326,
478
+ "train_steps_per_second": 0.21,
479
+ "total_flos": 3.178031783683891e+16,
480
+ "train_loss": 0.3232832907233387,
481
+ "epoch": 3.0,
482
+ "step": 228
483
+ }
484
+ ]