Instructions to use LauraExp/Donutv1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LauraExp/Donutv1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LauraExp/Donutv1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("LauraExp/Donutv1") model = AutoModelForMultimodalLM.from_pretrained("LauraExp/Donutv1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LauraExp/Donutv1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LauraExp/Donutv1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LauraExp/Donutv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LauraExp/Donutv1
- SGLang
How to use LauraExp/Donutv1 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 "LauraExp/Donutv1" \ --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": "LauraExp/Donutv1", "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 "LauraExp/Donutv1" \ --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": "LauraExp/Donutv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LauraExp/Donutv1 with Docker Model Runner:
docker model run hf.co/LauraExp/Donutv1
Commit History
-
Training done
0c3bbb5 -
Training done
a16004a -
Training in progress, epoch 29
00464a4 -
Training in progress, epoch 28
e732fd1 -
Training in progress, epoch 27
1dcba3c -
Training in progress, epoch 26
49c9f03 -
Training in progress, epoch 25
99afeca -
Training in progress, epoch 24
b7fbbe4 -
Training in progress, epoch 23
831129b -
Training in progress, epoch 22
5bf80db -
Training in progress, epoch 21
2fff69b -
Training in progress, epoch 20
2f9eeb9 -
Training in progress, epoch 19
281983e -
Training in progress, epoch 18
62fead6 -
Training in progress, epoch 17
5ccca74 -
Training in progress, epoch 16
5fa2ba0 -
Training in progress, epoch 15
9b039d2 -
Training in progress, epoch 14
1a0b960 -
Training in progress, epoch 13
85518a7 -
Training in progress, epoch 12
3a84527 -
Training in progress, epoch 11
c0a0877 -
Training in progress, epoch 10
bc84545 -
Training in progress, epoch 9
84a7f23 -
Training in progress, epoch 8
fc578c7 -
Training in progress, epoch 7
2ece490 -
Training in progress, epoch 6
254b3fe -
Training in progress, epoch 5
1da538b -
Training in progress, epoch 4
bf8e727 -
Training in progress, epoch 3
2005e86 -
Training in progress, epoch 2
e992375 -
Training in progress, epoch 1
c586baf -
Training in progress, epoch 0
4afc178 -
Training done
a67aefd -
Training done
3ebb2cb -
Training in progress, epoch 15
fce2ef8 -
Training in progress, epoch 14
5562a81 -
Training in progress, epoch 13
196f07c -
Training in progress, epoch 12
26cc41d -
Training in progress, epoch 11
6133459 -
Training in progress, epoch 10
5cdb899 -
Training in progress, epoch 9
8a8a996 -
Training in progress, epoch 8
7ed1acf -
Training in progress, epoch 7
150f6fe -
Training in progress, epoch 6
4133ee6 -
Training in progress, epoch 5
eb562b9 -
Training in progress, epoch 4
dcf9262 -
Training in progress, epoch 3
7ccaab1 -
Training in progress, epoch 2
fd84253 -
Training in progress, epoch 1
f864349 -
Training in progress, epoch 0
93cf87b