Instructions to use TomasFAV/BERTInvoiceCzechV3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/BERTInvoiceCzechV3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="TomasFAV/BERTInvoiceCzechV3", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("TomasFAV/BERTInvoiceCzechV3") model = AutoModelForTokenClassification.from_pretrained("TomasFAV/BERTInvoiceCzechV3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google-bert/bert-base-multilingual-cased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- f1
|
| 11 |
+
- accuracy
|
| 12 |
+
model-index:
|
| 13 |
+
- name: BERTInvoiceCzechV3
|
| 14 |
+
results: []
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
# BERTInvoiceCzechV3
|
| 21 |
+
|
| 22 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an unknown dataset.
|
| 23 |
+
It achieves the following results on the evaluation set:
|
| 24 |
+
- Loss: 0.0873
|
| 25 |
+
- Precision: 0.8287
|
| 26 |
+
- Recall: 0.8718
|
| 27 |
+
- F1: 0.8497
|
| 28 |
+
- Accuracy: 0.9790
|
| 29 |
+
|
| 30 |
+
## Model description
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Intended uses & limitations
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training and evaluation data
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Training procedure
|
| 43 |
+
|
| 44 |
+
### Training hyperparameters
|
| 45 |
+
|
| 46 |
+
The following hyperparameters were used during training:
|
| 47 |
+
- learning_rate: 1e-05
|
| 48 |
+
- train_batch_size: 16
|
| 49 |
+
- eval_batch_size: 2
|
| 50 |
+
- seed: 42
|
| 51 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 52 |
+
- lr_scheduler_type: linear
|
| 53 |
+
- lr_scheduler_warmup_steps: 0.1
|
| 54 |
+
- num_epochs: 40
|
| 55 |
+
- mixed_precision_training: Native AMP
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 60 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 61 |
+
| No log | 1.0 | 20 | 2.6840 | 0.0071 | 0.0194 | 0.0103 | 0.6810 |
|
| 62 |
+
| No log | 2.0 | 40 | 0.6125 | 0.0 | 0.0 | 0.0 | 0.9123 |
|
| 63 |
+
| No log | 3.0 | 60 | 0.4626 | 0.0 | 0.0 | 0.0 | 0.9123 |
|
| 64 |
+
| No log | 4.0 | 80 | 0.3490 | 0.3419 | 0.1239 | 0.1819 | 0.9169 |
|
| 65 |
+
| No log | 5.0 | 100 | 0.2754 | 0.3776 | 0.2893 | 0.3276 | 0.9278 |
|
| 66 |
+
| No log | 6.0 | 120 | 0.2266 | 0.4686 | 0.4171 | 0.4413 | 0.9389 |
|
| 67 |
+
| No log | 7.0 | 140 | 0.1828 | 0.5234 | 0.4870 | 0.5045 | 0.9466 |
|
| 68 |
+
| No log | 8.0 | 160 | 0.1729 | 0.5567 | 0.5433 | 0.5499 | 0.9495 |
|
| 69 |
+
| No log | 9.0 | 180 | 0.1619 | 0.5477 | 0.5577 | 0.5526 | 0.9495 |
|
| 70 |
+
| No log | 10.0 | 200 | 0.1462 | 0.5730 | 0.5565 | 0.5646 | 0.9519 |
|
| 71 |
+
| No log | 11.0 | 220 | 0.1457 | 0.6067 | 0.6159 | 0.6113 | 0.9531 |
|
| 72 |
+
| No log | 12.0 | 240 | 0.1374 | 0.6406 | 0.6583 | 0.6493 | 0.9573 |
|
| 73 |
+
| No log | 13.0 | 260 | 0.1224 | 0.6855 | 0.6882 | 0.6868 | 0.9624 |
|
| 74 |
+
| No log | 14.0 | 280 | 0.1208 | 0.7253 | 0.7157 | 0.7205 | 0.9658 |
|
| 75 |
+
| No log | 15.0 | 300 | 0.1127 | 0.7233 | 0.7107 | 0.7169 | 0.9656 |
|
| 76 |
+
| No log | 16.0 | 320 | 0.1138 | 0.7535 | 0.7480 | 0.7507 | 0.9688 |
|
| 77 |
+
| No log | 17.0 | 340 | 0.1128 | 0.7648 | 0.7639 | 0.7643 | 0.9697 |
|
| 78 |
+
| No log | 18.0 | 360 | 0.1089 | 0.7688 | 0.7724 | 0.7706 | 0.9704 |
|
| 79 |
+
| No log | 19.0 | 380 | 0.1033 | 0.7738 | 0.7903 | 0.7819 | 0.9707 |
|
| 80 |
+
| No log | 20.0 | 400 | 0.0960 | 0.7982 | 0.8078 | 0.8029 | 0.9736 |
|
| 81 |
+
| No log | 21.0 | 420 | 0.1022 | 0.7821 | 0.8252 | 0.8031 | 0.9726 |
|
| 82 |
+
| No log | 22.0 | 440 | 0.0915 | 0.8092 | 0.8252 | 0.8172 | 0.9753 |
|
| 83 |
+
| No log | 23.0 | 460 | 0.0901 | 0.8289 | 0.8353 | 0.8321 | 0.9773 |
|
| 84 |
+
| No log | 24.0 | 480 | 0.0933 | 0.7954 | 0.8377 | 0.8160 | 0.9749 |
|
| 85 |
+
| 0.3542 | 25.0 | 500 | 0.0883 | 0.8093 | 0.8388 | 0.8238 | 0.9769 |
|
| 86 |
+
| 0.3542 | 26.0 | 520 | 0.0884 | 0.8282 | 0.8520 | 0.8400 | 0.9780 |
|
| 87 |
+
| 0.3542 | 27.0 | 540 | 0.0898 | 0.7909 | 0.8610 | 0.8245 | 0.9757 |
|
| 88 |
+
| 0.3542 | 28.0 | 560 | 0.0957 | 0.8004 | 0.8676 | 0.8327 | 0.9757 |
|
| 89 |
+
| 0.3542 | 29.0 | 580 | 0.0876 | 0.8253 | 0.8548 | 0.8398 | 0.9787 |
|
| 90 |
+
| 0.3542 | 30.0 | 600 | 0.0886 | 0.8257 | 0.8571 | 0.8411 | 0.9785 |
|
| 91 |
+
| 0.3542 | 31.0 | 620 | 0.0867 | 0.8286 | 0.8637 | 0.8458 | 0.9792 |
|
| 92 |
+
| 0.3542 | 32.0 | 640 | 0.0919 | 0.8132 | 0.8571 | 0.8346 | 0.9774 |
|
| 93 |
+
| 0.3542 | 33.0 | 660 | 0.0876 | 0.8239 | 0.8668 | 0.8448 | 0.9787 |
|
| 94 |
+
| 0.3542 | 34.0 | 680 | 0.0888 | 0.8219 | 0.8672 | 0.8439 | 0.9783 |
|
| 95 |
+
| 0.3542 | 35.0 | 700 | 0.0872 | 0.8315 | 0.8683 | 0.8495 | 0.9792 |
|
| 96 |
+
| 0.3542 | 36.0 | 720 | 0.0872 | 0.8287 | 0.8718 | 0.8497 | 0.9790 |
|
| 97 |
+
| 0.3542 | 37.0 | 740 | 0.0881 | 0.8259 | 0.8715 | 0.8481 | 0.9788 |
|
| 98 |
+
| 0.3542 | 38.0 | 760 | 0.0899 | 0.8199 | 0.8699 | 0.8442 | 0.9781 |
|
| 99 |
+
| 0.3542 | 39.0 | 780 | 0.0892 | 0.8264 | 0.8687 | 0.8470 | 0.9786 |
|
| 100 |
+
| 0.3542 | 40.0 | 800 | 0.0896 | 0.8246 | 0.8691 | 0.8463 | 0.9785 |
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
### Framework versions
|
| 104 |
+
|
| 105 |
+
- Transformers 5.0.0
|
| 106 |
+
- Pytorch 2.10.0+cu128
|
| 107 |
+
- Datasets 4.0.0
|
| 108 |
+
- Tokenizers 0.22.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 709170084
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7799ffbb358f0ecd3d3d80396d5f6071db2000bd6e8abab1d804073c97eb9224
|
| 3 |
size 709170084
|
runs/Mar21_22-07-17_a922adcca173/events.out.tfevents.1774130837.a922adcca173.10208.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:238221673a2143094451de0891dc91494eebc27df62b67216c0d695051e94f09
|
| 3 |
+
size 25576
|
runs/Mar21_22-07-17_a922adcca173/events.out.tfevents.1774131332.a922adcca173.10208.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c34d4add3931fb35c41e40a997f7285f24334ab49b46ea3081eaa448cd4f5d1
|
| 3 |
+
size 560
|