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
Run this model with HF Jobs
Run TomasFAV/Pix2StructCzechInvoiceV012 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/TomasFAV/Pix2StructCzechInvoiceV012. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/TomasFAV/Pix2StructCzechInvoiceV012 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/TomasFAV/Pix2StructCzechInvoiceV012. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/TomasFAV/Pix2StructCzechInvoiceV012. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use TomasFAV/Pix2StructCzechInvoiceV012 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/Pix2StructCzechInvoiceV012 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TomasFAV/Pix2StructCzechInvoiceV012")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV012") model = AutoModelForMultimodalLM.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV012", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TomasFAV/Pix2StructCzechInvoiceV012 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TomasFAV/Pix2StructCzechInvoiceV012" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/Pix2StructCzechInvoiceV012", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV012
- SGLang
How to use TomasFAV/Pix2StructCzechInvoiceV012 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/Pix2StructCzechInvoiceV012" \ --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/Pix2StructCzechInvoiceV012", "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/Pix2StructCzechInvoiceV012" \ --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/Pix2StructCzechInvoiceV012", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TomasFAV/Pix2StructCzechInvoiceV012 with Docker Model Runner:
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV012
Model save
Browse filesFiles changed (3)
1234567891011121314151617181920212223242526 unmodified lines52535455565758596061626364656667---library_name: transformerslicense: apache-2.0base_model: TomasFAV/Pix2StructCzechInvoicetags:- generated_from_trainermetrics:- f1model-index:- name: Pix2StructCzechInvoiceV1results: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># Pix2StructCzechInvoiceV1This model is a fine-tuned version of [TomasFAV/Pix2StructCzechInvoice](https://huggingface.co/TomasFAV/Pix2StructCzechInvoice) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.4679- F1: 0.6432## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| 0.1978 | 1.0 | 75 | 0.3757 | 0.5804 || 0.1031 | 2.0 | 150 | 0.3578 | 0.6399 || 0.0725 | 3.0 | 225 | 0.3504 | 0.6318 || 0.0512 | 4.0 | 300 | 0.3929 | 0.6396 || 0.0500 | 5.0 | 375 | 0.4072 | 0.6394 || 0.0462 | 6.0 | 450 | 0.4655 | 0.4377 || 0.0502 | 7.0 | 525 | 0.6320 | 0.3384 || 0.0528 | 8.0 | 600 | 0.4835 | 0.5018 || 0.0393 | 9.0 | 675 | 0.4679 | 0.6432 || 0.0392 | 10.0 | 750 | 0.5330 | 0.4931 |### Framework versions123456789101112131415161718192021222326 unmodified lines50515253545556575859606162636465---library_name: transformerstags:- generated_from_trainermetrics:- f1model-index:- name: Pix2StructCzechInvoiceV2results: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># Pix2StructCzechInvoiceV2This model was trained from scratch on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.2521- F1: 0.7311## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| 0.3432 | 1.0 | 115 | 0.2771 | 0.6644 || 0.1942 | 2.0 | 230 | 0.2611 | 0.6745 || 0.1934 | 3.0 | 345 | 0.2521 | 0.7311 || 0.1325 | 4.0 | 460 | 0.2665 | 0.7133 || 0.1131 | 5.0 | 575 | 0.2686 | 0.6762 || 0.1125 | 6.0 | 690 | 0.2601 | 0.7277 || 0.1011 | 7.0 | 805 | 0.2962 | 0.7118 || 0.1229 | 8.0 | 920 | 0.2893 | 0.7095 || 0.0861 | 9.0 | 1035 | 0.3019 | 0.6931 || 0.0860 | 10.0 | 1150 | 0.3167 | 0.7186 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:e70d2d0cdc68ec8709ec288bda061ce47e1e4e540ec35ca09c4862e634381705size 1130333048123version https://git-lfs.github.com/spec/v1oid sha256:ec5823bca395e6514ab842fa3718912970ae75ca6e02e0801ab5531f5b96022dsize 1130333048
123version https://git-lfs.github.com/spec/v1oid sha256:bfc2a47ebb408e485129e1897c0b616fc2554252dc4a9f0ac79686856c21056fsize 405README.md+15-17
model.safetensors+1-1
runs/Mar15_00-30-03_77b291cf41b2/events.out.tfevents.1773537770.77b291cf41b2.11106.1Added+3