Instructions to use jobtimc/donut-booking-extract with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jobtimc/donut-booking-extract with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jobtimc/donut-booking-extract")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jobtimc/donut-booking-extract", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jobtimc/donut-booking-extract with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jobtimc/donut-booking-extract" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jobtimc/donut-booking-extract", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jobtimc/donut-booking-extract
- SGLang
How to use jobtimc/donut-booking-extract 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 "jobtimc/donut-booking-extract" \ --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": "jobtimc/donut-booking-extract", "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 "jobtimc/donut-booking-extract" \ --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": "jobtimc/donut-booking-extract", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jobtimc/donut-booking-extract with Docker Model Runner:
docker model run hf.co/jobtimc/donut-booking-extract
ποΈ This is a FYP project topic on document parsing of π logistics π shipping documents for system integration.
Latest update on the version of modules used to continue run the program because there is no recent update for the donut pretrained model.
My use case: Extract common key datafields from shipping documents generated from ten different shipping lines.
Repo & Datasets
- donut.zip (Original Donut Repo + Labelled Booking Dummy Datasets with JSONL files + Config Files)
- sample-image-to-play.zip (Excess dummy datasets used to play and test the model) https://huggingface.co/spaces/uartimcs/donut-booking-gradio
Colab Notebooks
- donut-booking-train.ipynb (Train the model in Colab using T4 TPU / A100 GPU environment)
- donut-booking-run.ipynb (Run the model in Colab using gradio using T4 TPU / A100 GPU environment)
Size of dataset
Follow the CORD-v2 dataset ratio:
- train: 800 (80 pics x 10 classes)
- validation: 100 (10 pics x 10 classes)
- test: 100 (10 pics x 10 classes)
- Downloads last month
- 19
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for jobtimc/donut-booking-extract
Base model
naver-clova-ix/donut-base-finetuned-cord-v2