CrazyJames26 commited on
Commit
7541c7d
·
verified ·
1 Parent(s): 7e03ccf

Add round2_shared_kv/latest/sft_step442

Browse files
.gitattributes CHANGED
@@ -40,3 +40,4 @@ round2_shared_kv/deltanet_lr1e-4_v0/continued_pretraining_step4222/tokenizer.jso
40
  round2_shared_kv/deltanet_lr1e-4_v0/sft_step442/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  round2_shared_kv/latest/distillation_lr1e-3/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  round2_shared_kv/latest/continued_pretraining_step4222/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
40
  round2_shared_kv/deltanet_lr1e-4_v0/sft_step442/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  round2_shared_kv/latest/distillation_lr1e-3/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  round2_shared_kv/latest/continued_pretraining_step4222/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
+ round2_shared_kv/latest/sft_step442/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -28,6 +28,7 @@ Each directory is a self-contained inference bundle: `student.safetensors`, `stu
28
  | `round2_shared_kv/latest/distillation_lr5e-4` | latest | Distillation, 4,360 steps | 5e-4 |
29
  | `round2_shared_kv/latest/distillation_lr1e-3` | latest | Distillation, 4,360 steps — **selected**; starting point of the `latest` student | 1e-3 |
30
  | `round2_shared_kv/latest/continued_pretraining_step4222` | latest | + full-parameter continued pretraining, 4,222 steps (15.0B tokens) | 1e-3 cosine |
 
31
  | `round2_shared_kv/deltanet_lr1e-4_v0/distillation_step4360` | deltanet (v0) | Distillation, 4,360 steps | 1e-4 |
32
  | `round2_shared_kv/deltanet_lr1e-4_v0/continued_pretraining_step4222` | deltanet (v0) | + full-parameter continued pretraining, 4,222 steps (15.0B tokens) | 5e-5 cosine |
33
  | `round2_shared_kv/deltanet_lr1e-4_v0/sft_step442` | deltanet (v0) | + SFT, 442 steps | 1e-5 cosine |
@@ -43,6 +44,7 @@ The `latest` learning-rate sweep selects one rate by held-out composite MSE (fin
43
  | Model | 4K | 8K | 16K |
44
  |---|---:|---:|---:|
45
  | Qwen3-0.6B (native) | 94.50 | 91.19 | 82.75 |
 
46
  | `deltanet_lr1e-4_v0/sft_step442` (pre-sweep rates) | 0.81 | 0.25 | 0.50 |
47
 
48
  Full per-task scores are in each `sft_step442/evaluation/scores.json`.
 
28
  | `round2_shared_kv/latest/distillation_lr5e-4` | latest | Distillation, 4,360 steps | 5e-4 |
29
  | `round2_shared_kv/latest/distillation_lr1e-3` | latest | Distillation, 4,360 steps — **selected**; starting point of the `latest` student | 1e-3 |
30
  | `round2_shared_kv/latest/continued_pretraining_step4222` | latest | + full-parameter continued pretraining, 4,222 steps (15.0B tokens) | 1e-3 cosine |
31
+ | `round2_shared_kv/latest/sft_step442` | latest | + SFT, 442 steps | 1e-4 linear |
32
  | `round2_shared_kv/deltanet_lr1e-4_v0/distillation_step4360` | deltanet (v0) | Distillation, 4,360 steps | 1e-4 |
33
  | `round2_shared_kv/deltanet_lr1e-4_v0/continued_pretraining_step4222` | deltanet (v0) | + full-parameter continued pretraining, 4,222 steps (15.0B tokens) | 5e-5 cosine |
34
  | `round2_shared_kv/deltanet_lr1e-4_v0/sft_step442` | deltanet (v0) | + SFT, 442 steps | 1e-5 cosine |
 
44
  | Model | 4K | 8K | 16K |
45
  |---|---:|---:|---:|
46
  | Qwen3-0.6B (native) | 94.50 | 91.19 | 82.75 |
47
+ | `latest/sft_step442` | 29.19 | 21.12 | 7.94 |
48
  | `deltanet_lr1e-4_v0/sft_step442` (pre-sweep rates) | 0.81 | 0.25 | 0.50 |
49
 
50
  Full per-task scores are in each `sft_step442/evaluation/scores.json`.
round2_shared_kv/latest/sft_step442/completed_sft.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "objective": "response_only_next_token_cross_entropy",
3
+ "teacher_loaded": false,
4
+ "all_parameters_trainable": true,
5
+ "trainable_parameters": 656211392,
6
+ "world_size": 8,
7
+ "microbatch_per_gpu": 32,
8
+ "global_batch": 256,
9
+ "weight_dtype": "float32",
10
+ "residual_dtype": "bfloat16",
11
+ "sampler_policy": "complete_length_grouped_batches_mask_fill",
12
+ "epoch_examples_with_fill": 56576,
13
+ "learning_rate": 0.0001,
14
+ "warmup_steps": 23,
15
+ "lr_schedule": "linear",
16
+ "max_steps": 442,
17
+ "padding_policy": "global_batch_maximum",
18
+ "runtime_max_sequence_length": 90971,
19
+ "write_mode": "latest",
20
+ "corpus_manifest_sha256": "8daee0542b722da8a49a7c7ea3ff48a5ffd146b6d504539b43b545e93fecf279",
21
+ "steps": 442,
22
+ "cursor": 113152
23
+ }
round2_shared_kv/latest/sft_step442/evaluation/identity.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "autotune_profile_sha256": "8fc452ef59236292d82160778f9cdfd97de64d5be223bed8fbb86d29e4b2807a",
3
+ "batch_size": 32,
4
+ "cached_scan": "bounded_fla_tail_v1",
5
+ "compute_precision": "float32",
6
+ "diagnostic_subset": false,
7
+ "evaluation_source_sha256": "69adb67a42d948935616f34b4ab4129bc31eea8fa0f299599a21be1900ed3227",
8
+ "label": "latest",
9
+ "manifest_sha256": "1ebd8f2f9e2b7512ea9bce1407700d6fb236cf0fc06875d3cf44782b3a53100e",
10
+ "numerical_checks": "finite_logits_v1",
11
+ "protocol": "cached_batched_base_prompts_v1",
12
+ "ruler_only": false,
13
+ "runtime_sources_sha256": "c3e7c02d47003b23d44e486c0c623c881309115f43f40ce00cf2348640c1f903",
14
+ "samples_per_task_limit": null,
15
+ "selected_ids_sha256": "2455d1662ee982dc261fd21a1482d74bd8caa5ad3605de9e93410ad586d47aa2",
16
+ "selected_sample_count": 1510,
17
+ "stable_reductions": false,
18
+ "student_config_sha256": "f5df937a4f31b7191edc3cd1fc453e43168b09253042c15245413e28cc395b59",
19
+ "student_weights_sha256": "0fe2296a4a40ec3ea10c30e4b3da6b7bcdaff99d0095fb68e81e03f8136c601c",
20
+ "teacher_loaded": false,
21
+ "torch_version": "2.14.1+rocm7.2",
22
+ "world_size": 8
23
+ }
round2_shared_kv/latest/sft_step442/evaluation/scores.json ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "identity": {
3
+ "label": "latest",
4
+ "world_size": 8,
5
+ "batch_size": 32,
6
+ "ruler_only": false,
7
+ "protocol": "cached_batched_base_prompts_v1",
8
+ "compute_precision": "float32",
9
+ "stable_reductions": false,
10
+ "cached_scan": "bounded_fla_tail_v1",
11
+ "runtime_sources_sha256": "c3e7c02d47003b23d44e486c0c623c881309115f43f40ce00cf2348640c1f903",
12
+ "torch_version": "2.14.1+rocm7.2",
13
+ "autotune_profile_sha256": "8fc452ef59236292d82160778f9cdfd97de64d5be223bed8fbb86d29e4b2807a",
14
+ "manifest_sha256": "1ebd8f2f9e2b7512ea9bce1407700d6fb236cf0fc06875d3cf44782b3a53100e",
15
+ "student_config_sha256": "f5df937a4f31b7191edc3cd1fc453e43168b09253042c15245413e28cc395b59",
16
+ "student_weights_sha256": "0fe2296a4a40ec3ea10c30e4b3da6b7bcdaff99d0095fb68e81e03f8136c601c",
17
+ "numerical_checks": "finite_logits_v1",
18
+ "teacher_loaded": false,
19
+ "diagnostic_subset": false,
20
+ "samples_per_task_limit": null,
21
+ "selected_sample_count": 1510,
22
+ "selected_ids_sha256": "2455d1662ee982dc261fd21a1482d74bd8caa5ad3605de9e93410ad586d47aa2",
23
+ "evaluation_source_sha256": "69adb67a42d948935616f34b4ab4129bc31eea8fa0f299599a21be1900ed3227"
24
+ },
25
+ "results": {
26
+ "arc_challenge": {
27
+ "count": 50,
28
+ "acc": 32.0,
29
+ "acc_norm": 30.0
30
+ },
31
+ "arc_easy": {
32
+ "count": 50,
33
+ "acc": 50.0,
34
+ "acc_norm": 50.0
35
+ },
36
+ "longbench/hotpotqa": {
37
+ "count": 20,
38
+ "exact_match": 0.0,
39
+ "f1": 6.278802291320799
40
+ },
41
+ "longbench/musique": {
42
+ "count": 20,
43
+ "exact_match": 0.0,
44
+ "f1": 4.617994481152376
45
+ },
46
+ "longbench/qasper": {
47
+ "count": 20,
48
+ "exact_match": 0.0,
49
+ "f1": 7.021321322390314
50
+ },
51
+ "piqa": {
52
+ "count": 50,
53
+ "acc": 68.0,
54
+ "acc_norm": 66.0
55
+ },
56
+ "ruler/niah_multikey_1/16384": {
57
+ "count": 50,
58
+ "retrieval": 16.0
59
+ },
60
+ "ruler/niah_multikey_1/4096": {
61
+ "count": 50,
62
+ "retrieval": 40.0
63
+ },
64
+ "ruler/niah_multikey_1/8192": {
65
+ "count": 50,
66
+ "retrieval": 36.0
67
+ },
68
+ "ruler/niah_multikey_2/16384": {
69
+ "count": 50,
70
+ "retrieval": 0.0
71
+ },
72
+ "ruler/niah_multikey_2/4096": {
73
+ "count": 50,
74
+ "retrieval": 0.0
75
+ },
76
+ "ruler/niah_multikey_2/8192": {
77
+ "count": 50,
78
+ "retrieval": 0.0
79
+ },
80
+ "ruler/niah_multikey_3/16384": {
81
+ "count": 50,
82
+ "retrieval": 0.0
83
+ },
84
+ "ruler/niah_multikey_3/4096": {
85
+ "count": 50,
86
+ "retrieval": 0.0
87
+ },
88
+ "ruler/niah_multikey_3/8192": {
89
+ "count": 50,
90
+ "retrieval": 0.0
91
+ },
92
+ "ruler/niah_multiquery/16384": {
93
+ "count": 50,
94
+ "retrieval": 1.0
95
+ },
96
+ "ruler/niah_multiquery/4096": {
97
+ "count": 50,
98
+ "retrieval": 4.0
99
+ },
100
+ "ruler/niah_multiquery/8192": {
101
+ "count": 50,
102
+ "retrieval": 6.0
103
+ },
104
+ "ruler/niah_multivalue/16384": {
105
+ "count": 50,
106
+ "retrieval": 4.5
107
+ },
108
+ "ruler/niah_multivalue/4096": {
109
+ "count": 50,
110
+ "retrieval": 19.5
111
+ },
112
+ "ruler/niah_multivalue/8192": {
113
+ "count": 50,
114
+ "retrieval": 21.0
115
+ },
116
+ "ruler/niah_single_1/16384": {
117
+ "count": 50,
118
+ "retrieval": 32.0
119
+ },
120
+ "ruler/niah_single_1/4096": {
121
+ "count": 50,
122
+ "retrieval": 100.0
123
+ },
124
+ "ruler/niah_single_1/8192": {
125
+ "count": 50,
126
+ "retrieval": 78.0
127
+ },
128
+ "ruler/niah_single_2/16384": {
129
+ "count": 50,
130
+ "retrieval": 10.0
131
+ },
132
+ "ruler/niah_single_2/4096": {
133
+ "count": 50,
134
+ "retrieval": 68.0
135
+ },
136
+ "ruler/niah_single_2/8192": {
137
+ "count": 50,
138
+ "retrieval": 28.0
139
+ },
140
+ "ruler/niah_single_3/16384": {
141
+ "count": 50,
142
+ "retrieval": 0.0
143
+ },
144
+ "ruler/niah_single_3/4096": {
145
+ "count": 50,
146
+ "retrieval": 2.0
147
+ },
148
+ "ruler/niah_single_3/8192": {
149
+ "count": 50,
150
+ "retrieval": 0.0
151
+ },
152
+ "squad": {
153
+ "count": 50,
154
+ "exact_match": 0.0,
155
+ "f1": 9.78561933994606
156
+ },
157
+ "triviaqa": {
158
+ "count": 50,
159
+ "exact_match": 0.0,
160
+ "f1": 2.9783269737545583
161
+ }
162
+ }
163
+ }
round2_shared_kv/latest/sft_step442/learning_rate_selection.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "comparison": "/work/ucla-jcong/jameszhang23/GDN_Routing/runs/shared_kv_30b_v1/lr_sweep_v1/comparison.json",
3
+ "comparison_sha256": "0a68b0ad24279d26520a4a84126fe2ddbfc5627e8e25fdbd0af0aa7c3fbec77d",
4
+ "selected": "1e-3",
5
+ "distillation_learning_rate": 0.001,
6
+ "continued_pretraining_learning_rate": 0.001,
7
+ "sft_learning_rate": 0.0001,
8
+ "sft_schedule": "linear",
9
+ "winning_latest_checkpoint": "/work/ucla-jcong/jameszhang23/GDN_Routing/runs/shared_kv_30b_v1/lr_sweep_v1/1e-3/distillation/checkpoint_step_00004360.pt",
10
+ "winning_latest_distillation_config": "/work/ucla-jcong/jameszhang23/GDN_Routing/runs/shared_kv_30b_v1/lr_sweep_v1/1e-3/distillation.json"
11
+ }
round2_shared_kv/latest/sft_step442/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
round2_shared_kv/latest/sft_step442/sft_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "write_mode": "latest",
3
+ "microbatch_per_gpu": 32,
4
+ "global_batch": 256,
5
+ "accumulation": 1,
6
+ "save_every_steps": 1000,
7
+ "keep_last_checkpoints": 2,
8
+ "gradient_checkpointing": true,
9
+ "lr_schedule": "linear",
10
+ "stage": "sft",
11
+ "student": "/work/ucla-jcong/jameszhang23/GDN_Routing/runs/shared_kv_30b_v1/selected_lr_v1/latest/continued_pretraining/checkpoint_step_00004222",
12
+ "corpus_manifest": "/work/ucla-jcong/jameszhang23/GDN_Routing/data/full_dhsa_sft_untruncated_v1/corpus/manifest.json",
13
+ "output_dir": "/work/ucla-jcong/jameszhang23/GDN_Routing/runs/shared_kv_30b_v1/selected_lr_v1/latest/sft",
14
+ "epochs": 2,
15
+ "max_steps": 442,
16
+ "long_scan_token_budget": 131072,
17
+ "long_layer_token_budget": 131072,
18
+ "learning_rate": 0.0001,
19
+ "wandb": {
20
+ "enabled": true,
21
+ "project": "GDN_Routing",
22
+ "entity": "jameszhang23-ucla",
23
+ "group": "shared-kv-30b-lr-selected-v1",
24
+ "name": "latest-sft"
25
+ },
26
+ "scan_batch_chunk": 0,
27
+ "scan_checkpoint": false
28
+ }
round2_shared_kv/latest/sft_step442/student.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fe2296a4a40ec3ea10c30e4b3da6b7bcdaff99d0095fb68e81e03f8136c601c
3
+ size 2624913496
round2_shared_kv/latest/sft_step442/student_config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dtype": "bfloat16",
3
+ "attention": {
4
+ "backend": "fla",
5
+ "compiled_qk_scale_only": true,
6
+ "conv_bias": false,
7
+ "conv_size": 4,
8
+ "fla_chunk_size": 64,
9
+ "fla_native_v": true,
10
+ "fla_pure_grouped_backward": false,
11
+ "fla_pure_grouped_no_decay": false,
12
+ "fused_norm_gate": true,
13
+ "fused_qkv_conv": true,
14
+ "fused_qkv_proj": true,
15
+ "fused_state_read": true,
16
+ "max_bank_states": 8,
17
+ "novelty_backend": "triton",
18
+ "novelty_route_interval": 1,
19
+ "novelty_warps": 16,
20
+ "num_kv_heads": 8,
21
+ "read_bias": true,
22
+ "segment_scan": true,
23
+ "simplified_qk_norm": true,
24
+ "use_global_decay": false,
25
+ "use_short_conv": true,
26
+ "write_mode": "latest"
27
+ },
28
+ "backbone": {
29
+ "architectures": [
30
+ "Qwen3ForCausalLM"
31
+ ],
32
+ "attention_bias": false,
33
+ "attention_dropout": 0.0,
34
+ "bos_token_id": 151643,
35
+ "eos_token_id": 151645,
36
+ "head_dim": 128,
37
+ "hidden_act": "silu",
38
+ "hidden_size": 1024,
39
+ "initializer_range": 0.02,
40
+ "intermediate_size": 3072,
41
+ "max_position_embeddings": 40960,
42
+ "max_window_layers": 28,
43
+ "model_type": "qwen3",
44
+ "num_attention_heads": 16,
45
+ "num_hidden_layers": 28,
46
+ "num_key_value_heads": 8,
47
+ "rms_norm_eps": 1e-06,
48
+ "rope_scaling": null,
49
+ "rope_theta": 1000000,
50
+ "sliding_window": null,
51
+ "tie_word_embeddings": true,
52
+ "torch_dtype": "bfloat16",
53
+ "transformers_version": "4.51.0",
54
+ "use_cache": true,
55
+ "use_sliding_window": false,
56
+ "vocab_size": 151936
57
+ },
58
+ "compute_precision": "mixed_bfloat16",
59
+ "format": "dynamic_deltanet_student_v1",
60
+ "generation": {
61
+ "bos_token_id": 151643,
62
+ "do_sample": true,
63
+ "eos_token_id": [
64
+ 151645,
65
+ 151643
66
+ ],
67
+ "pad_token_id": 151643,
68
+ "temperature": 0.6,
69
+ "top_k": 20,
70
+ "top_p": 0.95,
71
+ "transformers_version": "4.51.0"
72
+ },
73
+ "max_sequence_length": 90971,
74
+ "schedule": {
75
+ "length_base": 1024,
76
+ "max_state_num": 8,
77
+ "reference_length": 16384
78
+ },
79
+ "stable_inference": false
80
+ }
round2_shared_kv/latest/sft_step442/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
round2_shared_kv/latest/sft_step442/tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
round2_shared_kv/latest/sft_step442/vocab.json ADDED
The diff for this file is too large to render. See raw diff