Image-Text-to-Text
Transformers
TensorBoard
Safetensors
pix2struct
Generated from Trainer
invoice-processing
information-extraction
czech-language
document-ai
multimodal-model
generative-model
synthetic-data
hybrid-data
real-data
Instructions to use TomasFAV/Pix2StructCzechInvoiceV0123 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/Pix2StructCzechInvoiceV0123 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TomasFAV/Pix2StructCzechInvoiceV0123")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0123") model = AutoModelForMultimodalLM.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0123", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TomasFAV/Pix2StructCzechInvoiceV0123 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TomasFAV/Pix2StructCzechInvoiceV0123" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/Pix2StructCzechInvoiceV0123", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0123
- SGLang
How to use TomasFAV/Pix2StructCzechInvoiceV0123 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/Pix2StructCzechInvoiceV0123" \ --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/Pix2StructCzechInvoiceV0123", "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/Pix2StructCzechInvoiceV0123" \ --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/Pix2StructCzechInvoiceV0123", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TomasFAV/Pix2StructCzechInvoiceV0123 with Docker Model Runner:
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0123
Model save
Browse files
README.md
CHANGED
|
@@ -5,19 +5,19 @@ tags:
|
|
| 5 |
metrics:
|
| 6 |
- f1
|
| 7 |
model-index:
|
| 8 |
-
- name:
|
| 9 |
results: []
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
This model was trained from scratch on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 0.
|
| 20 |
-
- F1: 0.
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
@@ -50,16 +50,16 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
|
| 64 |
|
| 65 |
### Framework versions
|
|
|
|
| 5 |
metrics:
|
| 6 |
- f1
|
| 7 |
model-index:
|
| 8 |
+
- name: Pix2StructCzechInvoiceV3
|
| 9 |
results: []
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
|
| 15 |
+
# Pix2StructCzechInvoiceV3
|
| 16 |
|
| 17 |
This model was trained from scratch on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.1542
|
| 20 |
+
- F1: 0.8404
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 53 |
+
| 0.3277 | 1.0 | 23 | 0.1958 | 0.7239 |
|
| 54 |
+
| 0.2366 | 2.0 | 46 | 0.1446 | 0.8037 |
|
| 55 |
+
| 0.1780 | 3.0 | 69 | 0.1247 | 0.8060 |
|
| 56 |
+
| 0.1153 | 4.0 | 92 | 0.1178 | 0.8316 |
|
| 57 |
+
| 0.0895 | 5.0 | 115 | 0.1279 | 0.8312 |
|
| 58 |
+
| 0.0774 | 6.0 | 138 | 0.1542 | 0.8404 |
|
| 59 |
+
| 0.0766 | 7.0 | 161 | 0.1530 | 0.7972 |
|
| 60 |
+
| 0.0697 | 8.0 | 184 | 0.1385 | 0.8372 |
|
| 61 |
+
| 0.0804 | 9.0 | 207 | 0.1433 | 0.7963 |
|
| 62 |
+
| 0.0664 | 10.0 | 230 | 0.1614 | 0.7991 |
|
| 63 |
|
| 64 |
|
| 65 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1130333048
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56c1efa167cbbb2854ad510639df7d5b876f497f668fc49316e0a648e4d164ff
|
| 3 |
size 1130333048
|
runs/Mar15_01-23-47_77b291cf41b2/events.out.tfevents.1773539087.77b291cf41b2.25725.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3080970317058fd218a78e9519752377b50e80df0693f6f21be38f8563e2b0ca
|
| 3 |
+
size 405
|