hmart commited on
Commit
2dab2d7
1 Parent(s): 84c56e5

hmart824/layoutLMV3_trained_model_binaya

Browse files
Files changed (4) hide show
  1. README.md +59 -0
  2. config.json +60 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ base_model: microsoft/layoutlmv3-base
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: layoutlmv3-finetuned
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # layoutlmv3-finetuned
15
+
16
+ This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.1771
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 4
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 3
44
+
45
+ ### Training results
46
+
47
+ | Training Loss | Epoch | Step | Validation Loss |
48
+ |:-------------:|:-----:|:----:|:---------------:|
49
+ | No log | 1.0 | 24 | 0.3991 |
50
+ | No log | 2.0 | 48 | 0.2136 |
51
+ | No log | 3.0 | 72 | 0.1771 |
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - Transformers 4.42.3
57
+ - Pytorch 2.3.0+cu121
58
+ - Datasets 2.20.0
59
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlmv3-base",
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": "LABEL_0",
18
+ "1": "LABEL_1",
19
+ "2": "LABEL_2",
20
+ "3": "LABEL_3",
21
+ "4": "LABEL_4",
22
+ "5": "LABEL_5",
23
+ "6": "LABEL_6",
24
+ "7": "LABEL_7"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "input_size": 224,
28
+ "intermediate_size": 3072,
29
+ "label2id": {
30
+ "LABEL_0": 0,
31
+ "LABEL_1": 1,
32
+ "LABEL_2": 2,
33
+ "LABEL_3": 3,
34
+ "LABEL_4": 4,
35
+ "LABEL_5": 5,
36
+ "LABEL_6": 6,
37
+ "LABEL_7": 7
38
+ },
39
+ "layer_norm_eps": 1e-05,
40
+ "max_2d_position_embeddings": 1024,
41
+ "max_position_embeddings": 514,
42
+ "max_rel_2d_pos": 256,
43
+ "max_rel_pos": 128,
44
+ "model_type": "layoutlmv3",
45
+ "num_attention_heads": 12,
46
+ "num_channels": 3,
47
+ "num_hidden_layers": 12,
48
+ "pad_token_id": 1,
49
+ "patch_size": 16,
50
+ "rel_2d_pos_bins": 64,
51
+ "rel_pos_bins": 32,
52
+ "second_input_size": 112,
53
+ "shape_size": 128,
54
+ "text_embed": true,
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.42.3",
57
+ "type_vocab_size": 1,
58
+ "visual_embed": true,
59
+ "vocab_size": 50265
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46661bce575fab57bcbd0b0aafc339b1a8e640c5b1dc5065fa02acc4742e06ca
3
+ size 501358608
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ba7b7dbd853bc3ba9ddb34ab71dc503521c7c74bcd3c545b1885e8a5335d3b2
3
+ size 5048