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
Run this model with HF Jobs
Run TomasFAV/Pix2StructCzechInvoiceV0 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/Pix2StructCzechInvoiceV0. 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/Pix2StructCzechInvoiceV0 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/Pix2StructCzechInvoiceV0. 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/Pix2StructCzechInvoiceV0. 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/Pix2StructCzechInvoiceV0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/Pix2StructCzechInvoiceV0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TomasFAV/Pix2StructCzechInvoiceV0")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0") model = AutoModelForMultimodalLM.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TomasFAV/Pix2StructCzechInvoiceV0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TomasFAV/Pix2StructCzechInvoiceV0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/Pix2StructCzechInvoiceV0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0
- SGLang
How to use TomasFAV/Pix2StructCzechInvoiceV0 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/Pix2StructCzechInvoiceV0" \ --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/Pix2StructCzechInvoiceV0", "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/Pix2StructCzechInvoiceV0" \ --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/Pix2StructCzechInvoiceV0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TomasFAV/Pix2StructCzechInvoiceV0 with Docker Model Runner:
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0
Upload Pix2StructForConditionalGeneration
Browse filesFiles changed (2)
- config.json+5-6
- model.safetensors+2-2
7 unmodified lines891011121314151617181920217 unmodified lines2930313233343536373839404142434445467 unmodified lines"initializer_factor": 1.0,"initializer_range": 0.02,"is_encoder_decoder": true,"is_vqa": false,"model_type": "pix2struct","pad_token_id": 0,"text_config": {"d_ff": 2048,"d_kv": 64,"dense_act_fn": "gelu_new","dropout_rate": 0.2,"dtype": "float32","encoder_hidden_size": 768,"hidden_size": 768,7 unmodified lines"relative_attention_max_distance": 128,"relative_attention_num_buckets": 32,"use_cache": false,"vocab_size": 50368},"tie_word_embeddings": false,"transformers_version": "4.57.3","vision_config": {"attention_dropout": 0.2,"d_ff": 2048,"d_kv": 64,"dense_act_fn": "gelu_new","dropout_rate": 0.2,"dtype": "float32","hidden_dropout_prob": 0.2,"hidden_size": 768,"initializer_factor": 1.0,"initializer_range": 0.02,7 unmodified lines891011121314151617181920217 unmodified lines29303132333435363738394041424344457 unmodified lines"initializer_factor": 1.0,"initializer_range": 0.02,"is_encoder_decoder": true,"is_vqa": true,"model_type": "pix2struct","pad_token_id": 0,"text_config": {"d_ff": 2048,"d_kv": 64,"dense_act_fn": "gelu_new","dropout_rate": 0.1,"dtype": "float32","encoder_hidden_size": 768,"hidden_size": 768,7 unmodified lines"relative_attention_max_distance": 128,"relative_attention_num_buckets": 32,"use_cache": false,"vocab_size": 50432},"tie_word_embeddings": false,"transformers_version": "4.57.3","vision_config": {"attention_dropout": 0.0,"d_ff": 2048,"d_kv": 64,"dense_act_fn": "gelu_new","dropout_rate": 0.0,"dtype": "float32","hidden_size": 768,"initializer_factor": 1.0,"initializer_range": 0.02,
123version https://git-lfs.github.com/spec/v1oid sha256:5c1f91c6ec2debc00d9385104380199b35869d52b22ddf258338b58a074d7a93size 1129939832123version https://git-lfs.github.com/spec/v1oid sha256:c3eeae59c802767ff7b3dddca23794a977784ccdccc08b452c09131234110ca7size 1130333048
config.json+5-6
model.safetensors+2-2