Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Instructions to use TomasFAV/DonutInvoiceCzechV0123 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/DonutInvoiceCzechV0123 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TomasFAV/DonutInvoiceCzechV0123")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("TomasFAV/DonutInvoiceCzechV0123") model = AutoModelForMultimodalLM.from_pretrained("TomasFAV/DonutInvoiceCzechV0123", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TomasFAV/DonutInvoiceCzechV0123 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TomasFAV/DonutInvoiceCzechV0123" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/DonutInvoiceCzechV0123", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TomasFAV/DonutInvoiceCzechV0123
- SGLang
How to use TomasFAV/DonutInvoiceCzechV0123 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TomasFAV/DonutInvoiceCzechV0123" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/DonutInvoiceCzechV0123", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TomasFAV/DonutInvoiceCzechV0123" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/DonutInvoiceCzechV0123", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TomasFAV/DonutInvoiceCzechV0123 with Docker Model Runner:
docker model run hf.co/TomasFAV/DonutInvoiceCzechV0123
Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
metrics:
|
| 6 |
+
- accuracy
|
| 7 |
+
- f1
|
| 8 |
+
model-index:
|
| 9 |
+
- name: DonutInvoiceCzechV0123RR
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# DonutInvoiceCzechV0123RR
|
| 17 |
+
|
| 18 |
+
This model was trained from scratch on an unknown dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.1672
|
| 21 |
+
- Accuracy: 0.9460
|
| 22 |
+
- F1: 0.9214
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 9e-05
|
| 42 |
+
- train_batch_size: 4
|
| 43 |
+
- eval_batch_size: 1
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 20
|
| 48 |
+
- mixed_precision_training: Native AMP
|
| 49 |
+
|
| 50 |
+
### Training results
|
| 51 |
+
|
| 52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 54 |
+
| 0.2086 | 1.0 | 46 | 0.1679 | 0.9141 | 0.8816 |
|
| 55 |
+
| 0.1011 | 2.0 | 92 | 0.1561 | 0.9371 | 0.9128 |
|
| 56 |
+
| 0.0632 | 3.0 | 138 | 0.1630 | 0.9386 | 0.9111 |
|
| 57 |
+
| 0.0376 | 4.0 | 184 | 0.1921 | 0.8951 | 0.8927 |
|
| 58 |
+
| 0.0286 | 5.0 | 230 | 0.1798 | 0.9291 | 0.9094 |
|
| 59 |
+
| 0.0214 | 6.0 | 276 | 0.1672 | 0.9460 | 0.9214 |
|
| 60 |
+
| 0.0159 | 7.0 | 322 | 0.1734 | 0.9432 | 0.9214 |
|
| 61 |
+
| 0.0223 | 8.0 | 368 | 0.1815 | 0.9352 | 0.9074 |
|
| 62 |
+
| 0.0071 | 9.0 | 414 | 0.1857 | 0.9304 | 0.9012 |
|
| 63 |
+
| 0.0175 | 10.0 | 460 | 0.1976 | 0.9288 | 0.9088 |
|
| 64 |
+
| 0.0073 | 11.0 | 506 | 0.1983 | 0.9439 | 0.9111 |
|
| 65 |
+
| 0.0034 | 12.0 | 552 | 0.2064 | 0.9318 | 0.9090 |
|
| 66 |
+
| 0.0077 | 13.0 | 598 | 0.2131 | 0.9359 | 0.9072 |
|
| 67 |
+
| 0.0050 | 14.0 | 644 | 0.2108 | 0.9369 | 0.9072 |
|
| 68 |
+
| 0.0007 | 15.0 | 690 | 0.2074 | 0.9340 | 0.9072 |
|
| 69 |
+
| 0.0006 | 16.0 | 736 | 0.2084 | 0.9357 | 0.9106 |
|
| 70 |
+
| 0.0011 | 17.0 | 782 | 0.2075 | 0.9363 | 0.9128 |
|
| 71 |
+
| 0.0008 | 18.0 | 828 | 0.2030 | 0.9384 | 0.9192 |
|
| 72 |
+
| 0.0009 | 19.0 | 874 | 0.2025 | 0.9353 | 0.9192 |
|
| 73 |
+
| 0.0006 | 20.0 | 920 | 0.2027 | 0.9338 | 0.9175 |
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
### Framework versions
|
| 77 |
+
|
| 78 |
+
- Transformers 5.0.0
|
| 79 |
+
- Pytorch 2.10.0+cu128
|
| 80 |
+
- Datasets 4.0.0
|
| 81 |
+
- 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 806494360
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a551bfaf1a46f3a88c57f18e7246d27877aca358994defb2e501c46cc1eca5e9
|
| 3 |
size 806494360
|
runs/Apr19_00-01-17_f793f275c12c/events.out.tfevents.1776558120.f793f275c12c.14328.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7a31da8cb1670d19cc276ff339a207533f9caa04513febe3355fa9fbabecb38
|
| 3 |
+
size 457
|