agentlans commited on
Commit
fd10571
·
verified ·
1 Parent(s): c36fe7c

Upload 12 files

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
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.8978077571669477,
4
+ "eval_loss": 0.2924116253852844,
5
+ "eval_runtime": 7.2749,
6
+ "eval_samples": 2965,
7
+ "eval_samples_per_second": 407.564,
8
+ "eval_steps_per_second": 50.997,
9
+ "num_input_tokens_seen": 4552704,
10
+ "total_flos": 2773636063690752.0,
11
+ "train_loss": 0.30860748496937207,
12
+ "train_runtime": 450.538,
13
+ "train_samples": 11856,
14
+ "train_samples_per_second": 78.946,
15
+ "train_steps_per_second": 9.868
16
+ }
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 6,
3
+ "architectures": [
4
+ "Gemma3TextForSequenceClassification"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "attn_logit_softcapping": null,
9
+ "bos_token_id": 2,
10
+ "dtype": "float32",
11
+ "eos_token_id": 1,
12
+ "final_logit_softcapping": null,
13
+ "finetuning_task": "text-classification",
14
+ "head_dim": 256,
15
+ "hidden_activation": "gelu_pytorch_tanh",
16
+ "hidden_size": 768,
17
+ "id2label": {
18
+ "0": "False",
19
+ "1": "True"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 1152,
23
+ "label2id": {
24
+ "False": 0,
25
+ "True": 1
26
+ },
27
+ "layer_types": [
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "full_attention"
52
+ ],
53
+ "max_position_embeddings": 2048,
54
+ "model_type": "gemma3_text",
55
+ "num_attention_heads": 3,
56
+ "num_hidden_layers": 24,
57
+ "num_key_value_heads": 1,
58
+ "pad_token_id": 0,
59
+ "problem_type": "single_label_classification",
60
+ "query_pre_attn_scalar": 256,
61
+ "rms_norm_eps": 1e-06,
62
+ "rope_local_base_freq": 10000.0,
63
+ "rope_parameters": {
64
+ "full_attention": {
65
+ "rope_theta": 1000000.0,
66
+ "rope_type": "default"
67
+ },
68
+ "sliding_attention": {
69
+ "rope_theta": 10000.0,
70
+ "rope_type": "default"
71
+ }
72
+ },
73
+ "rope_theta": 1000000.0,
74
+ "sliding_window": 257,
75
+ "transformers_version": "5.0.0.dev0",
76
+ "use_bidirectional_attention": true,
77
+ "use_cache": false,
78
+ "vocab_size": 262144
79
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.8978077571669477,
4
+ "eval_loss": 0.2924116253852844,
5
+ "eval_runtime": 7.2749,
6
+ "eval_samples": 2965,
7
+ "eval_samples_per_second": 407.564,
8
+ "eval_steps_per_second": 50.997,
9
+ "num_input_tokens_seen": 4552704
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ebcc7e2c88fed34161f1dfeefc6e633acc0b458aee3b326ccf349ae8a1c144d
3
+ size 1211494184
special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6852f8d561078cc0cebe70ca03c5bfdd0d60a45f9d2e0e1e4cc05b68e9ec329e
3
+ size 33385008
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
train_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "num_input_tokens_seen": 4552704,
4
+ "total_flos": 2773636063690752.0,
5
+ "train_loss": 0.30860748496937207,
6
+ "train_runtime": 450.538,
7
+ "train_samples": 11856,
8
+ "train_samples_per_second": 78.946,
9
+ "train_steps_per_second": 9.868
10
+ }
trainer_state.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 2964,
3
+ "best_metric": 0.2924116253852844,
4
+ "best_model_checkpoint": "embeddinggemma-300m-pii-detector/checkpoint-2964",
5
+ "epoch": 3.0,
6
+ "eval_steps": 500,
7
+ "global_step": 4446,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.33738191632928477,
14
+ "grad_norm": 17.098201751708984,
15
+ "learning_rate": 4.438821412505623e-05,
16
+ "loss": 0.5645,
17
+ "num_input_tokens_seen": 512000,
18
+ "step": 500,
19
+ "train_runtime": 47.9743,
20
+ "train_tokens_per_second": 10672.374
21
+ },
22
+ {
23
+ "epoch": 0.6747638326585695,
24
+ "grad_norm": 1.4570860862731934,
25
+ "learning_rate": 3.876518218623482e-05,
26
+ "loss": 0.3907,
27
+ "num_input_tokens_seen": 1024000,
28
+ "step": 1000,
29
+ "train_runtime": 94.2729,
30
+ "train_tokens_per_second": 10862.077
31
+ },
32
+ {
33
+ "epoch": 1.0,
34
+ "eval_accuracy": 0.8627318718381113,
35
+ "eval_loss": 0.30147919058799744,
36
+ "eval_runtime": 7.391,
37
+ "eval_samples_per_second": 401.161,
38
+ "eval_steps_per_second": 50.196,
39
+ "num_input_tokens_seen": 1517568,
40
+ "step": 1482
41
+ },
42
+ {
43
+ "epoch": 1.0121457489878543,
44
+ "grad_norm": 14.889694213867188,
45
+ "learning_rate": 3.3142150247413403e-05,
46
+ "loss": 0.3335,
47
+ "num_input_tokens_seen": 1536000,
48
+ "step": 1500,
49
+ "train_runtime": 151.9538,
50
+ "train_tokens_per_second": 10108.336
51
+ },
52
+ {
53
+ "epoch": 1.349527665317139,
54
+ "grad_norm": 0.4145456552505493,
55
+ "learning_rate": 2.7519118308591997e-05,
56
+ "loss": 0.3069,
57
+ "num_input_tokens_seen": 2048000,
58
+ "step": 2000,
59
+ "train_runtime": 198.9267,
60
+ "train_tokens_per_second": 10295.252
61
+ },
62
+ {
63
+ "epoch": 1.686909581646424,
64
+ "grad_norm": 49.79447555541992,
65
+ "learning_rate": 2.1896086369770583e-05,
66
+ "loss": 0.2847,
67
+ "num_input_tokens_seen": 2560000,
68
+ "step": 2500,
69
+ "train_runtime": 245.6972,
70
+ "train_tokens_per_second": 10419.327
71
+ },
72
+ {
73
+ "epoch": 2.0,
74
+ "eval_accuracy": 0.8978077571669477,
75
+ "eval_loss": 0.2924116253852844,
76
+ "eval_runtime": 7.3471,
77
+ "eval_samples_per_second": 403.563,
78
+ "eval_steps_per_second": 50.496,
79
+ "num_input_tokens_seen": 3035136,
80
+ "step": 2964
81
+ },
82
+ {
83
+ "epoch": 2.0242914979757085,
84
+ "grad_norm": 0.2802899181842804,
85
+ "learning_rate": 1.627305443094917e-05,
86
+ "loss": 0.2542,
87
+ "num_input_tokens_seen": 3072000,
88
+ "step": 3000,
89
+ "train_runtime": 303.072,
90
+ "train_tokens_per_second": 10136.207
91
+ },
92
+ {
93
+ "epoch": 2.361673414304993,
94
+ "grad_norm": 29.810983657836914,
95
+ "learning_rate": 1.0650022492127757e-05,
96
+ "loss": 0.2176,
97
+ "num_input_tokens_seen": 3584000,
98
+ "step": 3500,
99
+ "train_runtime": 350.1674,
100
+ "train_tokens_per_second": 10235.104
101
+ },
102
+ {
103
+ "epoch": 2.699055330634278,
104
+ "grad_norm": 14.638989448547363,
105
+ "learning_rate": 5.026990553306343e-06,
106
+ "loss": 0.2064,
107
+ "num_input_tokens_seen": 4096000,
108
+ "step": 4000,
109
+ "train_runtime": 397.7303,
110
+ "train_tokens_per_second": 10298.436
111
+ },
112
+ {
113
+ "epoch": 3.0,
114
+ "eval_accuracy": 0.8930860033726813,
115
+ "eval_loss": 0.30713844299316406,
116
+ "eval_runtime": 7.2761,
117
+ "eval_samples_per_second": 407.498,
118
+ "eval_steps_per_second": 50.989,
119
+ "num_input_tokens_seen": 4552704,
120
+ "step": 4446
121
+ },
122
+ {
123
+ "epoch": 3.0,
124
+ "num_input_tokens_seen": 4552704,
125
+ "step": 4446,
126
+ "total_flos": 2773636063690752.0,
127
+ "train_loss": 0.30860748496937207,
128
+ "train_runtime": 450.538,
129
+ "train_samples_per_second": 78.946,
130
+ "train_steps_per_second": 9.868
131
+ }
132
+ ],
133
+ "logging_steps": 500,
134
+ "max_steps": 4446,
135
+ "num_input_tokens_seen": 4552704,
136
+ "num_train_epochs": 3,
137
+ "save_steps": 500,
138
+ "stateful_callbacks": {
139
+ "TrainerControl": {
140
+ "args": {
141
+ "should_epoch_stop": false,
142
+ "should_evaluate": false,
143
+ "should_log": false,
144
+ "should_save": true,
145
+ "should_training_stop": true
146
+ },
147
+ "attributes": {}
148
+ }
149
+ },
150
+ "total_flos": 2773636063690752.0,
151
+ "train_batch_size": 8,
152
+ "trial_name": null,
153
+ "trial_params": null
154
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ac0e0ebd3184ed9e9684938804ccd3f3ef2b199540b7c3e8e7d524600e73af4
3
+ size 5201