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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
{
  "adjacency_loss_coef": 1.0,
  "anchor_num_heads": 4,
  "anchor_num_layers": 2,
  "backbone_type": "deberta_2d",
  "bos_token_id": 1,
  "cat_loss_coef": 1.0,
  "cat_parent_token": "[SCHEMA]",
  "cat_token": "[CLASS]",
  "cat_token_index": 128003,
  "child_token": "[FIELD]",
  "child_token_index": 128005,
  "class_token_index": 128001,
  "classification_config": {
    "anchor_context_gate_init": 0.1,
    "anchor_context_gate_trainable": true,
    "anchor_cross_attention_bias": null,
    "anchor_layer": null,
    "anchor_memory_position": null,
    "anchor_memory_position_usage": null,
    "anchor_mode": "parent",
    "anchor_modeling": "linear",
    "anchor_normalization": "none",
    "anchor_query_position": null,
    "anchor_refine_heads": 8,
    "anchor_refine_layer_scale_init": null,
    "anchor_refine_layers": 0,
    "anchor_refine_norm": "post_norm",
    "anchor_refinement": null,
    "anchor_self_attention_bias": null,
    "cat_token_index": 128003,
    "embed_cat_token": true,
    "embed_parent_token": true,
    "feature_anchor_mlp": false,
    "feature_anchor_mlp_hidden_multiplier": 1,
    "focal_loss_alpha": 0.8,
    "focal_loss_gamma": -1.0,
    "focal_loss_prob_margin": 0.0,
    "loss_coef": 1.0,
    "parent_token_index": 128002,
    "pooling_type": "cls",
    "scorer_type": "dot"
  },
  "classifier_layer": null,
  "count_config": null,
  "count_layer": null,
  "count_loss_coef": 1.0,
  "count_mode": "regression",
  "dropout": 0.25,
  "embed_cat_token": true,
  "embed_child_token": true,
  "embed_ent_token": true,
  "embed_parent_token": true,
  "embed_rel_token": true,
  "embedding_config": {
    "encoder_dropout": 0.0,
    "loss_coef": 1.0,
    "loss_fn": "mse",
    "margin": 0.0,
    "pooling_type": "cls",
    "projection_dim": 1024,
    "projection_dropout": 0.0,
    "similarity_fn": "cosine"
  },
  "embedding_loss_coef": 1.0,
  "encoder_config": {
    "_name_or_path": "knowledgator/DeBERTa-large-joint-3000",
    "architectures": [
      "FlashDebertaV2ForContextPredictionTraining"
    ],
    "attention_probs_dropout_prob": 0.0,
    "attn_kernel": "flash",
    "bos_token_id": null,
    "chunk_size_feed_forward": 0,
    "coordinate_size": 128,
    "dtype": "bfloat16",
    "eos_token_id": null,
    "hidden_act": "gelu",
    "hidden_dropout_prob": 0.0,
    "hidden_size": 1024,
    "id2label": {
      "0": "LABEL_0",
      "1": "LABEL_1"
    },
    "initializer_range": 0.02,
    "intermediate_size": 4096,
    "is_encoder_decoder": false,
    "label2id": {
      "LABEL_0": 0,
      "LABEL_1": 1
    },
    "layer_norm_eps": 1e-07,
    "layout_bias_propagation": "all_layers",
    "layout_embedding_type": "absolute",
    "layout_max_relative_positions": 1024,
    "layout_position_buckets": 32,
    "layout_relative_attention": false,
    "legacy": true,
    "max_2d_position_embeddings": 1024,
    "max_page_embeddings": 1024,
    "max_position_embeddings": 512,
    "max_relative_positions": -1,
    "model_type": "layout-deberta",
    "norm_rel_ebd": "layer_norm",
    "num_attention_heads": 16,
    "num_hidden_layers": 24,
    "output_attentions": false,
    "output_hidden_states": false,
    "pad_token_id": 0,
    "pooler_dropout": 0.0,
    "pooler_hidden_act": "gelu",
    "pooler_hidden_size": 1024,
    "pos_att_type": [
      "p2c",
      "c2p"
    ],
    "position_biased_input": false,
    "position_buckets": 256,
    "problem_type": null,
    "relative_attention": true,
    "return_dict": true,
    "shape_size": 64,
    "share_att_key": true,
    "spatial_embedding_type": "absolute",
    "tie_word_embeddings": true,
    "type_vocab_size": 0,
    "vocab_size": 128008
  },
  "ent_token": "[ENTITY]",
  "eos_token_id": 2,
  "fine_tune": true,
  "fuse_layers": false,
  "groups_layer": "fixed",
  "groups_loss_coef": 1.0,
  "hidden_size": 1024,
  "image_size": 224,
  "joint_relex_config": {
    "adjacency_loss_coef": 1.0,
    "anchor_context_gate_init": 0.1,
    "anchor_context_gate_trainable": true,
    "anchor_cross_attention_bias": null,
    "anchor_layer": null,
    "anchor_memory_position": null,
    "anchor_memory_position_usage": null,
    "anchor_mode": "fixed",
    "anchor_modeling": "linear",
    "anchor_normalization": "none",
    "anchor_num_heads": 4,
    "anchor_num_layers": 2,
    "anchor_query_position": null,
    "anchor_refine_heads": 8,
    "anchor_refine_layer_scale_init": null,
    "anchor_refine_layers": 0,
    "anchor_refine_norm": "post_norm",
    "anchor_refinement": null,
    "anchor_self_attention_bias": null,
    "embed_parent_token": true,
    "embed_rel_token": true,
    "feature_anchor_mlp": false,
    "feature_anchor_mlp_hidden_multiplier": 1,
    "focal_loss_alpha": 0.8,
    "focal_loss_gamma": -1.0,
    "focal_loss_prob_margin": 0.0,
    "loss_coef": 1.0,
    "max_count": 20,
    "max_relation_entities": null,
    "max_relation_span_width": null,
    "neg_spans_ratio": 1.0,
    "num_fixed_slots": 10,
    "parent_token_index": -1,
    "rel_token_index": 128004,
    "relation_focal_loss_alpha": 0.8,
    "relation_focal_loss_gamma": 2,
    "relation_focal_loss_prob_margin": 0.0,
    "relation_loss_coef": 1.0,
    "relation_loss_reduction": "mean",
    "relation_neighbor_chunk_size": 512,
    "relation_span_nms": false,
    "relation_top_k_neighbors": null,
    "relations_layer": null,
    "represent_spans": false,
    "span_loss_coef": 1.0,
    "span_loss_reduction": "mean",
    "triples_layer": null
  },
  "labels_encoder": null,
  "labels_encoder_config": null,
  "layout_image_tokens": true,
  "max_count": 20,
  "max_len": 16384,
  "max_neg_type_ratio": 1,
  "max_page_embeddings": 1024,
  "max_types": 128,
  "max_width": 12,
  "media_parent_embedding_source": "fixed",
  "model_name": "knowledgator/DeBERTa-large-joint-3000",
  "model_type": "gliformer-layout",
  "model_variant": "layout",
  "multimodal_fusion": "uni-encoder",
  "name": "gliformer",
  "neg_spans_ratio": 1.0,
  "ner_config": {
    "anchor_context_gate_init": 0.1,
    "anchor_context_gate_trainable": true,
    "anchor_cross_attention_bias": null,
    "anchor_layer": null,
    "anchor_memory_position": null,
    "anchor_memory_position_usage": null,
    "anchor_mode": "parent",
    "anchor_modeling": "linear",
    "anchor_normalization": "none",
    "anchor_query_position": null,
    "anchor_refine_heads": 8,
    "anchor_refine_layer_scale_init": null,
    "anchor_refine_layers": 0,
    "anchor_refine_norm": "post_norm",
    "anchor_refinement": null,
    "anchor_self_attention_bias": null,
    "embed_parent_token": true,
    "feature_anchor_mlp": false,
    "feature_anchor_mlp_hidden_multiplier": 1,
    "focal_loss_alpha": 0.8,
    "focal_loss_gamma": -1,
    "focal_loss_prob_margin": 0.0,
    "loss_coef": 1.0,
    "neg_spans_ratio": 1.0,
    "parent_token_index": 128002,
    "represent_spans": false,
    "span_loss_coef": 1.0,
    "span_loss_reduction": "mean"
  },
  "ner_loss_coef": 1.0,
  "ner_parent_token": "[SCHEMA]",
  "num_post_fusion_layers": 1,
  "num_rnn_layers": 1,
  "obj_token": "[OBJECT]",
  "open_rel_parent_token": "[SCHEMA]",
  "open_relex_config": null,
  "pad_token_id": 0,
  "parent_token": "[SCHEMA]",
  "parent_token_index": 128002,
  "per_task_parents": false,
  "post_fusion_schema": "",
  "projector_hidden_act": "gelu",
  "rel_mode": "adjacency",
  "rel_token": "[RELATION]",
  "rel_token_index": 128004,
  "relation_loss_coef": 1.0,
  "relations_config": {
    "adjacency_loss_coef": 1.0,
    "anchor_context_gate_init": 0.1,
    "anchor_context_gate_trainable": true,
    "anchor_cross_attention_bias": null,
    "anchor_layer": null,
    "anchor_memory_position": null,
    "anchor_memory_position_usage": null,
    "anchor_mode": "fixed",
    "anchor_modeling": "linear",
    "anchor_normalization": "none",
    "anchor_num_heads": 4,
    "anchor_num_layers": 2,
    "anchor_query_position": null,
    "anchor_refine_heads": 8,
    "anchor_refine_layer_scale_init": null,
    "anchor_refine_layers": 0,
    "anchor_refine_norm": "post_norm",
    "anchor_refinement": null,
    "anchor_self_attention_bias": null,
    "embed_parent_token": true,
    "embed_rel_token": true,
    "feature_anchor_mlp": false,
    "feature_anchor_mlp_hidden_multiplier": 1,
    "focal_loss_alpha": 0.8,
    "focal_loss_gamma": -1.0,
    "focal_loss_prob_margin": 0.0,
    "loss_coef": 1.0,
    "max_count": 20,
    "max_relation_entities": null,
    "max_relation_span_width": null,
    "neg_spans_ratio": 1.0,
    "num_fixed_slots": 10,
    "parent_token_index": -1,
    "rel_token_index": 128004,
    "relation_focal_loss_alpha": 0.8,
    "relation_focal_loss_gamma": 2,
    "relation_focal_loss_prob_margin": 0.0,
    "relation_loss_coef": 1.0,
    "relation_loss_reduction": "mean",
    "relation_neighbor_chunk_size": 512,
    "relation_span_nms": false,
    "relation_top_k_neighbors": null,
    "relations_layer": null,
    "represent_spans": false,
    "span_loss_coef": 1.0,
    "span_loss_reduction": "mean",
    "triples_layer": null
  },
  "relations_layer": null,
  "represent_spans": false,
  "sep_token": "[SEP]",
  "seq_token": "[SEQ]",
  "shared_anchor_modeling": null,
  "shared_anchor_refine_heads": 8,
  "shared_anchor_refine_layers": 0,
  "shared_anchor_refinement": null,
  "span_loss_coef": 1.0,
  "span_mode": "markerV0",
  "struct_parent_token": "[SCHEMA]",
  "structuring_child_token": "<<CHILD>>",
  "structuring_config": {
    "anchor_context_gate_init": 0.1,
    "anchor_context_gate_trainable": true,
    "anchor_cross_attention_bias": {
      "params": {
        "sigma": 0.5,
        "units": "query_steps",
        "weight": 1.0
      },
      "type": "gaussian_distance"
    },
    "anchor_layer": {
      "params": {
        "num_slots": 100
      },
      "type": "fixed"
    },
    "anchor_memory_position": {
      "params": {},
      "type": "fourier"
    },
    "anchor_memory_position_usage": "keys_and_values",
    "anchor_mode": "fixed_transformer",
    "anchor_modeling": "linear",
    "anchor_normalization": "center_rms",
    "anchor_num_heads": 4,
    "anchor_num_layers": 2,
    "anchor_objectness": true,
    "anchor_objectness_loss_coef": 1.0,
    "anchor_objectness_threshold": 0.5,
    "anchor_query_position": {
      "params": {},
      "type": "fourier"
    },
    "anchor_refine_heads": 8,
    "anchor_refine_layer_scale_init": null,
    "anchor_refine_layers": 0,
    "anchor_refine_norm": "post_norm",
    "anchor_refinement": {
      "params": {
        "layer_scale_init": 0.1,
        "norm_style": "pre_norm",
        "num_heads": 8,
        "num_layers": 2
      },
      "type": "cross_attention"
    },
    "anchor_relations_focal_loss_alpha": 0.75,
    "anchor_relations_focal_loss_gamma": null,
    "anchor_relations_focal_loss_prob_margin": null,
    "anchor_relations_layer": "mlp",
    "anchor_relations_loss_coef": 1.0,
    "anchor_relations_threshold": 0.5,
    "anchor_self_attention_bias": null,
    "assignment_loss_coef": 1.0,
    "bio_loss_reduction": "mean",
    "child_token_index": 128005,
    "embed_child_token": true,
    "embed_parent_token": true,
    "entity_loss_coef": 1.0,
    "feature_anchor_mlp": false,
    "feature_anchor_mlp_hidden_multiplier": 1,
    "focal_loss_alpha": 0.75,
    "focal_loss_gamma": -1,
    "focal_loss_prob_margin": 0.0,
    "head_type": "structuring",
    "log_loss_stats": false,
    "log_loss_stats_every": 50,
    "loss_coef": 1.0,
    "masking": "none",
    "matcher_dice_cost": 1.0,
    "matcher_membership_cost": 1.0,
    "matcher_membership_temperature": 1.0,
    "matcher_objectness_cost": 0.5,
    "matcher_objectness_temperature": 1.0,
    "matching_focal_loss_alpha": 0.99,
    "matching_focal_loss_gamma": null,
    "matching_focal_loss_prob_margin": null,
    "max_count": 100,
    "memory_position_embedding_kwargs": {},
    "memory_position_embedding_type": "none",
    "memory_position_in_values": false,
    "multi_level": true,
    "neg_spans_ratio": 1.0,
    "negatives": 1.0,
    "ner_focal_loss_alpha": 0.75,
    "ner_focal_loss_gamma": null,
    "ner_focal_loss_prob_margin": null,
    "num_fixed_slots": 10,
    "objectness_focal_loss_alpha": 0.5,
    "objectness_focal_loss_gamma": null,
    "objectness_focal_loss_prob_margin": null,
    "parent_token_index": 128002,
    "position_bucket_attention_bias_type": "none",
    "position_bucket_attention_bias_weight": 1.0,
    "position_bucket_attention_sigma": 0.5,
    "position_bucket_normalization": "none",
    "query_position_embedding_kwargs": {},
    "query_position_embedding_type": "none",
    "represent_spans": true,
    "reuse_ner_head": true,
    "span_loss_coef": 1.0,
    "span_loss_reduction": "mean",
    "structure_mode": {
      "decoder": null,
      "decoder_options": {},
      "params": {},
      "processor": null,
      "processor_options": {},
      "type": "multi_level"
    },
    "use_anchor_matching": true
  },
  "structuring_end_token": "<<END>>",
  "structuring_loss_coef": 1.0,
  "subtoken_pooling": "first",
  "token_loss_coef": 1.0,
  "transformers_version": "5.16.1",
  "triples_layer": null,
  "use_layout": true,
  "vision_center_crop_size": null,
  "vision_do_normalize": false,
  "vision_do_rescale": true,
  "vision_image_mean": null,
  "vision_image_std": null,
  "vision_interpolation": "bilinear",
  "vision_processor_name": null,
  "vision_processor_type": "custom",
  "vision_resize_size": null,
  "vocab_size": 128008,
  "words_splitter_type": "whitespace"
}