Instructions to use ihorbilyk/donut-base-checks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ihorbilyk/donut-base-checks with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ihorbilyk/donut-base-checks")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ihorbilyk/donut-base-checks") model = AutoModelForMultimodalLM.from_pretrained("ihorbilyk/donut-base-checks", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ihorbilyk/donut-base-checks with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ihorbilyk/donut-base-checks" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ihorbilyk/donut-base-checks", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ihorbilyk/donut-base-checks
- SGLang
How to use ihorbilyk/donut-base-checks 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 "ihorbilyk/donut-base-checks" \ --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": "ihorbilyk/donut-base-checks", "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 "ihorbilyk/donut-base-checks" \ --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": "ihorbilyk/donut-base-checks", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ihorbilyk/donut-base-checks with Docker Model Runner:
docker model run hf.co/ihorbilyk/donut-base-checks
Commit History
-
End of training
569fcdf -
Training in progress, epoch 5
fd688f3 -
Training in progress, epoch 4
1215fb6 -
Training in progress, epoch 3
83a4b19 -
Training in progress, epoch 2
bfa63db -
Training in progress, epoch 1
26bfd05
-
End of training
b815d73 -
Training in progress, epoch 5
1870e98 -
Training in progress, epoch 4
7105619 -
Training in progress, epoch 3
5b591e8 -
Training in progress, epoch 2
f434d8b -
Training in progress, epoch 1
09739bd -
End of training
1dacbe3 -
Training in progress, epoch 5
1137149 -
Training in progress, epoch 4
fb402cc -
Training in progress, epoch 3
4c410ff -
Training in progress, epoch 2
257f676 -
Training in progress, epoch 1
f46eda7 -
End of training
b0c9228 -
Training in progress, epoch 5
6db2f7b -
Training in progress, epoch 4
2683852 -
Training in progress, epoch 3
f6e37f3 -
Training in progress, epoch 2
be40d34 -
Training in progress, epoch 1
f80ac3b -
End of training
2881182 -
Training in progress, epoch 5
afdd2ab -
Training in progress, epoch 3
e52b1e8 -
Training in progress, epoch 1
d270446 -
End of training
9223ce7 -
Training in progress, epoch 3
0471c06 -
Training in progress, epoch 1
6dbb6a0 -
initial commit
18cf833