Instructions to use TomasFAV/Pix2StructCzechInvoiceV0R with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomasFAV/Pix2StructCzechInvoiceV0R with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TomasFAV/Pix2StructCzechInvoiceV0R")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0R") model = AutoModelForMultimodalLM.from_pretrained("TomasFAV/Pix2StructCzechInvoiceV0R", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TomasFAV/Pix2StructCzechInvoiceV0R with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TomasFAV/Pix2StructCzechInvoiceV0R" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TomasFAV/Pix2StructCzechInvoiceV0R", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0R
- SGLang
How to use TomasFAV/Pix2StructCzechInvoiceV0R 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/Pix2StructCzechInvoiceV0R" \ --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/Pix2StructCzechInvoiceV0R", "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/Pix2StructCzechInvoiceV0R" \ --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/Pix2StructCzechInvoiceV0R", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TomasFAV/Pix2StructCzechInvoiceV0R with Docker Model Runner:
docker model run hf.co/TomasFAV/Pix2StructCzechInvoiceV0R
Commit History
-
Model save
a3c393c -
Training in progress, epoch 10
8186b7f -
Training in progress, epoch 9
e8f3436 -
Training in progress, epoch 8
bbc3ccd -
Training in progress, epoch 7
0a20cbc -
Training in progress, epoch 6
35ade0c -
Training in progress, epoch 5
ee29cee -
Training in progress, epoch 4
5c417f3 -
Training in progress, epoch 3
041fa35 -
Training in progress, epoch 2
751b1c2 -
Training in progress, epoch 1
b5ebd30 -
Delete runs
8b1c68d -
Training in progress, epoch 4
380c8c7 -
Training in progress, epoch 3
ab31730 -
Training in progress, epoch 2
4cd7983 -
Training in progress, epoch 1
c8fc681 -
Delete runs
eace4c7
-
Training in progress, epoch 13
Verified signature2540d6e -
Training in progress, epoch 12
Verified signature6563b57 -
Training in progress, epoch 11
Verified signature071f738 -
Training in progress, epoch 10
Verified signaturedc835ea -
Training in progress, epoch 9
Verified signature97f521d -
Training in progress, epoch 8
Verified signature4fe8eb9 -
Training in progress, epoch 7
Verified signatured1193cc -
Training in progress, epoch 6
Verified signature96ec185 -
Training in progress, epoch 5
Verified signature6289f4a -
Training in progress, epoch 4
Verified signature3a012d2 -
Training in progress, epoch 3
Verified signature4373430 -
Training in progress, epoch 2
Verified signature38c151e -
Training in progress, epoch 1
Verified signature1ccc7b7 -
Training in progress, epoch 5
Verified signature9702d1c -
Training in progress, epoch 4
Verified signature04e55b0 -
Training in progress, epoch 3
Verified signaturedc86709 -
Training in progress, epoch 2
Verified signature2e9e1ad -
Training in progress, epoch 1
Verified signature1a1a9f6 -
Training in progress, epoch 10
Verified signature9c9d99e -
Training in progress, epoch 9
Verified signaturef2d07ab -
Training in progress, epoch 8
Verified signature3367caf -
Training in progress, epoch 7
Verified signaturee794df7 -
Training in progress, epoch 6
Verified signaturefe50d20 -
Training in progress, epoch 5
Verified signature048e336 -
Training in progress, epoch 4
Verified signature64146b2 -
Training in progress, epoch 3
Verified signaturefbb5e76 -
Training in progress, epoch 2
Verified signature160edf8 -
Training in progress, epoch 1
Verified signaturea1e3f53 -
Training in progress, epoch 1
Verified signature4889d58 -
Training in progress, epoch 5
Verified signaturef9c52d3 -
Training in progress, epoch 4
Verified signatureed8ba27 -
Training in progress, epoch 3
Verified signaturea787bb5 -
Training in progress, epoch 2
Verified signaturef4b1fc4