Run this model with HF Jobs

Run TomasFAV/Pix2StructCzechInvoiceV0R 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/Pix2StructCzechInvoiceV0R. 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/Pix2StructCzechInvoiceV0R 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/Pix2StructCzechInvoiceV0R. 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/Pix2StructCzechInvoiceV0R. 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.
How to use from
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
Quick Links

Pix2StructCzechInvoiceV0R

This model is a fine-tuned version of google/pix2struct-textcaps-base on an unknown dataset. It achieves the following results on the evaluation set:

  • Loss: 0.3507
  • Accuracy: 0.7117
  • F1: 0.4741

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 8
  • eval_batch_size: 1
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • num_epochs: 10
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Validation Loss Accuracy F1
2.3226 1.0 150 2.3375 0.0117 0.0
0.9378 2.0 300 1.0392 0.0289 0.0
0.7639 3.0 450 0.9131 0.0 0.0
0.5096 4.0 600 0.6851 0.5907 0.4268
0.2828 5.0 750 0.4679 0.6683 0.4740
0.1613 6.0 900 0.3983 0.0 0.0
0.0946 7.0 1050 0.3642 0.0 0.0
0.0693 8.0 1200 0.3507 0.7117 0.4741
0.0590 9.0 1350 0.3610 0.7013 0.4578
0.0498 10.0 1500 0.3624 0.0 0.0

Framework versions

  • Transformers 5.0.0
  • Pytorch 2.10.0+cu128
  • Datasets 4.0.0
  • Tokenizers 0.22.2
Downloads last month
46
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for TomasFAV/Pix2StructCzechInvoiceV0R

Finetuned
(1)
this model