Instructions to use Thuy25/Donut with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thuy25/Donut with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Thuy25/Donut")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Thuy25/Donut") model = AutoModelForMultimodalLM.from_pretrained("Thuy25/Donut", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Thuy25/Donut with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thuy25/Donut" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thuy25/Donut", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Thuy25/Donut
- SGLang
How to use Thuy25/Donut 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 "Thuy25/Donut" \ --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": "Thuy25/Donut", "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 "Thuy25/Donut" \ --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": "Thuy25/Donut", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Thuy25/Donut with Docker Model Runner:
docker model run hf.co/Thuy25/Donut
Commit History
-
Training done
Verified signature4a5a242 -
Training done
Verified signature9ac53e0 -
Training in progress, epoch 29
Verified signature65e4da0 -
Training in progress, epoch 28
Verified signature867842a -
Training in progress, epoch 27
Verified signature06ff750 -
Training in progress, epoch 26
Verified signatureb1a7da8 -
Training in progress, epoch 25
Verified signature38ff7e1 -
Training in progress, epoch 24
Verified signature2fa8de4 -
Training in progress, epoch 23
Verified signature87a375a -
Training in progress, epoch 22
Verified signature17a12c8 -
Training in progress, epoch 21
Verified signaturebc123fe -
Training in progress, epoch 20
Verified signature8daef7b -
Training in progress, epoch 19
Verified signature709436d -
Training in progress, epoch 18
Verified signature7febeb1 -
Training in progress, epoch 17
Verified signature189739a -
Training in progress, epoch 16
Verified signaturea095ff1 -
Training in progress, epoch 15
Verified signatureab1fa98 -
Training in progress, epoch 14
Verified signature4639a02 -
Training in progress, epoch 13
Verified signature4840b0c -
Training in progress, epoch 12
Verified signaturec3acd75 -
Training in progress, epoch 11
Verified signaturee34e1b1 -
Training in progress, epoch 10
Verified signature4d76b09 -
Training in progress, epoch 9
Verified signature92138cb -
Training in progress, epoch 8
Verified signature2a30c08 -
Training in progress, epoch 7
Verified signaturebb670e1 -
Training in progress, epoch 6
Verified signaturec237612 -
Training in progress, epoch 5
Verified signatureeda0abd -
Training in progress, epoch 4
Verified signature3e1f7e0 -
Training in progress, epoch 3
Verified signature3ffde92 -
Training in progress, epoch 2
Verified signature2abc813 -
Training in progress, epoch 1
Verified signature4850120 -
Training in progress, epoch 0
Verified signature768ab8f -
Training in progress, epoch 0
Verified signaturef988c9a -
Training in progress, epoch 3
Verified signature13fef56 -
Training in progress, epoch 2
Verified signature820ed8c -
Training in progress, epoch 1
Verified signatureda3b8cb -
Training in progress, epoch 0
Verified signature7731d99 -
Training in progress, epoch 7
Verified signatureb236968 -
Training in progress, epoch 6
Verified signatureadc2f56 -
Training in progress, epoch 5
Verified signature21a0611 -
Training in progress, epoch 4
Verified signaturef70886f -
Training in progress, epoch 3
Verified signaturea822981 -
Training in progress, epoch 2
Verified signature49df036 -
Training in progress, epoch 1
Verified signatureb2b451e -
Training in progress, epoch 0
Verified signature09befad -
Training done
Verified signature495f078 -
Training done
Verified signature9cb6623 -
Training in progress, epoch 10
Verified signatureb08f196 -
Training in progress, epoch 9
Verified signature46fa06e -
Training in progress, epoch 8
Verified signature0256a3b