Instructions to use sreejith8100/layoutlm-funsd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sreejith8100/layoutlm-funsd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="sreejith8100/layoutlm-funsd")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("sreejith8100/layoutlm-funsd") model = AutoModelForTokenClassification.from_pretrained("sreejith8100/layoutlm-funsd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
2eaa06a
1
Parent(s): 0ac19ef
End of training
Browse files- README.md +36 -16
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -15,15 +15,15 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/layoutlmv2-base-uncased](https://huggingface.co/microsoft/layoutlmv2-base-uncased) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss: 0.
|
| 19 |
- Nswer Precision: 1.0
|
| 20 |
- Nswer Recall: 1.0
|
| 21 |
- Nswer F1: 1.0
|
| 22 |
-
- Nswer Number:
|
| 23 |
- Uestion Precision: 1.0
|
| 24 |
- Uestion Recall: 1.0
|
| 25 |
- Uestion F1: 1.0
|
| 26 |
-
- Uestion Number:
|
| 27 |
- Overall Precision: 1.0
|
| 28 |
- Overall Recall: 1.0
|
| 29 |
- Overall F1: 1.0
|
|
@@ -47,27 +47,47 @@ More information needed
|
|
| 47 |
|
| 48 |
The following hyperparameters were used during training:
|
| 49 |
- learning_rate: 3e-05
|
| 50 |
-
- train_batch_size:
|
| 51 |
-
- eval_batch_size:
|
| 52 |
- seed: 42
|
| 53 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 54 |
- lr_scheduler_type: linear
|
| 55 |
-
- num_epochs:
|
| 56 |
|
| 57 |
### Training results
|
| 58 |
|
| 59 |
| Training Loss | Epoch | Step | Validation Loss | Nswer Precision | Nswer Recall | Nswer F1 | Nswer Number | Uestion Precision | Uestion Recall | Uestion F1 | Uestion Number | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
| 60 |
|:-------------:|:-----:|:----:|:---------------:|:---------------:|:------------:|:--------:|:------------:|:-----------------:|:--------------:|:----------:|:--------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
-
| 0.
|
| 65 |
-
| 0.
|
| 66 |
-
| 0.
|
| 67 |
-
| 0.
|
| 68 |
-
| 0.
|
| 69 |
-
| 0.
|
| 70 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
### Framework versions
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/layoutlmv2-base-uncased](https://huggingface.co/microsoft/layoutlmv2-base-uncased) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 0.0112
|
| 19 |
- Nswer Precision: 1.0
|
| 20 |
- Nswer Recall: 1.0
|
| 21 |
- Nswer F1: 1.0
|
| 22 |
+
- Nswer Number: 82
|
| 23 |
- Uestion Precision: 1.0
|
| 24 |
- Uestion Recall: 1.0
|
| 25 |
- Uestion F1: 1.0
|
| 26 |
+
- Uestion Number: 82
|
| 27 |
- Overall Precision: 1.0
|
| 28 |
- Overall Recall: 1.0
|
| 29 |
- Overall F1: 1.0
|
|
|
|
| 47 |
|
| 48 |
The following hyperparameters were used during training:
|
| 49 |
- learning_rate: 3e-05
|
| 50 |
+
- train_batch_size: 8
|
| 51 |
+
- eval_batch_size: 4
|
| 52 |
- seed: 42
|
| 53 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 54 |
- lr_scheduler_type: linear
|
| 55 |
+
- num_epochs: 30
|
| 56 |
|
| 57 |
### Training results
|
| 58 |
|
| 59 |
| Training Loss | Epoch | Step | Validation Loss | Nswer Precision | Nswer Recall | Nswer F1 | Nswer Number | Uestion Precision | Uestion Recall | Uestion F1 | Uestion Number | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
| 60 |
|:-------------:|:-----:|:----:|:---------------:|:---------------:|:------------:|:--------:|:------------:|:-----------------:|:--------------:|:----------:|:--------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
| 61 |
+
| 0.2402 | 1.0 | 41 | 0.0879 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 62 |
+
| 0.0874 | 2.0 | 82 | 0.0695 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 63 |
+
| 0.0718 | 3.0 | 123 | 0.0592 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 64 |
+
| 0.0617 | 4.0 | 164 | 0.0511 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 65 |
+
| 0.0537 | 5.0 | 205 | 0.0446 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 66 |
+
| 0.0473 | 6.0 | 246 | 0.0393 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 67 |
+
| 0.0421 | 7.0 | 287 | 0.0349 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.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1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 88 |
+
| 0.0149 | 28.0 | 1148 | 0.0113 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 89 |
+
| 0.0147 | 29.0 | 1189 | 0.0113 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 90 |
+
| 0.0147 | 30.0 | 1230 | 0.0112 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 82 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 91 |
|
| 92 |
|
| 93 |
### Framework versions
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 802210605
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92f3de5c23a4ebbcc4871b0e7032d4fdeddf3de6e3c1042cb120b808af529baf
|
| 3 |
size 802210605
|