DarkWolf commited on
Commit
2a28bda
1 Parent(s): cd45e7c

Upload LayoutLMv3ForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +82 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "DarkWolf/nutrifacts-llmmv3-2",
3
+ "architectures": [
4
+ "LayoutLMv3ForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "coordinate_size": 128,
10
+ "eos_token_id": 2,
11
+ "has_relative_attention_bias": true,
12
+ "has_spatial_attention_bias": true,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "O",
18
+ "1": "B-daily_value",
19
+ "2": "B-header",
20
+ "3": "B-header_value",
21
+ "4": "B-ingredient_header",
22
+ "5": "B-ingredient_value",
23
+ "6": "B-nutrient",
24
+ "7": "B-nutrient2",
25
+ "8": "B-nutrient_value2",
26
+ "9": "B-other",
27
+ "10": "I-daily_value",
28
+ "11": "I-header",
29
+ "12": "I-header_value",
30
+ "13": "I-ingredient_header",
31
+ "14": "I-ingredient_value",
32
+ "15": "I-nutrient",
33
+ "16": "I-nutrient2",
34
+ "17": "I-nutrient_value2",
35
+ "18": "I-other"
36
+ },
37
+ "initializer_range": 0.02,
38
+ "input_size": 224,
39
+ "intermediate_size": 3072,
40
+ "label2id": {
41
+ "B-daily_value": 1,
42
+ "B-header": 2,
43
+ "B-header_value": 3,
44
+ "B-ingredient_header": 4,
45
+ "B-ingredient_value": 5,
46
+ "B-nutrient": 6,
47
+ "B-nutrient2": 7,
48
+ "B-nutrient_value2": 8,
49
+ "B-other": 9,
50
+ "I-daily_value": 10,
51
+ "I-header": 11,
52
+ "I-header_value": 12,
53
+ "I-ingredient_header": 13,
54
+ "I-ingredient_value": 14,
55
+ "I-nutrient": 15,
56
+ "I-nutrient2": 16,
57
+ "I-nutrient_value2": 17,
58
+ "I-other": 18,
59
+ "O": 0
60
+ },
61
+ "layer_norm_eps": 1e-05,
62
+ "max_2d_position_embeddings": 1024,
63
+ "max_position_embeddings": 514,
64
+ "max_rel_2d_pos": 256,
65
+ "max_rel_pos": 128,
66
+ "model_type": "layoutlmv3",
67
+ "num_attention_heads": 12,
68
+ "num_channels": 3,
69
+ "num_hidden_layers": 12,
70
+ "pad_token_id": 1,
71
+ "patch_size": 16,
72
+ "rel_2d_pos_bins": 64,
73
+ "rel_pos_bins": 32,
74
+ "second_input_size": 112,
75
+ "shape_size": 128,
76
+ "text_embed": true,
77
+ "torch_dtype": "float32",
78
+ "transformers_version": "4.26.1",
79
+ "type_vocab_size": 1,
80
+ "visual_embed": true,
81
+ "vocab_size": 50265
82
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e2681e4d8fe992a1a98f01387710f13b7b41055ef5ebea6d99584bd0e6b910a
3
+ size 503809470